Repository navigation
feat(ui): five-zone sidebar — agent identity card, threads/groups/coding, footer bar - #110259
Conversation
…coding zones, and footer bar
…ng list container
|
Before/after (mock-dev harness,
Visible in the after states: agent identity card (Molty, presence, switcher chevron) replacing the main-session row; Threads with a running tree (child toggle + spinner) and a promoted main-session child with unread dot; Groups as quiet rows with unread; Coding collapsed by default on empty storage (count badge) and expanded showing the worktree row ( Storage-state coverage per review request: fresh run (no stored collapse state) starts with Coding collapsed — after3-fresh-sidebar; after expanding, a reload preserves the stored expanded preference — after3-reload-sidebar. Full window: after3-full. Product direction: owner-directed design (five zones, agent card as main-session entry, Coding collapsed by default) — confirmed by @steipete in the working session that produced this PR. |
|
Codex review: found issues before merge. Reviewed July 17, 2026, 9:30 PM ET / July 18, 2026, 01:30 UTC. Summary PR surface: Source +298, Tests +72, Other +60. Total +430 across 20 files. Reproducibility: yes. from source: configure global agent scope with two agents that each have children whose Review metrics: 1 noteworthy metric.
Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Pass the selected agent id through the hidden global-main child-session fetch, filter/promote only that agent’s children, and add a multi-agent global-scope regression test before the owner-reviewed UI redesign lands. Do we have a high-confidence way to reproduce the issue? Yes from source: configure global agent scope with two agents that each have children whose Is this the best way to solve the issue? No. The five-zone design is an established owner-directed choice, but the current implementation is not the safest form because its global-main child fetch must retain selected-agent ownership before rendering promoted Threads. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c08ce42cefc9. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +298, Tests +72, Other +60. Total +430 across 20 files. View PR surface stats
What 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
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: cbf3a9a701
ℹ️ 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".
| protected selectedAgentMainSessionKey(agentId?: string): string { | ||
| return buildAgentMainSessionKey({ | ||
| agentId: agentId ?? this.expandedAgentId(), | ||
| mainKey: resolveUiConfiguredMainKey({ | ||
| agentsList: this.context?.agents.state.agentsList, | ||
| hello: this.context?.gateway.snapshot.hello, | ||
| }), | ||
| }); |
There was a problem hiding this comment.
Honor global main sessions in the agent card
When session.scope is global, the gateway advertises the canonical main session as global (src/config/sessions/main-session.ts:18-24 and src/gateway/server/health-state.ts:41-45), but this new helper always synthesizes agent:<id>:<mainKey>. The new identity card uses this value to hide the main row and to find the row for active/run/unread state, so global-scope users can still get the global main row in Threads while the card does not show that main session as active/running/unread. Resolve the canonical main key from the gateway defaults, or map global scope to global, before comparing/rendering the card.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed across b3e13b1 + ad14ae5 — selectedAgentMainSessionKey now resolves the canonical key via resolveUiCanonicalMainSessionKey when global scope is configured (advertised mainSessionKey first, global sentinel fallback pre-hello), so the identity card owns the global main row's active/running/unread state and it no longer leaks into Threads. Regression test: "treats the global key as the main session under global scope" (row hidden, sibling listed, card unread dot asserted).
…under global scope
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2283888d70
ℹ️ 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".
| !this.failedChildSessionKeys.has(mainRow.key) && | ||
| !this.loadingChildSessionKeys.has(mainRow.key) | ||
| ) { | ||
| void this.loadChildSessions(mainRow.key); |
There was a problem hiding this comment.
Scope global main-child loads to the selected agent
When agents.scope is global, the hidden main row key is the literal global, so this eager load calls sessions.list with only spawnedBy: "global". The gateway loads the combined session store when agentId is absent (src/gateway/server-methods/sessions-read.ts:133-164) and only filters rows by agent when opts.agentId is set (src/gateway/session-utils.ts:2516-2548), while sessions.create supports agent-specific children with parentSessionKey: "global" (src/gateway/server.sessions.create.test.ts:1300-1308). In a multi-agent global-scope setup, expanding/promoting the card's hidden-main children can therefore pull another agent's global children into the selected agent's Threads; pass the selected agent id through this main-child fetch (at least for global main) before promoting those rows.
Useful? React with 👍 / 👎.
|
Merged via squash.
|
…ing, footer bar (openclaw#110259) * feat(ui): five-zone sidebar with agent identity card, threads/groups/coding zones, and footer bar * fix(ui): promote main-session children via the gateway row's literal key * fix(ui): filter and sort promoted main-session threads; hide empty Coding count * fix(ui): collapsed zones no longer consume the visible session page budget * fix(ui): a11y — offline card label and catalog lists outside the Coding list container * fix(ui): zone headers use pre-pagination counts so paged-out zones stay visible * chore(ui): document catalog-adoption dedup invariant on promoted threads * chore(ui): seed five-zone sidebar fixtures in the mock-dev harness * fix(ui): resolve the canonical global main key for the identity card under global scope * fix(ui): global scope resolves the global sentinel as canonical main even pre-hello * fix(ui): drop dead channelDisplayLabel, avoid map-spread, type zone test helper



What Problem This Solves
The sidebar treated the agent's main session as just another row (
Main Session) in a flat, channel-partitioned list, with the product logo claiming the top slot and the agent identity relegated to a footer chip. For a personal-agent product the hierarchy is backwards: the agent is the primary object, its rolling main session is the primary conversation, and coding/CLI sessions are background noise.Why This Change Was Made
Owner-directed redesign into five zones (design mockups reviewed in-session):
openclaw-sidebar-agent-cardreplaces both the brand-bar identity and the footer agent chip. Avatar + name + presence + live subtitle; card body opens the agent's main session (the main-session row leaves the list — its spawned children are promoted to top-level threads); trailing button opens the existing agent menu, labeled as a switcher when 2+ agents exist. Main-session unread/running state surfaces on the card.kind: "group"sessions as quiet compact rows.isAcpSessionKeyclassifier). Collapsed header shows true count + running dot.Zone partition rules (
groupSidebarSessionRows) rewritten accordingly; collapsed zones no longer consume the visible page budget, and headers use pre-pagination counts so paged-out zones stay visible.User Impact
The web sidebar reads as "my agent, its threads, the places it listens, background coding work" instead of a session dump. Collapse state, pins, categories, catalog interactions, and the agent menu all keep working. First run starts with Coding collapsed. Removed: the empty-chat fallback row (redundant with the card) and the
chat.sidebar.chats/workSessionslabels (i18n keys replaced bythreads/groups/coding).Evidence
ui/src/components/app-sidebar.test.ts: 104/104 passing (structure rewritten for zones; new regression test: main-session children promoted to top-level threads incl. alias parent keys)ui/src/lib/sessions/grouping.test.ts: 12/12 zone-partition casesui/src/lib/sessions: 104 passing;pnpm tsgo:uiclean;pnpm ui:i18n:verifyclean;git diff --checkcleanlobster-pet/lobster-dex/dock-panel-layoutreproduce with pristine origin/main files (Node 26 jsdom env; CI Linux/Node 24 is truth)adoptedCatalogSessionKeyscontains only catalog-bound keys; catalog-adopted children intentionally dedupe into the Coding catalog (invariant now documented inline)