Repository navigation
feat(ui): call chat sessions threads and quiet the sidebar sections - #110933
Conversation
Thread naming on every creation surface (new-thread page, draft row, + tooltips, untitled-thread fallback, New Chat guard toasts). The draft placeholder now renders as the first item inside the Threads section and genuinely expands a collapsed section so the header toggle stays honest. Empty sidebar sections no longer render (Coding keeps its CLI-catalog exception); expanded section headers reveal their chevron only on hover/focus while collapsed headers keep chevron + count. The new-thread button moves from the macOS titlebar strip into the sidebar brand row next to the agent picker (bigger, offline-aware); the titlebar + renders only while the rail is collapsed. Mobile drawer shows the new + as well.
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat(ui): call chat sessions threads and quiet the sidebar sections This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 634046420c
ℹ️ 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".
| onClick: this.onOpenNewSession, | ||
| className: "macos-titlebar-controls__new-session", | ||
| })} | ||
| ${this.navCollapsed |
There was a problem hiding this comment.
Keep the titlebar action in the narrow desktop Mac layout
When the native dashboard's main browser is 601–699 px wide, it remains in desktop mode because ui/src/app/mobile-nav-layout.ts:5 switches to the drawer only at 600 px, but the injected Mac sidebar clearance starts at 700 px in apps/macos/Sources/OpenClaw/DashboardWindowController.swift:818. In that range, the fixed titlebar strip (ui/src/styles/layout.css:148) overlays the new brand-row button, so hiding this titlebar button whenever navCollapsed is false removes the readily clickable New thread action—especially when Threads is empty and its header is also hidden. Keep the titlebar action for this layout or ensure the sidebar action clears the native chrome.
Useful? React with 👍 / 👎.
Empty-section hiding narrows to the Threads zone at rest: user-created categories stay visible when empty (New group… creation and drag-into-group flows depend on them), and an empty Threads section reappears while a session drag is in flight so drag-to-unpin keeps its drop target.
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat(ui): call chat sessions threads and quiet the sidebar sections This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 2083d3b802
ℹ️ 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".
| return html` | ||
| ${options.showDraft ? this.renderDraftSessionRow() : nothing} | ||
| ${sections.map((section) => { | ||
| const showDraft = section.id === "ungrouped" && options.showDraft; |
There was a problem hiding this comment.
Keep the draft row with the selected agent
When the user changes Agent on the New thread page, this places the draft under the original agent's Threads section rather than the agent that will own the created thread. The sidebar derives draftSessionAgentId solely from the unchanged ?agent parameter (ui/src/app/app-host.ts:1148), while the picker only updates the page-local agentId (ui/src/pages/new-session/new-session-page.ts:888); consequently showDraft remains true for the original sidebar scope even though submission uses the newly selected agent. Synchronize the route/sidebar draft identity when the picker changes, or source this placement from the page's current draft state.
Useful? React with 👍 / 👎.
The empty Threads section only materializes mid-drag, so Playwright cannot
pre-resolve it as a drop target; the sessions container's drop handler owns
the unpin and sends {pinned:false} without a category reset.
|
Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 4:20 PM ET / 20:20 UTC. Summary PR surface: Source +211, Tests +6. Total +217 across 21 files. Reproducibility: yes. from source: at native desktop widths between 601 and 699 px the titlebar can cover the new sidebar action, and changing the New thread page agent leaves draft placement tied to the original route agent. Review metrics: none identified. 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:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Preserve the prominent sidebar action, restore or reserve a reachable native-titlebar action for the narrow desktop range, synchronize draft placement with the selected creation agent, and attach redacted real native UI evidence for both paths. Do we have a high-confidence way to reproduce the issue? Yes, from source: at native desktop widths between 601 and 699 px the titlebar can cover the new sidebar action, and changing the New thread page agent leaves draft placement tied to the original route agent. Is this the best way to solve the issue? No: the current layout and route-derived draft identity do not preserve access or placement across the affected native and picker paths; the smallest maintainable repair keeps the action reachable and shares the selected agent with sidebar draft state. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 37b0b12eb72c. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +211, Tests +6. Total +217 across 21 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
Review history (1 earlier review cycle)
|
|
Merged via squash.
|
…UI (#110973) * feat(ui): finish the chat session → thread rename across the Control UI Completes the #110933 creation-surface rename mechanically: Threads page (title, filters, archive/delete/rename/pin menus, transcript search), sidebar labels and menus, welcome suggestion, palette category, tools availability copy, workboard lifecycle/card strings, dreaming history, board/diff/workspace-rail chrome, and the untitled main/channel fallback names. Technical identifiers stay: Session ID, session keys, terminal sessions, protocol wording. Living docs updated (control-ui.md); historical release notes left as shipped. * style(ui): format session-management e2e * fix(ui): finish thread rename in navigation labels and stale test literals Codex review caught the palette Threads entry and the Worktrees owner column still saying Session; CI caught test literals asserting the old copy (Threads page overview tile, filter tooltips, group counts, catalog terminal notice, create-rejection error, workboard lifecycle hint). Also completes the usage-stat cluster (Threads + hints) and the tool-catalog group label. Native app strings (iOS/Android/macOS) keep session wording and reconcile through their own i18n pipelines as a follow-up.
…penclaw#110933) * feat(ui): call chat sessions threads and quiet the sidebar sections Thread naming on every creation surface (new-thread page, draft row, + tooltips, untitled-thread fallback, New Chat guard toasts). The draft placeholder now renders as the first item inside the Threads section and genuinely expands a collapsed section so the header toggle stays honest. Empty sidebar sections no longer render (Coding keeps its CLI-catalog exception); expanded section headers reveal their chevron only on hover/focus while collapsed headers keep chevron + count. The new-thread button moves from the macOS titlebar strip into the sidebar brand row next to the agent picker (bigger, offline-aware); the titlebar + renders only while the rail is collapsed. Mobile drawer shows the new + as well. * fix(ui): keep empty custom groups and the mid-drag Threads drop target Empty-section hiding narrows to the Threads zone at rest: user-created categories stay visible when empty (New group… creation and drag-into-group flows depend on them), and an empty Threads section reappears while a session drag is in flight so drag-to-unpin keeps its drop target. * test(ui): drag-to-unpin targets the sessions surface The empty Threads section only materializes mid-drag, so Playwright cannot pre-resolve it as a drop target; the sessions container's drop handler owns the unpin and sends {pinned:false} without a category reset.
…UI (openclaw#110973) * feat(ui): finish the chat session → thread rename across the Control UI Completes the openclaw#110933 creation-surface rename mechanically: Threads page (title, filters, archive/delete/rename/pin menus, transcript search), sidebar labels and menus, welcome suggestion, palette category, tools availability copy, workboard lifecycle/card strings, dreaming history, board/diff/workspace-rail chrome, and the untitled main/channel fallback names. Technical identifiers stay: Session ID, session keys, terminal sessions, protocol wording. Living docs updated (control-ui.md); historical release notes left as shipped. * style(ui): format session-management e2e * fix(ui): finish thread rename in navigation labels and stale test literals Codex review caught the palette Threads entry and the Worktrees owner column still saying Session; CI caught test literals asserting the old copy (Threads page overview tile, filter tooltips, group counts, catalog terminal notice, create-rejection error, workboard lifecycle hint). Also completes the usage-stat cluster (Threads + hints) and the tool-catalog group label. Native app strings (iOS/Android/macOS) keep session wording and reconcile through their own i18n pipelines as a follow-up.
…penclaw#110933) * feat(ui): call chat sessions threads and quiet the sidebar sections Thread naming on every creation surface (new-thread page, draft row, + tooltips, untitled-thread fallback, New Chat guard toasts). The draft placeholder now renders as the first item inside the Threads section and genuinely expands a collapsed section so the header toggle stays honest. Empty sidebar sections no longer render (Coding keeps its CLI-catalog exception); expanded section headers reveal their chevron only on hover/focus while collapsed headers keep chevron + count. The new-thread button moves from the macOS titlebar strip into the sidebar brand row next to the agent picker (bigger, offline-aware); the titlebar + renders only while the rail is collapsed. Mobile drawer shows the new + as well. * fix(ui): keep empty custom groups and the mid-drag Threads drop target Empty-section hiding narrows to the Threads zone at rest: user-created categories stay visible when empty (New group… creation and drag-into-group flows depend on them), and an empty Threads section reappears while a session drag is in flight so drag-to-unpin keeps its drop target. * test(ui): drag-to-unpin targets the sessions surface The empty Threads section only materializes mid-drag, so Playwright cannot pre-resolve it as a drop target; the sessions container's drop handler owns the unpin and sends {pinned:false} without a category reset.
…UI (openclaw#110973) * feat(ui): finish the chat session → thread rename across the Control UI Completes the openclaw#110933 creation-surface rename mechanically: Threads page (title, filters, archive/delete/rename/pin menus, transcript search), sidebar labels and menus, welcome suggestion, palette category, tools availability copy, workboard lifecycle/card strings, dreaming history, board/diff/workspace-rail chrome, and the untitled main/channel fallback names. Technical identifiers stay: Session ID, session keys, terminal sessions, protocol wording. Living docs updated (control-ui.md); historical release notes left as shipped. * style(ui): format session-management e2e * fix(ui): finish thread rename in navigation labels and stale test literals Codex review caught the palette Threads entry and the Worktrees owner column still saying Session; CI caught test literals asserting the old copy (Threads page overview tile, filter tooltips, group counts, catalog terminal notice, create-rejection error, workboard lifecycle hint). Also completes the usage-stat cluster (Threads + hints) and the tool-catalog group label. Native app strings (iOS/Android/macOS) keep session wording and reconcile through their own i18n pipelines as a follow-up.
What Problem This Solves
The sidebar mixed two names for the same concept: the list is headed "Threads", but every creation surface still said "New session" (titlebar
+, Threads-header+, the draft placeholder row, and the whole new-session page). Three structural nits compounded it:+) while the far more important new-thread action was visually equal to chrome buttons.Why This Change Was Made
+tooltips ("New thread" / "Connect to create a new thread" / "New thread in worktree"), the untitled-thread fallback row name, and the New-Chat guard toasts. Key names staynewSession*; only values changed. Sessions page / terminal "session" wording is deliberate follow-up scope.+next to the agent picker: a larger new-thread button (32px, 18px glyph, full-strength color) is the first action in the sidebar brand row, right of the agent card. It creates a thread for the expanded agent and disables offline with an explanatory tooltip. The titlebar+now renders only while the sidebar rail is collapsed, so the action stays one click away in both states without duplication. The mobile drawer shows the new+too (search/collapse stay hidden there as before).User Impact
Sidebar and Mac titlebar. One consistent name ("thread") on every creation surface, the draft appears where the thread will live, a prominent
+sits next to the agent picker, and resting chrome is reduced to exceptions (collapsed sections, live-run badges).Hover reveal on an expanded header, and the collapsed-rail titlebar with the
+restored:Evidence
node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts— 124 passed (includes newsession-list-sectionscases: draft renders first inside an auto-expanded empty Threads section, header toggle still collapses during a draft, pagination stays correct, empty known category hidden until it has a row).node scripts/run-vitest.mjs ui/src/app/app-host.test.ts— 26 passed (titlebar+absent expanded, present collapsed).node scripts/run-vitest.mjs ui/src/lib/session-display.test.ts— 11 passed (untitled dashboard threads fall back to "New thread").pnpm ui:i18n:baseline(keyless) — clean; onlyen.tstouched, foreign bundles untouched for the post-merge locale bot.oxfmt --checkclean on all changed files; autoreview (Codex, gpt-5.6-sol high) clean.scripts/control-ui-mock-dev.ts) with simulated Mac web chrome; before-shots from the merge base, after-shots from this branch, identical fixtures.b7f99d0ffd2. The branch's failure set matches the base's exactly (pre-existing lane rot: cloud-target/secure-context timeouts, group prompt-dialog flows, settings-route drift — follow-up filed), with two branch-only regressions found and fixed during this comparison (empty custom groups restored; drag-to-unpin drop target), and one base failure that this branch fixes ("opens a git-backed agent draft" — the always-visible brand+is a stabler target than the hover-revealed header+). Finalsession-managementrun: 7 failed / 11 passed = the exact base-broken set.