Skip to content

feat: manage sessions and worktrees in native Windows UI - #1897

Merged
bkudiess merged 23 commits into
openclaw:mainfrom
bkudiess:bkudiess-reactor-sessions-page
Nov 11, 2026
Merged

bkudiess merged 23 commits into
openclaw:mainfrom
bkudiess:bkudiess-reactor-sessions-page

Conversation

@bkudiess

@bkudiess bkudiess commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

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.ArchivePatch identity 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

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required 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:

Command Result
./build.ps1 Passed
dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore 5,841 passed, 28 ordinary skips, 0 failed
dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore 6,298 passed, 0 failed. Partial: SettingsManagerIsolationTests.OpenClawTrayDataDirRedirectsSettingsAwayFromRealAppData was excluded locally because it reads the real roaming profile; the hosted full Tray run covers it
dotnet build ./tests/OpenClaw.Tray.UITests/OpenClaw.Tray.UITests.csproj 0 warnings, 0 errors
dotnet test ./tests/OpenClaw.Tray.UITests/OpenClaw.Tray.UITests.csproj --no-build --filter "FullyQualifiedName~SessionsHub" 83/83 passed on three consecutive runs

Gateway fixture UI tests ran only on the hosted CI lane (124/124 passed), not locally.

Real Behavior Proof

  • Environment tested: GitHub-hosted Windows runner, isolated app profile, synthetic fixture Gateway.
  • PR head or commit tested: 06386432645fb5e6b4fcebeb8cec81a07c4af4ec.
  • Exact steps or command run: CI mock Gateway job (scripts/test-gateway-fixture.ps1) including the Sessions gallery and Settings modal fixture tests.
  • Evidence after fix: test-results-gateway-fixture artifact of run 43098583739.
  • Observed result: Sessions list, message search, Worktrees, expanded details, single-delete confirmation and archive Undo all render and pass. Settings modal fixture tests open Reset from the Sessions row menu, confirm and reach the Gateway.
  • Screenshot or artifact links verified? (Yes/No/N/A): Yes. The artifact was downloaded and the captures inspected.
  • Not verified or blocked: real Gateway pairing with production sessions; high-contrast visual proof; no local native fixture runs.

Security Impact

  • New permissions or capabilities? (Yes/No): No
  • Secrets or tokens handling changed? (Yes/No): No
  • New or changed network calls? (Yes/No): Yes
  • Command or tool execution surface changed? (Yes/No): No
  • Data access scope changed? (Yes/No): Yes
  • If any answer is Yes, explain the risk and mitigation: the page calls authenticated operator RPCs sessions.list, sessions.search, sessions.delete and worktrees.* (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

  • Backward compatible? (Yes/No): Yes. Methods the Gateway does not advertise show unavailable states.
  • Config or environment changes? (Yes/No): No
  • Migration needed? (Yes/No): No
  • If yes, list the exact upgrade steps: N/A.

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

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]>
@clawsweeper

clawsweeper Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@bkudiess bkudiess added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 27, 2026
@clawsweeper clawsweeper Bot added the clawsweeper:intake:feature Preliminary submission classification; full source review pending. label Oct 27, 2026
@bkudiess

bkudiess commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator Author

Current-head Sessions proof and parity checklist

Captured from commit dccc5e2f2d023fb85d1f0c86736fd4e9754d7819 on Windows 11 ARM64 using the actual native app and task-owned sessions-hub / sessions-hub-readonly fixture Gateways. All session titles, transcripts, users and worktrees shown are synthetic. No production Gateway was used.

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 44 versus 43.999996185302734) and aborted in COM finalization (Marshal.Release, 0xC0000005). Its dump and failed reports are retained locally and are not published. This is not a clean broad ARM64 proof result. No test assertions or exclusions were changed to obtain green CI. High-contrast visible proof and streaming arrivals while scrolled up remain unverified.

Reference: openclaw/openclaw@5089aa71 ui/src/pages/sessions, ui/src/pages/worktrees, packages/gateway-protocol.

# Web item Native equivalent Data source Status
1 Sessions / Worktrees hub tabs SelectorBar (Sessions, Worktrees) at top of page — Done
2 Agent scope (agent:{id}:sessions) Agent ComboBox (All agents + roster); route seeds it sessions.list agentId; agents from AppState.AgentsList Done
3 Metadata search (200 ms debounce) Search box, 200 ms debounce sessions.list search Done
4 Status filter Active / Archived / All SelectorBar segmented filter sessions.list archived: false/true/"all" Done
5 Active within N minutes NumberBox in Filters flyout (Active view only) activeMinutes Done
6 Global / Unknown toggles (default on/off) ToggleSwitches in Filters flyout includeGlobal, includeUnknown Done
7 Limit (default 50) NumberBox in Filters flyout limit Done
8 Page size 10/25/50/100 + prev/next + load more Footer: page-size ComboBox, Previous/Next, Load more client paging; offset/nextOffset/hasMore Done
9 Sort by session/updated, pinned first Sort menu (Updated, Name; asc/desc), pinned first client Done
10 Transcript search (indexing, truncated, archived excluded, errors, retry) Search transcripts mode with result cards sessions.search {query, limit:25, scope} Done
11 Group by None/Category/Person/Channel/Kind/Agent/Date Group-by ComboBox (Person only when owners exist) client Done
12 New group, move session to group, rename/delete group Group header menu + row "Move to group" submenu + New group dialog sessions.groups.list/put/rename/delete, sessions.patch category Done
13 Row: title, label chip, unread dot, agent, category, updated Row card sessions.list rows Done
14 Details: status, kind, key, tokens, model, provider, session id, archive reason, owner Details pane row fields Done
15 Overrides: label, thinking, fast, verbose, reasoning Details pane editors sessions.patch Done
16 Open in chat Row primary action + menu PendingChatSessionKey + navigate chat Done
17 Rename Shared rename dialog (WorkspaceSessionMenuController) sessions.patch label Done
18 Archive with undo / Unarchive Menu; InfoBar with Undo sessions.patch archived Done
19 Delete (confirm) Shared confirm via SessionActionPlanner sessions.delete (archivedOnly for archived) Done
20 Assign owner (search people, assign to me) "Assign owner" submenu and Assign to me users.list, users.self, sessions.assignOwner Assignment done; dedicated free-text owner search deferred because the current native control is a menu, not a searchable people picker
21 Stop cloud worker (confirm) Menu item when placement is cloud worker sessions.reclaim Done
22 Multi-select, select page, bulk delete (confirm) Selection mode, command bar Delete selected sessions.delete per row Done
23 Delete all archived (confirm, preserved worktrees) Archived view command; result InfoBar lists preserved worktrees sessions.delete archivedOnly + worktreePreserved Done
24 Limited actions disconnected / no scope Disabled commands with tooltip reasons; disconnected InfoBar + Open Connection GrantedOperatorScopes, connection Done
25 Pin / mark unread / fork / copy / reset / compact / export / checkpoints Shared WorkspaceSessionMenu entries existing Done
26 Completed / background toggles (Windows) Filters flyout toggles client Done
27 Worktrees list (name, repo, branch, owner session/workboard/manual, last active, Active/Restorable) Worktrees tab list worktrees.list Done
28 New worktree (repo, name, base branch) Dialog with branch ComboBox worktrees.branches, worktrees.create Done
29 Remove, force remove on snapshot failure (confirm) Row action + 2nd confirmation worktrees.remove {force} Done
30 Restore Row action worktrees.restore Done
31 Clean now (poll job) Command worktrees.gc {jobId} Done
32 Admin-only marking Shield badge + "Admin access required" InfoBar operator.admin Done
33 Empty / loading / error states Native empty/loading/error states — Done
34 Session color tag and icon (web row tint, sidebar color/icon) Color stripe and icon on rows, details swatches and icon picker, Color and Icon menus sessions.list color/icon, sessions.patch color/icon Done
35 Agent identity avatars (emoji) Agent emoji/initials avatar on rows, details hero, group headers, transcript hits agents.list identity.emoji Done

Deferred or replaced (with reason)

Web item Decision Reason
Snooze Deferred Not exposed by the web Sessions page either (it filters snoozed rows out); belongs to the sidebar/inbox surfaces.
Communication preferences Deferred Sidebar personalization, not Sessions-page management; the Workspace menu does not offer it today.
Move placement to another worker Deferred Only Stop cloud worker (sessions.reclaim) is a Sessions-page action upstream; placement moves live in the cloud workboard.
Plugin-contributed session actions, PR links, Open in editor Deferred Need plugin action and editor-launch contracts that Windows does not host yet.
Drag sessions between groups Replaced "Move to group" menu and details control (keyboard and screen-reader friendly).
sessions.groups.update defaults Deferred No web UI uses it on the Sessions page.
Dedicated source/channel filtering Deferred Channels and kinds can currently be grouped, but this implementation has no separate source/channel filter control.
New session from the page Replaced Fork conversation (from the shared menu); new conversations start from the Workspace composer.

01-list

02-filtered

03-grouped

04-details

05-transcript-search

06-archived

07-worktrees

08-empty

09-disconnected

10-dark-grouped

11-readonly

@clawsweeper

clawsweeper Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codex review: needs real behavior proof before merge.

What this changes

This PR adds native session filtering, transcript search, grouping, ownership, appearance, bulk actions, and worktree management.

Example: Search session transcripts for "token" in Settings > Sessions.

  • Before: The native Sessions page has no transcript search.
  • After: The supplied capture shows "Refactor the sign-in flow" and its matching token-refresh message.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) Useful native feature with credible current-head visual evidence, four concrete controller defects, and incomplete runtime validation.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦪 silver shellfish (2/6) Security review found an item that needs attention.

Product

Kind: Feature · Worth it: Yes
User problem: Windows users lack native transcript search and comprehensive session and worktree management.
Reason: The collaborator-authored direction delivers concrete native capabilities, and the author explicitly records deferred parity items.

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
Reviewed head: dccc5e2f2d023fb85d1f0c86736fd4e9754d7819

Before merge

  • Add real behavior proof - Authority-chain proof required: inspected current-head screenshots establish native rendering against synthetic Windows 11 ARM64 Gateways, including read-only and disconnected presentation, but do not show allowed and forbidden ownership/destructive operations reaching or being rejected before final effects, nor stale or revoked authority invalidation. The fixture's own rejection logic is not the production Gateway authorization owner. The author also explicitly leaves Release chat and accessibility proof incomplete; supply redacted runtime traces or recordings for those changed paths. After adding proof, update the PR body, then request a new review with @clawsweeper re-review. The PR author or someone with repository write access can request it.
  • Invalidate transcript results when their search scope changes (P2) - Search for "token" under agent main, then select research or change Active to Archived while transcript search remains open. SetFilters updates the scope caption and reloads only the roster: it neither clears Transcript.Result nor increments _transcriptGeneration. Main/Active hits therefore remain displayed under the new scope, and an in-flight old search can publish there too. Invalidate or rerun transcript search whenever its membership filters change.
  • Refresh cached owner identity after profile invalidation (P2) - After the initial owner catalog loads, a profile-identity event causes a roster reload but leaves _profilesLoaded true. The controller does not observe SelfProfileChanged or AppState.SelfProfileRevision, so users.self and users.list are never refreshed on that connection. Following a profile merge or identity reassignment, Assign to me keeps sending the previous profile ID and owner choices remain stale until reconnect. Invalidate this cache through the existing identity-change event.
  • Expose refresh failures before allowing stale-row mutations (P2) - Load main-agent rows, switch to research, and let sessions.list time out. ReloadAsync retains the old rows and records Failed, but Roster displays LoadError only when Rows.Count is zero. The old main rows remain under the research filter with no failure message, and row mutations remain enabled because their gates check IsBusy rather than failed or refreshing state. Render an actionable stale-content failure and prevent unsafe edits until the roster is current.
  • Render catalog groups when the roster is empty (P2) - With no visible sessions, select Group by custom group and create "Ops". The catalog update succeeds, but this early return prevents all group headers and their rename/delete menus from rendering. The same happens after removing the final visible session, so users cannot manage their remaining empty groups. Allow the category catalog through the group-rendering path when the session count is zero.
  • Resolve security review attention item - No authorization bypass is established, but the new ownership and destructive paths need final-effect authority evidence.
  • Resolve merge risk - Before merge, the author must establish that ownership changes and delayed destructive operations reject forbidden or stale principals before the final Gateway mutation or filesystem effect.
  • Improve patch quality - Add final-effect proof for the nearest unauthorized principal and prove revocation or reassignment invalidates delayed operations before I/O.
  • Improve patch quality - Complete current-head Release chat and accessibility validation, and demonstrate latest-stable upgrade preservation.
  • Add data-model compatibility proof - The review found that existing stored data may not work after upgrade. Show that existing data still loads and works with this change.
  • Explain or restore the original intent of Stale list loading and refresh failure - 1fe8e52: Preserved safe stale content, displayed refresh failures, and disabled unsafe edits while refreshing.

Findings

  • [P2] Invalidate transcript results when their search scope changes — src/OpenClaw.Tray.WinUI/Sessions/SessionsHubController.cs:413-416
  • [P2] Refresh cached owner identity after profile invalidation — src/OpenClaw.Tray.WinUI/Sessions/SessionsHubController.cs:381-387
  • [P2] Expose refresh failures before allowing stale-row mutations — src/OpenClaw.Tray.WinUI/Sessions/SessionsHubSessionsView.cs:271-274

Provenance

  • Stale list loading and refresh failure changes intended behavior without addressing why it exists (1fe8e52: Preserved safe stale content, displayed refresh failures, and disabled unsafe edits while refreshing.)

Tests

  • Low-value test tests/OpenClaw.Tray.Tests/SessionActionsWiringTests.cs: Remove the new connection-change test's exact conditional and private-name assertions in favor of executable lifecycle coverage; finding those strings does not prove that reconnects cancel prompts or prevent later RPCs.
  • Missing end-to-end proof: Still missing are final-effect authorization and stale-connection scenarios, latest-stable upgrade preservation, and completed native Release chat/accessibility evidence; no failing execution demonstrates the four controller regressions.
Agent review details

How this fits together

The 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
Loading

Technical review

Best 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:

  • [P2] Invalidate transcript results when their search scope changes — src/OpenClaw.Tray.WinUI/Sessions/SessionsHubController.cs:413-416
    Search for "token" under agent main, then select research or change Active to Archived while transcript search remains open. SetFilters updates the scope caption and reloads only the roster: it neither clears Transcript.Result nor increments _transcriptGeneration. Main/Active hits therefore remain displayed under the new scope, and an in-flight old search can publish there too. Invalidate or rerun transcript search whenever its membership filters change.
    Confidence: 0.99
  • [P2] Refresh cached owner identity after profile invalidation — src/OpenClaw.Tray.WinUI/Sessions/SessionsHubController.cs:381-387
    After the initial owner catalog loads, a profile-identity event causes a roster reload but leaves _profilesLoaded true. The controller does not observe SelfProfileChanged or AppState.SelfProfileRevision, so users.self and users.list are never refreshed on that connection. Following a profile merge or identity reassignment, Assign to me keeps sending the previous profile ID and owner choices remain stale until reconnect. Invalidate this cache through the existing identity-change event.
    Confidence: 0.98
  • [P2] Expose refresh failures before allowing stale-row mutations — src/OpenClaw.Tray.WinUI/Sessions/SessionsHubSessionsView.cs:271-274
    Load main-agent rows, switch to research, and let sessions.list time out. ReloadAsync retains the old rows and records Failed, but Roster displays LoadError only when Rows.Count is zero. The old main rows remain under the research filter with no failure message, and row mutations remain enabled because their gates check IsBusy rather than failed or refreshing state. Render an actionable stale-content failure and prevent unsafe edits until the roster is current.
    Confidence: 0.99
  • [P2] Render catalog groups when the roster is empty — src/OpenClaw.Tray.WinUI/Sessions/SessionsHubSessionsView.cs:279-281
    With no visible sessions, select Group by custom group and create "Ops". The catalog update succeeds, but this early return prevents all group headers and their rename/delete menus from rendering. The same happens after removing the final visible session, so users cannot manage their remaining empty groups. Allow the category catalog through the group-rendering path when the session count is zero.
    Confidence: 0.99

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 48cb8a18fdb5.

Merge-risk options

Maintainer options:

  1. Establish final-effect authorization (recommended)
    The author should supply production-path evidence for permitted operations, read-only denial, and invalidation after connection or principal changes before destructive I/O.
  2. Retain the draft
    Keep this PR paused while the authorization boundary remains unverified.

Provenance checked

  • Archived session ownership keeps the original intent (791574d: Moved archived browsing into Settings and bound response-confirmed operations to their authenticated connection.)
  • Reactor compatibility pin and Markdown callback changes intended behavior with a stated reason (3dda3cf: Avoided native session-switch crashes while preserving wrapping and row-targeted scrolling; this PR names the newer Reactor workaround as its replacement.)

Testing

Proof path: shipped entry point.

Security

Needs attention: No authorization bypass is established, but the new ownership and destructive paths need final-effect authority evidence.

Evidence

What I checked:

  • Pinned scope and keep-open guard: The reviewed head remains a collaborator-authored draft with mergeable=true and mergeable_state=blocked; the pinned main-to-head diff contains distinct new session/worktree functionality. (dccc5e2f2d02)
  • Current-head visual evidence: The author's new comment pins its Windows 11 ARM64 captures to the reviewed head. All eleven linked screenshots were inspected, showing populated, filtered, grouped, details, transcript-search, archived, worktree, empty, disconnected, dark, and read-only states: feat: manage sessions and worktrees in native Windows UI #1897 (comment). (dccc5e2f2d02)
  • Scope and identity invalidation: SetFilters changes the displayed scope without invalidating transcript results or their generation; LoadCatalogsAsync caches profiles until the connection changes despite the existing SelfProfileChanged event. (src/OpenClaw.Tray.WinUI/Sessions/SessionsHubController.cs:381, dccc5e2f2d02)
  • Stale-state and empty-group rendering: The roster displays load failures only when no old rows exist, and returns its empty state before constructing catalog groups when no sessions remain. (src/OpenClaw.Tray.WinUI/Sessions/SessionsHubSessionsView.cs:271, dccc5e2f2d02)
  • Validation remains incomplete: The exact-head UI job and CI Gate failed. The author reports a test-host crash during ComposerFlyouts_UseBoundedNativePopoverPresentation and explicitly leaves accessibility and Release chat proof unfinished. Available annotations do not establish whether the crash is diff-caused; job-log retrieval was blocked by the artifact host allowlist. (dccc5e2f2d02)
  • Existing ownership and overlapping upgrade: The architecture ledger preserves shared Workspace actions and replaces ArchivedSessionsSource rather than retaining parallel archive owners. The dependency upgrade overlaps fix(chat): adopt Reactor preview.16 session-switch crash workaround #1549 (fix(chat): adopt Reactor preview.16 session-switch crash workaround), whose evidence does not prove this head. (docs/ARCHITECTURE.md:228, dccc5e2f2d02)

Likely related people:

  • Barbara Kudiess: Raw commit 989f9ff adds src/OpenClaw.Shared/Sessions/SessionActionPlanner.cs:23 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 989f9ffde2dd; files: src/OpenClaw.Shared/Sessions/SessionActionPlanner.cs)
  • Pedro Larroy: Raw commit 791574d adds src/OpenClaw.Tray.WinUI/Services/WorkspaceSessionOperation.cs:34 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 791574ddf557; files: src/OpenClaw.Tray.WinUI/Services/WorkspaceSessionOperation.cs)
  • Karen: Raw commit 3a58bf3 adds src/OpenClaw.Tray.WinUI/Services/WorkspaceIdentitySource.cs:19 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3a58bf34902f; files: src/OpenClaw.Tray.WinUI/Services/WorkspaceIdentitySource.cs)

Review metrics

Metric Value Why it matters
Source and coverage delta Production excluding locales: +5,012/-1,241; tests and fixtures: +1,470/-250; locale resources: +6,413/-461. The new views, typed RPCs, and synthetic scenarios explain substantial growth; localization accounts for most added lines.

Labels

Label changes:

  • add P2: This is a useful management feature with bounded controller defects, rather than an established urgent main-branch regression.
  • add merge-risk: 🚨 compatibility: The app-wide Reactor preview.12-to-preview.16 upgrade removes a deliberate chat workaround, while the exact-head native UI job fails and compatibility proof remains incomplete.
  • add merge-risk: 🚨 security-boundary: New ownership and destructive RPC paths require authorization evidence at their final effects, including stale or revoked authority.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Label justifications:

  • P2: This is a useful management feature with bounded controller defects, rather than an established urgent main-branch regression.
  • merge-risk: 🚨 compatibility: The app-wide Reactor preview.12-to-preview.16 upgrade removes a deliberate chat workaround, while the exact-head native UI job fails and compatibility proof remains incomplete.
  • merge-risk: 🚨 security-boundary: New ownership and destructive RPC paths require authorization evidence at their final effects, including stale or revoked authority.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦐 gold shrimp and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 27, 2026, 5:25 PM ET / 21:25 UTC.

@bkudiess bkudiess removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 27, 2026
@bkudiess
bkudiess marked this pull request as ready for review October 28, 2026 02:32
bkudiess and others added 3 commits October 28, 2026 11:46
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]>
@bkudiess
bkudiess marked this pull request as draft October 30, 2026 19:14
bkudiess and others added 3 commits November 5, 2026 14:36
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]>
@roboclaw-bot

Copy link
Copy Markdown
Contributor

PR cleanup review

Reviewed head: 2d723ac15a5bab063774c8acc5118dd6dd0f23a3. Main comparison: e59374c064f43d68f5c72d070d4c89ef2d20ec3b.

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.

bkudiess and others added 3 commits November 10, 2026 21:05
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]>
bkudiess and others added 9 commits November 11, 2026 00:52
…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]>
bkudiess and others added 3 commits November 11, 2026 10:50
… 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]>
@bkudiess
bkudiess marked this pull request as ready for review November 11, 2026 21:32
@bkudiess
bkudiess merged commit 3f47e83 into openclaw:main Nov 11, 2026
32 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:feature Preliminary submission classification; full source review pending.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants