diff options
| author | Aiden Cline <[email protected]> | 2025-11-11 16:05:23 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-11-11 16:05:23 -0600 |
| commit | 0b001c3e802781158a49854767840f5e7a45b32a (patch) | |
| tree | 981ab2c86efed7a1ed097a331a4f8bbfa9ce698a /packages | |
| parent | 53b7cb62c45b9688f183e01d47b08b0297f9a5c9 (diff) | |
| download | opencode-0b001c3e802781158a49854767840f5e7a45b32a.tar.gz opencode-0b001c3e802781158a49854767840f5e7a45b32a.zip | |
tweak: make todos appear list of modified files
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx index f6f3f7c73..8374f701c 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/sidebar.tsx @@ -115,6 +115,20 @@ export function Sidebar(props: { sessionID: string }) { </For> </box> </Show> + <Show when={todo().length > 0}> + <box> + <text fg={theme.text}> + <b>Todo</b> + </text> + <For each={todo()}> + {(todo) => ( + <text style={{ fg: todo.status === "in_progress" ? theme.success : theme.textMuted }}> + [{todo.status === "completed" ? "✓" : " "}] {todo.content} + </text> + )} + </For> + </box> + </Show> <Show when={diff().length > 0}> <box> <text fg={theme.text}> @@ -147,20 +161,6 @@ export function Sidebar(props: { sessionID: string }) { </For> </box> </Show> - <Show when={todo().length > 0}> - <box> - <text fg={theme.text}> - <b>Todo</b> - </text> - <For each={todo()}> - {(todo) => ( - <text style={{ fg: todo.status === "in_progress" ? theme.success : theme.textMuted }}> - [{todo.status === "completed" ? "✓" : " "}] {todo.content} - </text> - )} - </For> - </box> - </Show> </box> </scrollbox> </Show> |
