Repository navigation
fix: show active sessions while new work starts - #141236
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. Reviewed September 7, 2026, 9:39 AM ET / 13:39 UTC. ClawSweeper reviewWhat this changesLive activity shows safely reconciled running sessions while refreshing for newly started work and distinguishes incomplete empty snapshots from confirmed inactivity. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main still withholds usable snapshots during repeated session starts. No introduced correctness or security defect was found, and the updated browser evidence addresses the previous review request. Priority: P2 Review scores
Verification
How this fits togetherLive activity combines Gateway session snapshots with incoming session-change events. Its browser controller reconciles these inputs before displaying current running or queued sessions. flowchart TD
A[Gateway session snapshot] --> C[Reconcile current work]
B[Session change events] --> C
C --> D{Known rows safe?}
D -->|Yes| E[Display active sessions]
D -->|No| F[Retain previous safe snapshot]
C --> G[Refresh missing membership]
G --> A
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +10, Tests +127. Total +137 across 6 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Publish certified rows promptly while retaining bounded catch-up, stale-run protection, and truthful empty-state feedback. Do we have a high-confidence way to reproduce the issue? Yes, from source: deliver an unseen session start before each snapshot containing stable running work, and current main repeatedly discards those usable snapshots. This review did not execute the scenario. Is this the best way to solve the issue? Yes. Separating safe publication from membership completeness repairs the existing controller without adding another query path or weakening run-identity and overflow guards. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against dcc733dc20e8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Fixed: Live activity displays known running sessions while new work starts and keeps incomplete empty results visibly loading. |
Live activity displays safely reconciled active sessions while refreshing for newly started work and keeps incomplete empty results visibly loading.
What Problem This Solves
Fixes an issue where Live activity could keep active sessions hidden while other sessions repeatedly started work. Follow-up to #141045.
Why This Change Was Made
Publish safely reconciled session rows while refreshing for new membership. Keep the existing guards against ambiguous run identities and event-buffer overflow. An incomplete empty result keeps loading feedback; an ordinary refresh preserves the confirmed empty state.
User Impact
Already-running work appears without waiting for all other sessions to become quiet. Completed or replaced runs retain their existing stale-snapshot protection.
Evidence
Visual evidence
Race, quiet recovery and empty-state controls
activity-snapshot-7-snapshot-publication-and-empty-controls.webm
Visual verification details
680a090586741abea170e360aab9f6bca46c60fcEmpty-state controls