Repository navigation
fix(ui): make Memory Dashboard and Settings mutually exclusive in chatStore - #1368
kovtcharov-amd merged 1 commit into
Conversation
…tStore Clicking the Memory Dashboard button (sidebar or chat-toolbar) while the Settings page was open did nothing: `setShowMemoryDashboard(true)` ran, but the render ternary in `App.tsx:531-535` gives `showSettings` unconditional priority, so SettingsPage stayed on screen. The reverse direction "worked" but left a stale `showMemoryDashboard=true` in the store, so closing Settings via the back arrow could re-surface the Memory Dashboard from a previous session. The two store setters are now mutually exclusive — opening one view always closes the other, and a single-source-of-truth fix means future call sites cannot reintroduce the bug. `onHome` in `App.tsx:524` still works since it sets both flags to `false` explicitly (the `false` path of each setter does not touch the other flag). Fixes #1367 ## Test plan - [ ] Manual: open Settings from the sidebar, then click the Memory Dashboard button — Memory Dashboard renders (not Settings). - [ ] Manual: open Memory Dashboard, then click Settings — Settings renders (no change there, but verify the flag state is clean). - [ ] Manual: from each view, hit the back arrow — return to the chat / welcome view, not to whatever was opened "behind" it. - [ ] Add Playwright regression covering the "open Settings, click Memory Dashboard, verify Memory Dashboard is the rendered view" scenario and its symmetric counterpart.
|
Clean, well-reasoned fix that correctly addresses the root cause at the store level rather than patching individual call sites. SummaryThe two Zustand setters were independent — opening one view never cleared the other flag, leaving the Issues Found🟢 Minor — Playwright regression test not included (
|
19 PRs merged to main after the v0.20.0 notes were drafted; merge main into the release branch and update the notes to match. - Multi-Device: note #1338 wired the selector end-to-end (it was a no-op after #1252 alone) and added loud runtime validation for unavailable devices. - PowerPoint RAG: note #1366 unblocked .pptx in the Agent UI file picker (backend already accepted it; the frontend rejected it pre-upload). - Activations: note #1310 widened the "Active for" panel to MCP-consuming agents (e.g. the chat agent), not just static REQUIRED_CONNECTORS. - New bug fixes: RAG embedding reuse (#1306), overlapping-chat-turn 409 (#1304), Memory/Settings mutual exclusivity (#1368). - Tooling/CI: doc-vs-code realignment (#1298/#1337/#1340), gaia-testing skill (#1372), Claude CI + Codecov hardening. - Full Changelog regenerated: 44 -> 63 commits.
Why this matters
Clicking the Memory Dashboard button in the sidebar (or the Memory icon in the chat-toolbar) had no effect when the Settings page was currently open. The user had to close Settings first before Memory Dashboard would respond. The reverse direction "worked" but left a stale
showMemoryDashboard=truein the store, so closing Settings via the back arrow could re-surface the Memory Dashboard from a previous session.The Agent UI is not router-based. "Routing" between top-level views is a stateful ternary in
App.tsx:531-535that givesshowSettingsunconditional priority overshowMemoryDashboard, and the two store setters never cleared each other's flag.What changed
Single-source-of-truth fix in
src/gaia/apps/webui/src/stores/chatStore.ts:262-265: the two setters are now mutually exclusive — opening one view always closes the other. This is better than patching all three call sites (sidebar × 2, chat-toolbar × 1) because future call sites cannot reintroduce the bug.onHomeinApp.tsx:524still works correctly — it sets both flags tofalseexplicitly, and thefalsepath of each setter does not touch the other flag.Test plan
Notes
74f637a4) which addedMemoryDashboardand theshowMemoryDashboardflag without making the two flags mutually exclusive.Fixes #1367