mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 17:00:59 +00:00
fix(plan-mode): show widget after extracting todos and in plan mode
This commit is contained in:
parent
dc44816051
commit
dd7c01a47c
1 changed files with 3 additions and 2 deletions
|
|
@ -241,8 +241,8 @@ export default function planModeHook(pi: HookAPI) {
|
|||
ctx.ui.setStatus("plan-mode", undefined);
|
||||
}
|
||||
|
||||
// Update widget with todo list
|
||||
if (executionMode && todoItems.length > 0) {
|
||||
// Update widget with todo list (show in both plan mode and execution mode)
|
||||
if (todoItems.length > 0) {
|
||||
const lines: string[] = [];
|
||||
for (const item of todoItems) {
|
||||
if (item.completed) {
|
||||
|
|
@ -395,6 +395,7 @@ Do NOT attempt to make changes - just describe what you would do.`,
|
|||
const extracted = extractTodoItems(lastAssistant.content);
|
||||
if (extracted.length > 0) {
|
||||
todoItems = extracted;
|
||||
updateStatus(ctx); // Show the extracted todos
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue