Skip to content

fix(tui): move KV-persisted toggles from Session to System category#244

Open
ariane-emory wants to merge 23 commits intodevfrom
feat/command-palette-consistency
Open

fix(tui): move KV-persisted toggles from Session to System category#244
ariane-emory wants to merge 23 commits intodevfrom
feat/command-palette-consistency

Conversation

@ariane-emory
Copy link
Owner

@ariane-emory ariane-emory commented Mar 14, 2026

What does this PR do?

Move several command palette items that persist via KV store and that last through changes in sessoin to the System category for consistency:

  • Show/Hide timestamps
  • Show/Hide thinking
  • Show/Hide tool details
  • Show/Hide header
  • Show/Hide generic tool output
  • Show/Hide scrollbar
  • Show/Hide sidebar

These toggles persist across sessions, so they belong in System rather than Session group and should be available for use before a session has been started by sending a message.

Resolves #158

How did you verify your code works?

Manual A/B testing, bun typecheck, bun test.

ariane-emory and others added 23 commits February 12, 2026 21:53
Move four command palette items that persist via KV store from the
session route to the app level so they are available at all times:

- Show/Hide timestamps
- Show/Hide thinking
- Show/Hide tool details
- Show/Hide header

These toggles persist across sessions via kv.json, so they belong in
the System category and should be accessible even before a session starts.

Resolves #158
…mory/opencode into feat/command-palette-consistecy
…_output to app.tsx, remove duplicates from session/index.tsx
Move the sidebar_toggle command from session/index.tsx to app.tsx to
properly categorize it as a System command. The command now uses
kv.get()/kv.set() to persist the sidebar visibility state across
sessions, following the same pattern as other moved commands
(timestamps, thinking, tool details, etc.).

Changes:
- Remove sidebar_toggle from session/index.tsx
- Add sidebar_toggle to app.tsx with proper kv-based implementation
- Update value from 'session.sidebar.toggle' to 'app.toggle.sidebar'
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.

Improve consistency/clarity by moving the remaining session-agnostic KV-persisted toggles to the System category

1 participant