Skip to content

feat(agent-chat): move Show settings to per-machine browser state#292

Open
danshapiro wants to merge 4 commits intomainfrom
fix/agent-chat-display-settings-pr
Open

feat(agent-chat): move Show settings to per-machine browser state#292
danshapiro wants to merge 4 commits intomainfrom
fix/agent-chat-display-settings-pr

Conversation

@danshapiro
Copy link
Copy Markdown
Owner

Summary

  • move agent-chat Show toggles from pane-scoped state into persisted per-machine browser preferences
  • migrate legacy pane-stored display settings and update defaults/e2e flows for the new storage model
  • add regression coverage for settings, persistence, migration, and agent-chat display behavior

Context

  • extracts the local-only main drift into a dedicated PR branch

Testing

  • npm run test:vitest -- test/unit/shared/settings.test.ts test/unit/client/store/state-edge-cases.test.ts test/unit/client/store/panesPersistence.test.ts test/unit/client/store/browserPreferencesPersistence.test.ts test/unit/client/components/SettingsView.agent-chat.test.tsx
  • npm run test:vitest -- test/unit/client/components/agent-chat/AgentChatView.behavior.test.tsx test/unit/client/components/agent-chat/AgentChatView.perf-audit.test.tsx test/unit/client/components/agent-chat/MessageBubble.test.tsx test/unit/client/components/agent-chat/ToolStrip.test.tsx test/e2e/agent-chat-context-menu-flow.test.tsx test/e2e/agent-chat-polish-flow.test.tsx

Dan Shapiro added 4 commits April 7, 2026 09:34
…ser state

Show thinking, Show tools, and Show timecodes were stored per-pane in
AgentChatPaneContent. They now live in LocalSettings (browser-local
localStorage), shared across all agent chat panes and persisted across
page loads. All three default to off (false).
… settings

E2e tests now use preloadedState with showTools: true where expanded
tools are expected. CollapsedTurn defaults updated to false. Comments
updated to reflect new per-machine defaults.
Migrate showThinking/showTools/showTimecodes from persisted agent-chat
pane content into browser-local preferences on module load, so existing
users keep their settings after the per-pane → per-machine move.
- SettingsView.agent-chat.test.tsx: 9 tests for Workspace toggles
  (defaults, preloaded state, toggle on/off, local-only persistence)
- browserPreferencesPersistence.test.ts: 4 round-trip tests for
  agentChat.showThinking/showTools/showTimecodes localStorage persistence
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.

1 participant