Repository navigation
fix(ui): clear unread state after overlapping read acknowledgments - #174795
roboclaw-bot wants to merge 4 commits into
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 changes before merge. What this changesThis PR rechecks newer unread activity after successful read acknowledgments, subject to conversation visibility and history readiness. Example: Activity at revision 40 arrives while the visible conversation awaits a read receipt covering revision 30.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this PR open: it repairs a current unread-state bug, preserves the drain retry guard, and addresses the earlier hydration-fixture finding; no concrete introduced code defect was found. Priority: P2 Before merge
FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI chat owner consumes Gateway session rows and sends conditional read acknowledgments through the session capability, which reconciles optimistic state and committed receipts into sidebar indicators. flowchart TD
A[Gateway session activity] --> B[Session capability]
B --> C[Selected conversation]
C --> D[Visibility and history admission]
D --> E[Unread request guard]
E --> F[Conditional read acknowledgment]
F --> B
Technical reviewBest possible solution: Retain the focused settlement repair in the existing unread and admission owners while preserving manual reminders, access checks, and drain backoff. Do we have a high-confidence way to reproduce the issue? Source establishes the missed-settlement path, and the supplied mounted-pane regressions cover visible, hidden-document, and reconnect-history cases with reported baseline failures; this read-only review did not execute them. Is this the best way to solve the issue? The patch is a small owner-level repair: it reuses existing admission, removes the displaced visibility callback, and adds no competing state owner or retry mechanism. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 771b7875de73. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +23, Tests +171, Docs +6. Total +200 across 8 files. Added test files: 1. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 follows the weaker of proof and patch quality; ✨ 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 October 18, 2026, 5:40 PM ET / 21:40 UTC (Revision 2). |
6805052 to
23255c5
Compare
Co-authored-by: steipete <[email protected]>
Co-authored-by: steipete <[email protected]>
23255c5 to
26f942c
Compare
Hold the document probe until renderer-failure assertions finish, then wait for automatic lazy-chunk recovery instead of racing it with a manual reload. Preserve manual recovery coverage for classic frame scripts. Co-authored-by: steipete <[email protected]>
Preserve owner-driven presentation and the consolidated hydration/read-marker fixtures. Remove the retired redraw call and carry accepted-history plus pending-read behavior into the current test owners. Co-authored-by: steipete <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Closing as superseded. Superseded by #148262 for overlapping read acknowledgments, including newer activity, hidden tabs and reconnect history. The separate Mermaid lazy-load test-harness repair in this branch remains a useful standalone follow-up; it is not an unfinished unread-state fix and is not claimed to have landed. This closes the PR without deleting its branch. |
Related: #148262
What Problem This Solves
Fixes: an open conversation can stay unread when newer activity arrives before an earlier read acknowledgment finishes.
User Impact
The visible conversation acknowledges newer activity after a successful earlier read. Hidden tabs and reconnecting conversations wait until their transcript is presented. Manual unread reminders, access checks, and paced retries during Gateway drains remain unchanged. No migration or user action is required.
Why This Change Was Made
Session row reconciliation publishes before the acknowledgment promise settles. Release the current parent acknowledgment before reconsidering the selected row through the existing visibility/history admission owner. Hidden-run acknowledgments retain their revision-scoped success latch; failed and unsent writes retain existing retry behavior.
This carries forward the remaining behavior and mounted admission regression from the original proposal without replacing the later drain-storm fix. The visibility-return callback now lives beside the session read owner rather than in lifecycle setup. No new state owner, scheduler, or retry mechanism was added.
Evidence
efe05bcb8b39d7705f6ee5d7767203afced0534fand pass with the repair. This is boundary proof, not live-deployment qualification.8fe7bd7b03330154812e8266f598deeb291cb915merges mainb1066a5c49101f28f3cbe4bfd3ca42bc66758036to resolve actual conflicts. It preserves main’s owner-driven presentation and consolidated tests; no retired redraw path was restored.concurrent map writes; it was not rerun for green or hidden. The refreshed production UI typecheck passes after a normal frozen dependency install. Full current-head CI remains required.Credit: @steipete for the original fix and mounted admission regression.
Work sessions