Repository navigation
feat: show web-style session status and actions - #2421
Conversation
|
🦞👀 ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesAdds session status icons, fading titles, hover and keyboard Pin/Archive actions, and single-use archive Undo. Example: Keyboard-archive the pinned conversation “Fixture: renamed while hovered”.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored draft adds useful sidebar behavior absent from current main, with no blocking defect found. Reviewed head: Before mergeNone. Findings
Agent review detailsHow this fits togetherThe native Workspace sidebar projects Gateway sessions and pending questions into rows; its existing session controller sends authenticated mutations and refreshes the roster after confirmation. flowchart LR
G[Authenticated Gateway] --> S[Session roster and questions]
S --> P[Workspace projection]
P --> W[Native sidebar rows]
W --> C[Session menu controller]
C --> O[Confirmed session operations]
O --> G
Technical reviewBest possible solution: Land the sidebar feature through the existing projection and session-controller owners when its author considers the draft ready. Do we have a high-confidence way to reproduce the issue? This is a feature addition; current-main source confirms the older status presentation and absence of row shortcuts and Workspace Undo. Is this the best way to solve the issue? The implementation extends the existing owners, preserves confirmed mutation and retained-row contracts, and adds focused controls for the new rendering behavior. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d0a9f21b8cee. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. 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 readiness starts with the lower of the proof and patch scores. It is capped at 3/6 if the fix is partial, the change offers little benefit, a product decision is still open, or the PR reverses an earlier decision without saying why. ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed December 1, 2026, 7:33 PM ET / December 2, 2026, 00:33 UTC (Revision 2). |
fccb749 to
2a160df
Compare
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…nd answer indicators Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
… at any DPI The fade proof sampled one pixel column, so glyph edges at 200% scale read as early fading. Compare the faded render with the same glyphs drawn solid over DIP windows, and pin the mid-fade opacity so a misplaced fade fails in either direction. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Keyboard Archive removes the focused row, so focus moves to the Undo button in the Workspace InfoBar when that Undo is still offered for the archived session. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
A fast archive reply can show Undo before its InfoBar button enters the visual tree. Focus then fails, and removing the focused row has already moved focus to the first navigation item. Focus Undo on Loaded, only if it is still the current action. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
NavigationView's ItemsRepeater tracks focus from asynchronous focus events. When the sessions.list reply removes the archived row in the same dispatcher turn that Undo took keyboard focus, the repeater still records the row as focused and moves focus to Home. Sidebar reconciliation now restores focus held outside the rows after removing rows. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The first NavigationViewItemHeader realized in the UI test process fixes the header text style for later headers. Created under the default test resources, it ignored the Gateway theme font and failed the typography test when it ran first. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
ccc48b7 to
2799fd6
Compare
A keyboard Archive hands focus to the Undo button once the Gateway accepts it. If the reply is slow and the user presses a key or clicks first, that handoff now stays cancelled, including when Undo has already loaded. Also clarify that only the row's Archive button moves focus to Undo, and soften the header-style comment in the layout test. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…ow Archive proof A lone Ctrl, Shift, Alt or Windows key no longer cancels a pending keyboard Undo handoff. The keyboard proof holds the Edge Archive reply, presses Ctrl, and still expects Undo focus. It also reopens Edge before the slow Archive and names both elements when focus moves. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Add an unheld keyboard Archive and Undo pass, give the held lone-Ctrl probe time to reach the app before its reply is released, and keep slow-Archive failure text safe when an element is torn down. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Agent assessment
Self-reported assessment, not an independent review.
Assessed revision:
7ba115b9550799ef1c7c33af7e09323c68892c63↑ The interactive keyboard test passed on this head in Release and Debug with real keystrokes and pointer moves. Screenshots below show actions hidden at rest, shown on hover and keyboard focus, and Undo focused after Archive.
↑ Removing each of the three focus guards in turn made its tests fail at the expected assertion.
↑ Local build, Shared (6,235 passed, 29 skipped) and Tray (7,236 passed) suites passed. Four dual-model reviews ended with no blockers.
↓ Native runs used one local Windows x64 desktop, not ARM64, and were author-run rather than through the maintainer-scheduled proof pool.
↓ Archive and Undo ran against the fixture Gateway, not a live Gateway.
↓ The unread dot is covered by mounted layout tests, not by a screenshot.
What Problem This Solves
The Workspace session list does not yet give users the web sidebar's quick visual status and row actions. With multiple conversations open, running work, unread activity, pending answers, and session management are harder to distinguish at a glance.
User Impact
Session rows show an accent running ring, an unread dot, or a pending-answer hand while keeping titles aligned. Pin and Archive appear on hover or keyboard focus, and Archive can be undone once. Undo restores the session, including its pinned state. When Archive is pressed from the keyboard, focus moves to Undo, unless the user has already pressed another key or clicked while waiting for a slow Gateway reply. Modifier keys on their own, such as Ctrl to stop Narrator speech, do not cancel that move. Archive from the context menu does not move focus.
Why This Change Was Made
This brings the Workspace sidebar closer to the web experience while keeping Windows accent and theme resources. Keyed rows preserve the focused Pin/Unpin target when pinning reorders sessions. Row actions use the existing permission-checked session mutation path. Archiving removes the focused row, so keyboard focus is handed to Undo once it loads, as long as the user has not moved on.
Evidence
The screenshots under Real behavior proof come from this head on a local Windows x64 desktop. They show a session row without Pin and Archive at rest, with them on hover and on keyboard focus, and the Undo button focused after Archive is pressed from the keyboard.
The fixture screenshots and test report from CI show the same selected session before and after an answer. The first frame shows an amber hand beside "Fixture: empty conversation" while the question is open. The second shows a blue outline ring in its place after the answer was accepted. This proves the waiting indicator clears.
What CI tests: unit and mounted layout tests cover status indicators and their priority, accessible status text, title alignment and fade, row-action availability and resting style, keeping the focused row while rows reorder, Undo being single-use, and moving keyboard focus to Undo only while that move is still current. A fixture Gateway test checks that the sidebar's pending-answer status appears and clears.
What runs only on an interactive desktop:
SessionRowQuickActions_AppearOnFocusAndArchiveCanBeUndonesends real keystrokes and pointer moves, so CI excludes it. It passed on this head in Release and Debug. It checks that:Checks that the focus guards are needed: in a disposable copy of this head, each guard was removed in turn, the tests were rebuilt in Debug and rerun, and the copy was then deleted. Each failed where expected:
KeyboardArchiveFocusesUndoOnlyWhileTheHandoffIsStillCurrent(stillCurrent: True, undoLoadsFirst: False), "Timed out waiting for keyboard focus reaches the loaded Undo."CI run 46732799422 tested merge
b14ac3b677c04ae013ba71643b8c46c1c783ba1c, PR head7ba115b9550799ef1c7c33af7e09323c68892c63plusmainat02c1b86de6a3fa98323812b34e1ec63a1a1e21a2. The branch comparison base is4c53470cee20e97a910209eb72e1f7fcc7f3b42b; the run does not cover subsequent changes tomain.Review: Hanselman dual-model review (
claude-opus-5.5andgpt-6-astra, both with high reasoning) of the full change, then of each follow-up. Accepted findings were fixed: focus being pulled back to Undo after the user moved on during a slow reply, a lone modifier key cancelling the move to Undo, and several test robustness gaps. The final round found no blockers. One low-severity item was left as is: in the slow-Archive test, an existing read of the focused element is not guarded against that element being removed at the same moment. In that rare race, the test would fail with a less helpful message.By design, the accessible status still reports unread activity when a working, error, or answer indicator hides the visible dot. A test pins this.
If an Undo that a newer Archive has replaced is then rejected by the Gateway, its Inbox entry says only "Couldn't undo". Timeouts and connection changes get their own messages, and raw Gateway errors are never shown there.
Required proof pools
windows-winui-interactive: run by the author on this head on one local Windows x64 interactive desktop, not on a maintainer-scheduled pool host. The runs used ad hoc filters, so they produced TRX results but no inventory-boundevidence-summary.json. Results are under Validation and Real behavior proof. No current-head ARM64 run.Validation
Local runs used Windows x64 with all three OpenClaw tray data folders redirected to new temporary folders.
Closeout suites ran on the working tree that was then committed unchanged as
7ba115b9(association recorded manually):.\build.ps1: passed.dotnet build .\tests\OpenClaw.Tray.UITests -c Debug -r win-x64 --no-restore: passed, 0 warnings, 0 errors.dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: passed. 6,235 passed, 0 failed, 29 skipped.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: passed. 7,236 passed, 0 failed. The first run failedTestDeterminismGuardTests.TestCode_DoesNotAddTimingSensitivePatternsbecause a new test delay lacked its requiredtest-timing-exceptioncomment. The comment was added and the suite rerun.Interactive UI runs used the committed head
7ba115b9with a clean tree, a new set of temporary tray folders for each run, and the desktop lock held:dotnet build tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c <Release|Debug> -r win-x64 -p:DevBuild=false(Release also with-p:RequireSignedCleanupHost=false): both passed, 0 warnings, 0 errors.dotnet test tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c <config> -r win-x64 -p:DevBuild=false -p:RequireSignedCleanupHost=false --no-build --no-restore --filter <filter>:FullyQualifiedName~OpenClaw.Tray.UITests.WorkspaceSessionLayoutTests: Release 37 of 37 passed, Debug 37 of 37 passed, 0 skipped.FullyQualifiedName=OpenClaw.Tray.UITests.GatewayFixtureUiTests.SessionRowQuickActions_AppearOnFocusAndArchiveCanBeUndone, withOPENCLAW_RUN_GATEWAY_FIXTURE_UI=1andOPENCLAW_RUN_KEYBOARD_PROOF=1: Release 1 of 1 passed, Debug 1 of 1 passed, 0 skipped. In both, the fixture Gateway recorded six acceptedsessions.patchrequests: five for the test session and one for its neighbor.3cf4bd63daca0406e22502ce6dba7b17a2a657ce740665b63a0e7ef2ab842f73, hoverfb2cd1959a3efc01dd54ca8294948b6612e6e7c6b882d71064c626e49b4b1fcc, keyboard focusdbb46abf9d7eb0e2b8c553e3b26710bc744a2aa36761f876c02a20d68db1365a, Undo focus76e01348bf3a501671bc8eab5531629b3708c1b8e5891525c98b7afbdb8d9c3b.The real user profile's
OpenClawTraymetadata was identical before and after every local run.CI:
7ba115b9: CI run 46732799422, attempt 1, passed. 10 jobs succeeded and 15 were skipped.OpenClaw.Tray.UITestsran 1,362 tests, all passed, including all 37WorkspaceSessionLayoutTestsresults. The fixture Gateway UI runs passed 92 and 45 tests, includingInteractiveQuestionKeepsComposerAndAcknowledgesNativeAnswer, which checks the sidebar pending-answer status.6cc606a5: CI run 46725702748 passed every job.Real behavior proof
Current PR head, local Windows x64, Release build, real keystrokes and pointer moves. These frames come from the passing
SessionRowQuickActions_AppearOnFocusAndArchiveCanBeUndonerun above.Pointer and focus away from the rows: no Pin or Archive buttons.
Pointer over the selected row, after the test renamed it: Pin and Archive appear on that row only, and the long title fades out before them.
Row reached with Down Arrow: Pin and Archive appear with a keyboard focus rectangle.
After Tab to Archive and Enter: the row is gone, and the banner reads 'Archived "Fixture: renamed while hovered".' with Undo focused.
Current PR head, CI merge above: In the fixture artifact, open
GatewayFixture/09c0cdff4c5b4a6280f9b9bbd67e3410/interactive-native-question.pngandinteractive-native-question-answered.pngin the same folder. The passingInteractiveQuestionKeepsComposerAndAcknowledgesNativeAnswercase infixture-ui.trxalso checks that the session's accessible waiting status appears and clears. In the mounted UI report,OpenClaw.Tray.UITests.trxrecords all fourKeyboardArchiveFocusesUndoOnlyWhileTheHandoffIsStillCurrentcases andRemovingTheArchivedRowKeepsKeyboardFocusThatAlreadyMovedToUndopassing. Those exercise mounted controls, not end-to-end physical keyboard input.Earlier heads only: on native Windows ARM64, the same keyboard test passed in Release on an earlier revision. It showed actions hidden away from the row, shown on hover and on keyboard focus, and keyboard Pin, reorder, Archive and Undo. Later native runs passed the mounted layout suite (35 of 35, twice). These runs predate the focus-guard changes and are not proof of this head.
Not verified: No current-head ARM64 run. No screenshot of the unread dot; mounted layout tests check its visibility, its priority below the other indicators, and its theme brushes. No live Gateway or provider behavior is claimed.