Repository navigation
Simplify session status presentation - #1057
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 9:03 PM ET / August 6, 2026, 01:03 UTC. ClawSweeper reviewWhat this changesThe PR introduces a shared interpretation of Gateway run liveness and outcomes, then uses Working, Ready, and Needs attention consistently in session, chat, tray, connection, and localized UI surfaces. Merge readinessKeep open. Current main still marks chat activity from nonempty activity text; the PR head routes it through the shared liveness rule and resolves the prior chat-activity finding. The final head still needs required validation evidence because the reported native run predates its last commit. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway provides session snapshots to the Windows tray app. Shared session-state logic turns current-run liveness and prior outcomes into presentation data for the session list, chat picker, dashboard, tray menu, and connection page. flowchart LR
A[Gateway session snapshots] --> B[Shared run-state rule]
B --> C[Display state and visibility]
C --> D[Sessions page]
C --> E[Chat picker]
C --> F[Tray dashboard and menu]
C --> G[Connection status]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land one shared liveness rule after rerunning the required Windows build and test subset on the final rebased head, with native UI evidence or a documented current blocker for the session list. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes the session-presentation contract rather than reporting a standalone failing behavior. The prior defect is source-verifiable in current main and the proposed regression case covers its liveness rule. Is this the best way to solve the issue? Yes, with the final validation refresh: deriving both chat status and activity from the same shared liveness decision is the narrowest way to prevent stale activity text from contradicting run state. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ad472243bcb8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (30 earlier review cycles; latest 8 shown)
|
6db917b to
0cf2a77
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
dfc152c to
882ab36
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
The prior P2 is fixed at a627d88: the picker activity now derives from the canonical SessionRunState.IsWorking predicate, with provider-level regression coverage for stale activity. Fresh Windows proof passed (full builds; 3,400 Shared tests; 2,054 Tray tests; the previously flaky timeline test passed 1/1). The hosted exact-head retry is running. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Summary
SessionRunStateadapter that combines Gateway run outcome withhasActiveRun, with current Gateway liveness taking precedence when present.main, retain sparse Gateway run fields, and update the accessibility fixture for the flattened classification contract.Validation
Native Windows validation on a clean Parallels Windows 11 ARM64 VM (.NET SDK 10.0.302; Windows SDK 10.0.26100; WebView2 150.0.4078.65), at
782a112:./build.ps1- Shared, CLI, WinNode CLI, SetupEngine, and WinUI.dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore- 3,400 passed, 32 expected integration skips.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore- 2,054 passed, 0 skipped.git diff --check origin/main...HEADand XML parsing for all five localized resource files../.agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main- no accepted/actionable findings.Real behavior proof
Current-head tests exercise Gateway
hasActiveRunparsing, terminal-outcome precedence, sparse-update retention, the three-state mapping, session-list visibility/sorting, dashboard/menu counters, and chat-thread liveness. In particular, a terminal historical outcome does not override an explicit active current run, while completed runs otherwise leave chat sessions ready and selectable rather than assigning the legacyEndedstatus.Not verified / blocked: an interactive WinUI screenshot of the changed session list was not captured through the Parallels automation surface. The native WinUI assembly and focused tests passed; visible UI capture remains the only missing proof item.
User-facing model