Add extension mode context

This commit is contained in:
Mario Zechner
2026-06-01 18:31:44 +02:00
parent 335e09ba0d
commit e56521e323
25 changed files with 98 additions and 25 deletions

View File

@@ -284,7 +284,7 @@ export default function (pi: ExtensionAPI) {
pi.registerCommand("todos", {
description: "Show all todos on the current branch",
handler: async (_args, ctx) => {
if (!ctx.hasUI) {
if (ctx.mode !== "tui") {
ctx.ui.notify("/todos requires interactive mode", "error");
return;
}