Repository navigation
fix: simplify and harden session companion grounding - #122380
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 10:20 PM ET / August 12, 2026, 02:20 UTC. ClawSweeper reviewWhat this changesThis PR simplifies the Control UI session companion by using reset-visible transcript context, removing progress/reconciliation handling, and aborting a companion ask when its requester disconnects. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open for maintainer review. The PR is a focused corrective follow-up to main-only companion grounding work, but exact PR-head blobs could not be read from this partial checkout because the required promisor fetch fails DNS; no concrete patch defect was confirmed. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI sends a session-companion question over the Gateway, which reads bounded selected-session transcript context and invokes a read-only utility-model run. The answer or typed error returns to the Control UI session rail without entering main chat history. flowchart LR
A[Control UI session rail] --> B[Gateway companion request]
B --> C[Transcript snapshot reader]
C --> D[Bounded visible context]
D --> E[Read-only companion run]
E --> F[Gateway response]
F --> G[Session rail answer or error]
Decision needed
Why: The protected maintainer label and unavailable exact-head blobs prevent an automated merge-ready conclusion; the remaining choice is whether maintainers accept the reviewed direction once that evidence is restored. Before merge
Agent review detailsSecurityNone. PR surfaceSource -354, Tests -98, Docs 0, Generated 0. Total -452 across 43 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Review the exact PR head once its blobs are available, confirm that reset-visible context retains the existing fail-closed behavior for malformed or oversized transcript state, then merge only after the required checks complete. Do we have a high-confidence way to reproduce the issue? No high-confidence runtime reproduction was established here: current main and the supplied patch make the lifecycle path understandable, but complete PR-head source and executable validation were unavailable in this checkout. Is this the best way to solve the issue? Unclear: consolidating companion behavior onto the canonical visible-transcript reader and disconnect cancellation is directionally sound, but the exact page-accumulation implementation could not be inspected against the existing fail-closed oversized-context behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 7630d060f850. 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
|
392a178 to
8efbefe
Compare
|
Fixed: Session companion grounding now uses one bounded authoritative transcript snapshot with fail-closed reset handling and identity-safe reconnect recovery. With thanks to @shakkernerd. |
Summary
Verification
Corrective follow-up to #122329.