Skip to content

feat(ui): add settings tab with tool-exploration toggle to chat dialogyes#15

Merged
albanm merged 1 commit into
mainfrom
feat-user-settings
Jun 5, 2026
Merged

feat(ui): add settings tab with tool-exploration toggle to chat dialogyes#15
albanm merged 1 commit into
mainfrom
feat-user-settings

Conversation

@albanm
Copy link
Copy Markdown
Member

@albanm albanm commented Jun 5, 2026

Replace the admin-only "Info" button in the chat header with a "Settings" button (cog icon) and add a "Settings" tab to the debug dialog. The tab holds an experimental tool-exploration toggle that admins can flip at runtime.

Why: make the experimental tool-exploration mode discoverable and switchable from the UI, instead of a hidden, read-only storage flag that required a manual reload.

What changed:

  • New "Settings" tab in AgentChatDebugDialog with a tool-exploration switch (+ EN/FR i18n).
  • Header button renamed Info → Settings, mdiInformationOutlinemdiCog, dropped color="success".
  • agent-chat-explore flag moved from sessionStorage (read-only at construct time) to localStorage, now writable; toggling resets the conversation so the new tool set applies cleanly.
  • useAgentChat reads toolExploration live and exposes setToolExploration for runtime changes.
  • Updated 9 e2e specs to target the new "Settings/Paramètres" button name.

Regression risks:

  • Persistence semantics changed: the exploration flag now survives tab close and is shared across tabs of the same origin (was per-session). Admins with the old sessionStorage flag set will lose it once (harmless).
  • Header button color shifts from green to default for admins — cosmetic but visible.
  • Runtime sync depends on setToolExploration being called alongside the conversation reset; the initial value is still read from localStorage at construction.

Add a Settings tab to the agent chat debug dialog with a switch for the
experimental tool-exploration mode, making the previously dev-only flag
editable from the UI. The flag now persists in localStorage and toggling
it resets the conversation so the new tool set applies cleanly.

The header button becomes a cog ("Settings") and tool-exploration is read
live in useAgentChat via a new setToolExploration setter.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@albanm albanm merged commit 84cf523 into main Jun 5, 2026
5 checks passed
@albanm albanm deleted the feat-user-settings branch June 5, 2026 15:46
@github-actions github-actions Bot added feature and removed feature labels Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant