Repository navigation
refactor(ui): sidebar IA cleanup: Activity to Settings, Dreams into Agents Memory tab, single MCP mutation owner - #104604
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: be7b7b25a3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| configSaving: configState.configSaving, | ||
| configApplying: configState.configApplying, | ||
| connected: configState.connected, | ||
| pluginsHref: pathForRoute("plugins", this.context.basePath), |
There was a problem hiding this comment.
Preserve disabled-only MCP override cleanup
When an existing config has a disabled-only MCP override such as mcp.servers.openclaw = { enabled: false }, this redirect makes Plugins the only enable/disable UI. The removed Settings helper used to delete that empty override when enabling, but the Plugins toggle only merge-patches enabled: null (ui/src/pages/plugins/plugins-page.ts:780-785), leaving {}; because configured servers with enabled !== false override bundled defaults (src/agents/bundle-mcp-config.ts:64-83), re-enabling a disabled bundled server can replace the real server definition with an enabled empty server instead of restoring it. Carry the empty-entry cleanup into the Plugins mutation before making it the sole owner.
Useful? React with 👍 / 👎.
|
Codex review: needs real behavior proof before merge. Reviewed July 11, 2026, 5:22 PM ET / 21:22 UTC. Summary Reproducibility: yes. at source level. A disabled-only bundled MCP override remains as an empty configured entry after re-enable, and the Memory controls are enabled while initial config loading is still pending. Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Keep the single-owner IA design, but preserve disabled-only MCP override cleanup, gate Memory actions through initial config/status loading, explicitly approve or redirect the retired Dreams URLs, and attach redacted real-browser proof before merge. Do we have a high-confidence way to reproduce the issue? Yes at source level. A disabled-only bundled MCP override remains as an empty configured entry after re-enable, and the Memory controls are enabled while initial config loading is still pending. Is this the best way to solve the issue? No in the current head. Consolidating each concept under one owner is the right architecture, but the retained paths must preserve the removed cleanup and loading guards before the solution is safe. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6082a0c6ef23. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (4 earlier review cycles)
|
0b63432 to
41c6287
Compare
…gents Memory tab, single MCP mutation owner, Usage icon Folds the per-agent Dreams page into the Agents page as a Memory panel and deletes the dreams route; moves the session-scoped Activity page out of the sidebar into Settings > System next to Logs; removes the MCP enable/disable toggle from Settings > MCP so the Plugins page is the single mutation surface for config.mcp.servers; gives Usage a coins icon so it no longer collides with Overview. Closes #104590
…ys without provider auth An unauthenticated ui:i18n:sync silently recorded English fallbacks, which the shipped-fallback CI gate then rejects; post-merge translation is owned by the control-ui-locale-refresh workflow. Sync now errors on new untranslated keys without a provider (OPENCLAW_CONTROL_UI_I18N_AUTH_OPTIONAL=1 opts back in), and the ui AGENTS guide documents the commit-en.ts-only contributor flow.
…e Memory tab expectation
41c6287 to
29804da
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 29804dadd8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| const dreamingOn = | ||
| dreaming.dreamingStatus?.enabled ?? | ||
| resolveConfiguredDreaming(currentConfigObject(configState)).enabled; | ||
| const loading = | ||
| this.awaitingRouteData || dreaming.dreamingStatusLoading || dreaming.dreamingModeSaving; | ||
| const refreshLoading = | ||
| this.awaitingRouteData || dreaming.dreamingStatusLoading || dreaming.dreamDiaryLoading; | ||
| const selectedAgentId = dreaming.selectedAgentId ?? this.resolveSelectedAgentId(); | ||
| const loading = dreaming.dreamingStatusLoading || dreaming.dreamingModeSaving; | ||
| const refreshLoading = dreaming.dreamingStatusLoading || dreaming.dreamDiaryLoading; |
There was a problem hiding this comment.
Gate Memory controls while config is still loading
On a first visit to the new Memory tab, loadAll() awaits runtimeConfig.ensureLoaded() before it starts loadDreamingStatus, so dreamingStatusLoading remains false while config.get is still in flight. With this loading calculation, the tab renders the fallback dreamingOn from an empty config as Off and enables the toggle/refresh; on a slow config load, clicking the toggle hits updateDreamingEnabled with no config hash and shows Config hash missing instead of waiting for the real config/status. Include the runtime config loading or an initial-load flag in this disabled/loading state, like the removed awaitingRouteData guard did.
Useful? React with 👍 / 👎.
|
Merged via squash.
|
…gents Memory tab, single MCP mutation owner (openclaw#104604) * refactor(ui): move dreams page modules to agents/memory (verbatim) * refactor(ui): sidebar IA cleanup: Activity to Settings, Dreams into Agents Memory tab, single MCP mutation owner, Usage icon Folds the per-agent Dreams page into the Agents page as a Memory panel and deletes the dreams route; moves the session-scoped Activity page out of the sidebar into Settings > System next to Logs; removes the MCP enable/disable toggle from Settings > MCP so the Plugins page is the single mutation surface for config.mcp.servers; gives Usage a coins icon so it no longer collides with Overview. Closes openclaw#104590 * docs: update Control UI docs for Activity/Memory/MCP sidebar changes * fix(scripts): fail control-ui i18n sync closed on new untranslated keys without provider auth An unauthenticated ui:i18n:sync silently recorded English fallbacks, which the shipped-fallback CI gate then rejects; post-merge translation is owned by the control-ui-locale-refresh workflow. Sync now errors on new untranslated keys without a provider (OPENCLAW_CONTROL_UI_I18N_AUTH_OPTIONAL=1 opts back in), and the ui AGENTS guide documents the commit-en.ts-only contributor flow. * chore(ui): translate new sidebar keys, refresh i18n baseline, localize Memory tab expectation
Closes #104590
What Problem This Solves
The Control UI sidebar exposes 14 top-level routes, several of which are workflow stages or debug views of existing domain objects rather than destinations of their own:
config.mcp.serversdirectly, while Settings › MCP toggled enablement through the config-editor save/publish flow.barCharticon, making the entries visually indistinguishable.Why This Change Was Made
One concept, one owner: the Agents page owns per-agent surfaces (Dreams becomes its Memory tab; the standalone route is deleted with no compat redirect, per repo policy), Settings › System owns observability/debug surfaces (Activity joins Logs and Debug there), and the Plugins page becomes the single interactive mutation surface for
config.mcp.servers(Settings › MCP keeps diagnostics, operator commands, read-only server rows, and the raw config editor, with a link to Plugins for management). Stale sidebar pins for moved routes drop automatically vianormalizeSidebarPinnedRoutes. The now-orphanedsetMcpServerEnabled/updateMcpServerEnabledconfig helpers and the dreams-onlysession-options.tshelper are deleted.User Impact
The sidebar loses two low-signal entries and gains nothing to relearn: Activity lives in Settings › System next to Logs, and each agent's memory/dreaming controls live on the agent itself under a new Memory tab (full feature parity: enable/disable with restart confirmation, diary backfill/dedupe/reset, grounded short-term reset, artifact repair, memory-wiki palace when that plugin is enabled). MCP server enable/disable now happens in exactly one place. Usage gets a distinct coins icon.
Evidence
pnpm check:changedon Blacksmith Testbox: exit 0 (leasetbx_01kx94brw9x0hc98x2xzcfdc2r, https://github.com/openclaw/openclaw/actions/runs/29162098458).gpt-5.6-sol, xhigh) of the hand-written commit: clean, no accepted/actionable findings.ui/srcsuite running on Testbox; result will be posted before merge.pnpm ui:i18n:sync; new keys fall back to English until the translation pass, which is the pipeline's normal state).