[Update] bulk update
This commit is contained in:
@@ -142,6 +142,25 @@ export default function planModeExtension(pi: ExtensionAPI): void {
|
||||
handler: async (_args, ctx) => togglePlanMode(ctx),
|
||||
});
|
||||
|
||||
// LOCAL EDIT: the checklist widget only tears itself down once every step is
|
||||
// marked complete, which needs the model to emit a [DONE:n] tag per step. When
|
||||
// one is missed the widget sticks around after the work is finished, so give
|
||||
// the user a way out that doesn't involve toggling plan mode on and off again.
|
||||
pi.registerCommand("plan-done", {
|
||||
description: "Clear a stuck plan checklist (stops execution tracking)",
|
||||
handler: async (_args, ctx) => {
|
||||
if (!executionMode && todoItems.length === 0) {
|
||||
ctx.ui.notify("No plan is being tracked.");
|
||||
return;
|
||||
}
|
||||
executionMode = false;
|
||||
todoItems = [];
|
||||
updateStatus(ctx);
|
||||
persistState();
|
||||
ctx.ui.notify("Plan tracking cleared.");
|
||||
},
|
||||
});
|
||||
|
||||
pi.registerCommand("todos", {
|
||||
description: "Show current plan todo list",
|
||||
handler: async (_args, ctx) => {
|
||||
|
||||
Reference in New Issue
Block a user