Simplify session status presentation#1057
Conversation
|
Codex review: found issues before merge. Reviewed July 26, 2026, 12:42 AM ET / 04:42 UTC. ClawSweeper reviewWhat this changesThe PR adds shared interpretation of Gateway session outcome and liveness data, changes tray/session surfaces to Working, Ready, or Needs attention, and hides only successful completed sessions by default. Merge readinessKeep this draft PR open for maintainer review. Its three-state presentation is coherent, but the new adapter treats a documented live-run signal as stale whenever an older terminal status remains, which can present an active session as Ready or Needs attention. Priority: P2 Review scores
Verification
How this fits togetherGateway session snapshots feed the Windows tray, session picker, connection card, and dashboard. The shared session-state adapter converts Gateway outcome and liveness fields into display state, visibility, ordering, and chat-thread status. flowchart LR
Gateway[Gateway session snapshot] --> Parser[Windows Gateway parser]
Parser --> State[Shared session-state adapter]
State --> Sessions[Sessions page and chat picker]
State --> Connection[Connection card]
State --> Tray[Tray dashboard and menu]
Sessions --> User[Operator session actions]
Connection --> User
Tray --> User
Decision needed
Why: The proposed terminal-first policy intentionally changes the Gateway signal precedence and affects multiple user-facing session surfaces; the existing public Gateway contract favors the opposite interpretation. Before merge
Findings
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Make a true Do we have a high-confidence way to reproduce the issue? Yes, from source: construct a session with a terminal status such as Is this the best way to solve the issue? No. The terminal-first rule is not the safest default because it overrides the Gateway's explicit live-run field; liveness should be authoritative when supplied, with status used as fallback or secondary outcome context. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f50af187865c. 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
|
Summary
SessionRunStateadapter that combines Gateway run outcome withhasActiveRun, with terminal outcomes taking precedence over stale liveness.Validation
git diff --check,git show --check, and XML/resource-key parity across 5 locales../build.ps1cannot run on this macOS host (no PowerShell); both requireddotnet testcommands are blocked becausedotnetis not installed.Real behavior proof
Not verified / blocked: no native Windows runtime, .NET SDK, PowerShell, or authenticated remote Windows lease is available in this controller. The PR includes focused shared-state, parser, visibility, dashboard, and WinUI source-contract tests for execution in CI or a Windows environment.
User-facing model