Repository navigation
feat: manage sessions and worktrees in native Windows UI - #1897
Conversation
Rebuild Settings Sessions with Reactor, typed Gateway queries, transcript search, groups, owners, appearance and worktree management. Preserve shared session actions and bind mutations to their original authenticated connection. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Co-authored-by: Copilot App <[email protected]>
Current-head Sessions proof and parity checklistCaptured from commit The attached app-window captures show the list, metadata filtering, custom grouping, details and appearance controls, transcript results, archived sessions, Worktrees, empty state, disconnected/Open Connection state, dark theme and read-only access. The app's MCP discovery and invocation succeeded; operator scopes were independently checked for administrator and read-only scenarios. Disconnecting the fixture cleared the actionable roster while local MCP remained available. Local Shared tests: 4,731 passed, 25 ordinary opt-in skips, zero failures. Native ARM64 Tray tests: 4,562 passed, four pre-existing architecture-sensitive prerequisite-fixture failures. This is not a clean local Tray result. Hosted core, Tray/setup/integration, E2E and packaging results are linked from the workflow: https://github.com/openclaw/openclaw-windows-node/actions/runs/40581755832. CI is green on attempt 2. Attempt 1's UI test host crash after 89 completed cases is retained as a failed attempt, not a passing suite. Attempt 2 completed 557 UI cases (33 ordinary opt-in skips), all 23 Axe scans, 19 functional UI cases and the CI Gate. The final local build and non-Dev ARM64 Release build passed. Debug fixture history/navigation proof passed 4/4; production Release fixture history/navigation/streaming proof passed 5/5; mounted Reactor Markdown list/table/disposal proof passed 10/10; the isolated flyout reproduction passed 4/4. Remaining native-host limits: the local full Axe run passed 22/23, including Sessions; Sandbox reported two unnamed Expander peers. A broader combined ARM64 layout/Axe run failed geometry checks (including Reference: openclaw/openclaw@5089aa71
Deferred or replaced (with reason)
|
|
Codex review: needs real behavior proof before merge. What this changesThis PR adds native session filtering, transcript search, grouping, ownership, appearance, bulk actions, and worktree management. Example: Search session transcripts for "token" in Settings > Sessions.
Review scores
ProductKind: Feature · Worth it: Yes Merge readiness⛔ Blocked before merge - 11 items remain Keep open: this collaborator-authored draft adds useful native management capabilities, but four controller defects block merge. Priority: P2 Before merge
Findings
Provenance
Tests
Agent review detailsHow this fits togetherThe Settings Sessions page consumes authenticated Gateway rows, scopes, profiles, and events, renders native Reactor views, and sends session and worktree operations through the shared Gateway client. flowchart TD
User[Windows user] --> Page[Sessions page]
Page --> Controller[Sessions hub controller]
Controller --> Views[Native Reactor views]
Controller --> Client[Typed Gateway client]
Connection[Connection manager] --> Client
Client --> Gateway[Authenticated Gateway]
Gateway --> Controller
Technical reviewBest possible solution: Repair invalidation and stale-state handling in the existing controller and views while preserving shared action owners and authenticated connection fencing. Do we have a high-confidence way to reproduce the issue? The four patch defects follow directly from the controller and rendering paths; no target code, builds, or tests were executed during this read-only review. Is this the best way to solve the issue? The ownership cutover is coherent and removes the replaced archive source; the invariant is that displayed results and actions match their current scope and identity, and the smallest repair belongs in the existing controller and views. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 48cb8a18fdb5. Merge-risk optionsMaintainer options:
Provenance checked
TestingProof path: shipped entry point. SecurityNeeds attention: No authorization bypass is established, but the new ownership and destructive paths need final-effect authority evidence. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 27, 2026, 5:25 PM ET / 21:25 UTC. |
Invalidate stale roster and transcript results, retain identity-bound rename drafts, guard Worktree lookups and single-delete confirmations, and use explicitly advertised atomic group creation. Add native controller regressions and localized search scope membership. Co-authored-by: Copilot App <[email protected]>
Replace the side and full-page details pane with a native Expander per session row. The row header stays the identity and action bar; the expanded body holds only settings, appearance, ownership and facts on the native neutral card layer, without repeating the name or adding an accent fill. Transcript Show details reveals the matching page and collapsed group. Remove the unused accent selection brush and orphaned close-details string, and update DESIGN.md. Co-authored-by: Copilot App <[email protected]>
Dim only the row header for archived sessions under All so the expanded editor stays fully opaque. Transcript Show details now reveals completed sessions for the current visit without saving the Show completed preference. Keep the last expanded row body mounted, hidden once collapsed, so the native collapse animation slides real content. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]> # Conflicts: # docs/WINDOWS_NODE_TESTING.md # src/OpenClaw.Shared/IOperatorGatewayClient.cs # src/OpenClaw.Shared/OpenClawGatewayClient.cs # src/OpenClaw.Tray.WinUI/Chat/ReactorChatTimeline.cs # src/OpenClaw.Tray.WinUI/Chat/ReactorChatWelcome.cs # src/OpenClaw.Tray.WinUI/OpenClaw.Tray.WinUI.csproj # src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml # src/OpenClaw.Tray.WinUI/Pages/SessionsPage.xaml.cs # src/OpenClaw.Tray.WinUI/Strings/en-us/Resources.resw # src/OpenClaw.Tray.WinUI/Strings/fr-fr/Resources.resw # src/OpenClaw.Tray.WinUI/Strings/nl-nl/Resources.resw # src/OpenClaw.Tray.WinUI/Strings/pt-br/Resources.resw # src/OpenClaw.Tray.WinUI/Strings/zh-cn/Resources.resw # src/OpenClaw.Tray.WinUI/Strings/zh-tw/Resources.resw # tests/OpenClaw.TestSupport/Gateway/GatewayScenario.cs # tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj # tests/OpenClaw.Tray.Tests/ReactorChatMarkdownContractTests.cs
…ation Preserve Sessions freshness, owner fencing and native adaptive shell behavior. Add pinned Sessions hit-testing, keyboard and operation-feedback regression coverage. Current inset/layering and pinned native regression validation remains queued under the exclusive runtime lane; this commit does not claim native acceptance. Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
PR cleanup reviewReviewed head: Thanks for the detailed work and proof notes. I recommend keeping this draft open, not closing it as superseded: the native Sessions/Worktrees feature is still distinct from main. The current head needs repair first: the nested public theory in WorkspaceSettingsLayoutTests prevents compilation, attention tests target controls no longer rendered, and the standalone New group action is permanently disabled. The archive-all path also needs the same ID-less confirmation invalidation as the other delete paths. Please reconcile the branch with current main while preserving the shared shell, Inbox and Markdown owners, then refresh exact-head build/native/Gateway-authority evidence. The linked screenshots and review currently cover dccc5e2, not 2d723ac. Action in this cleanup pass: leaving this PR open. No branch changes or runtime-proof waiver. The findings above come from source, discussion and recorded-CI review; Windows validation was not rerun in this pass. |
Co-authored-by: Copilot App <[email protected]>
Adopt main's owners for shared presentation, shell, workflows, packaging and other Settings pages; keep only Sessions-owned changes. Co-authored-by: Copilot App <[email protected]>
… to the web Remove owner assignment, custom category catalog management, cloud-worker stop and the unused tracked-attention freshness path. Keep a per-session Open dashboard action from main. Co-authored-by: Copilot App <[email protected]>
…t contract pins Remove the old XAML Sessions page strings that nothing references in any locale, drop the duplicate sessions.search snapshot entry, and let the fixture accept the source parameter that SessionListQuery sends. Co-authored-by: Copilot App <[email protected]>
Archive Undo now expands the restored row's group even when the user just collapsed it, focuses the shown row's header (the Expander itself is not a tab stop) after it is brought into view, and ignores recycled hidden copies. Session rows use the shared 8 DIP card gap including ItemsView spacing. Tests no longer await the New worktree dialog by overload accident, look for its fields in the popup layer, wait for the queued branch load before the stale-lookup race, and change navigation for real in the pending-Undo case. Co-authored-by: Copilot App <[email protected]>
The roster container set one margin on every item, which replaced the group header's top separation and the empty-group indent. Compute the margin per item kind instead. Co-authored-by: Copilot App <[email protected]>
… proofs to the hub A plain disconnect now leaves an open Sessions prompt in place, with Confirm disabled and refused, so the Settings shell can defer navigation pruning until the real dialog closes. A new connection still cancels pending prompts. Fixture tests: main's Settings modal proofs open Reset through the hub row's More actions menu (with admin scope), the eyebrow proof now checks the shared hero, and the gallery baseline sends Escape only while an overlay is open because Escape otherwise leaves Settings. In-process Sessions tests wait for rendered rows, editors, gaps and inset offsets instead of sampling one frame. Co-authored-by: Copilot App <[email protected]>
…hub scenario The Reactor ContentDialog's AutomationId is not exposed through the popup layer, so the Reset and Delete proofs wait for the dialog body instead. The hero proof runs on the sessions-hub scenario that advertises worktrees, and the gallery baseline clears the name filter that Escape used to reset. Co-authored-by: Copilot App <[email protected]>
…ch closes The name filter is read-only while message search is open, so the baseline restore waits for it to be editable before clearing it. Co-authored-by: Copilot App <[email protected]>
…them Co-authored-by: Copilot App <[email protected]>
…aseline Co-authored-by: Copilot App <[email protected]>
…button Co-authored-by: Copilot App <[email protected]>
… web Remove color/icon editors and patch fields, selection state and bulk-delete planning, obsolete proof and localized strings. Keep single-session archive/delete and Undo, including permission, identity and response handling; retarget native gallery proof to the single-row action. Co-authored-by: Copilot App <[email protected]>
…ctions Keep the shared archive patch owner and protocol compatibility changes from main. Carry the observed session ID through the native Sessions archive, unarchive and Undo paths, and enforce the same guard in its fixture. Preserve the simplified Reactor page and combine protocol snapshot fields. Co-authored-by: Copilot App <[email protected]>
Wait for the shown automation target and a nonzero layout before asserting the original 149-151 DIP width and right-bound containment. Keep the existing native resize and production rendering path. Co-authored-by: Copilot App <[email protected]>











What Problem This Solves
The Windows Sessions page only offered a basic session list and did not match the redesigned native Systems, Usage, Dashboards and Automations pages.
User Impact
User impact: from Settings > Sessions, users can filter, group and page sessions, search transcripts, view details and per-session model/thinking overrides, archive or delete a single session (archive has Undo) and manage worktrees. Each session also has an "Open dashboard" link for advanced management on the web. Existing actions (open, reset, compact, export, checkpoints) remain. Mutations respect operator scopes, and destructive actions require confirmation.
Deliberately not included (use the web dashboard): session owners and user profiles, custom category management, color/icon customization, bulk select/delete, delete-all-archived and stopping cloud workers. Cloud placement is shown read-only.
Why This Change Was Made
Replaces the XAML Sessions page with Reactor views that use the shared PageHero header and responsive layout already on main. A focused controller sits on top of typed Gateway session and worktree calls. Pure filtering, grouping and pagination live in Shared. Row menus reuse the Workspace sidebar runner, and Archive/Unarchive/Undo reuse main's
WorkspaceSessionMenu.ArchivePatchidentity guard. Multi-step mutations stay bound to the connection that started them. If the connection drops while a Sessions confirmation is open, Confirm is disabled and refused, and the dialog closes on reconnect, matching main's Settings dialog-pruning contract.Copy is in all six locales. No package versions change; Reactor stays at main's 0.1.0-preview.17.
Evidence
Build and Test run 43098583739 passed on attempt 1 for head
06386432645fb5e6b4fcebeb8cec81a07c4af4ec, including CI Gate, the UI/functional/accessibility job, the mock Gateway job (124/124 fixture UI tests), all three WSL E2E jobs and packaging.The hosted fixture Sessions gallery passed all five capture states: message search, Worktrees, single-delete confirmation, expanded details and the archive Undo toast. The captures were inspected; expanded details show no appearance editors. On the CI host, a containment warning overlays part of the header, so these are fixture proof, not clean marketing screenshots.
An independent static code review found one obsolete localization assertion and one roster-margin issue. Both were fixed.
Change Type
Scope
winnodeRequired proof pools
windows-winui-interactive: new native Sessions views, dialogs, focus restoration and themes. Hosted fixture UI proof ran; no complete inventory-bound pool attestation is claimed.Validation
Local runs on Windows 11 ARM64 against the final head:
./build.ps1dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restoredotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restoreSettingsManagerIsolationTests.OpenClawTrayDataDirRedirectsSettingsAwayFromRealAppDatawas excluded locally because it reads the real roaming profile; the hosted full Tray run covers itdotnet build ./tests/OpenClaw.Tray.UITests/OpenClaw.Tray.UITests.csprojdotnet test ./tests/OpenClaw.Tray.UITests/OpenClaw.Tray.UITests.csproj --no-build --filter "FullyQualifiedName~SessionsHub"Gateway fixture UI tests ran only on the hosted CI lane (124/124 passed), not locally.
Real Behavior Proof
06386432645fb5e6b4fcebeb8cec81a07c4af4ec.scripts/test-gateway-fixture.ps1) including the Sessions gallery and Settings modal fixture tests.test-results-gateway-fixtureartifact of run 43098583739.Yes/No/N/A): Yes. The artifact was downloaded and the captures inspected.Security Impact
Yes/No): NoYes/No): NoYes/No): YesYes/No): NoYes/No): YesYes, explain the risk and mitigation: the page calls authenticated operator RPCssessions.list,sessions.search,sessions.deleteandworktrees.*(list, branches, create, remove, restore, gc). Gateway scopes remain authoritative; the UI gates mutations by scope, confirms destructive actions, guards delete and archive identity, and binds multi-step actions to one authenticated connection. No node command or local execution surface is added.Compatibility and Migration
Yes/No): Yes. Methods the Gateway does not advertise show unavailable states.Yes/No): NoYes/No): NoReview Conversations