mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 06:04:51 +00:00
fix(plan-mode): show widget after extracting todos and in plan mode
This commit is contained in:
parent
51d396b3fd
commit
ff32bd1540
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);
|
ctx.ui.setStatus("plan-mode", undefined);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update widget with todo list
|
// Update widget with todo list (show in both plan mode and execution mode)
|
||||||
if (executionMode && todoItems.length > 0) {
|
if (todoItems.length > 0) {
|
||||||
const lines: string[] = [];
|
const lines: string[] = [];
|
||||||
for (const item of todoItems) {
|
for (const item of todoItems) {
|
||||||
if (item.completed) {
|
if (item.completed) {
|
||||||
|
|
@ -395,6 +395,7 @@ Do NOT attempt to make changes - just describe what you would do.`,
|
||||||
const extracted = extractTodoItems(lastAssistant.content);
|
const extracted = extractTodoItems(lastAssistant.content);
|
||||||
if (extracted.length > 0) {
|
if (extracted.length > 0) {
|
||||||
todoItems = extracted;
|
todoItems = extracted;
|
||||||
|
updateStatus(ctx); // Show the extracted todos
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue