Skip to content

Conversation

@ariane-emory
Copy link
Owner

What does this PR do?

How did you verify your code works?

- Add persistence for MCP, LSP, Todo, and Modified Files sidebar sections
- Each section's expanded/collapsed state is saved individually to kv.json
- States are automatically restored when OpenCode restarts
- Fix KV context bug that was destroying existing values on write
- All sections default to expanded to maintain current behavior

Changes:
- cli/cmd/tui/routes/session/sidebar.tsx: Add KV-backed state management
- cli/cmd/tui/context/kv.tsx: Fix serialization to preserve all values
…m:ariane-emory/opencode into feat/persist-sidebar-group-folding-states
@ariane-emory ariane-emory force-pushed the feat/persist-sidebar-group-folding-states branch from 454532d to 6b03e9d Compare January 11, 2026 05:20
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.

2 participants