Skip to content

tweak: plan interactions should match web (TUI)#895

Merged
thdxr merged 1 commit intoanomalyco:devfrom
rekram1-node:tweak/plan-cards
Jul 11, 2025
Merged

tweak: plan interactions should match web (TUI)#895
thdxr merged 1 commit intoanomalyco:devfrom
rekram1-node:tweak/plan-cards

Conversation

@rekram1-node
Copy link
Copy Markdown
Collaborator

@rekram1-node rekram1-node commented Jul 11, 2025

Fixes: #894

Example of what these changes look like (if you wanna compare to web see here)
Screenshot 2025-07-11 at 3 36 15 PM

Comment on lines +503 to +509
func getTodoPhase(metadata map[string]any) string {
todos, ok := metadata["todos"].([]any)
if !ok || len(todos) == 0 {
return "Plan"
}

counts := map[string]int{"pending": 0, "completed": 0}
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This mimics the same pattern done in part.tsx for TodoWriteTool

@rekram1-node rekram1-node changed the title tweak: adjust rendering of todos tweak: adjust rendering of todos (TUI) Jul 11, 2025
@rekram1-node rekram1-node changed the title tweak: adjust rendering of todos (TUI) tweak: plan interactions should match web (TUI) Jul 11, 2025
@thdxr thdxr merged commit 97a31dd into anomalyco:dev Jul 11, 2025
achembarpu pushed a commit to achembarpu/opencode that referenced this pull request Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TUI: Plan interactions should match web.

2 participants