Repository navigation
fix(ui): clear split-pane questions after answers and cancellations - #118787
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 9:10 PM ET / August 5, 2026, 01:10 UTC. ClawSweeper reviewWhat this changesThe PR shares authoritative Gateway question answer and cancellation results across split chat panes and the sidebar, including when the submitting pane closes first. Merge readinessNo blocking correctness or security finding: this remains a useful P1 Control UI repair. The protected maintainer label and incomplete check rollup require an exact-head maintainer landing review. Priority: P1 Review scores
Verification
How this fits togetherControl UI panes and the sidebar each track Gateway questions to control composer availability and attention indicators. A Gateway answer or cancellation must clear every active projection of that same client connection. flowchart LR
A[Gateway question event] --> B[Pane and sidebar state]
B --> C[Operator answer or cancel]
C --> D[Gateway resolve response]
D --> E[Shared client outcome owner]
E --> F[Active panes and sidebar]
Decision needed
Why: The protected maintainer label requires explicit human handling even though source, dependency contracts, and supplied behavior proof support the repair. Before merge
Agent review detailsSecurityNone. PR surfaceSource +133, Tests +789. Total +922 across 5 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the shared client-keyed lifecycle owner once the exact PR head is cleanly mergeable with required checks green, preserving the generation fence and pane/sidebar regression coverage. Do we have a high-confidence way to reproduce the issue? Yes — with two projections on one Gateway client, delay a question resolve RPC, dispose the submitting pane, then deliver the result; current main has only pane-local completion while the PR's focused and browser coverage exercises this sequence. Is this the best way to solve the issue? Yes — client-keyed authoritative-result fanout is the narrow owner boundary shared by panes and sidebar, and its generation checks avoid crossing a reconnect or different Gateway client. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 618fba92bf01. 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 (4 earlier review cycles)
|
|
Merged via squash.
|
…time * origin/main: fix(ui): clear split-pane questions after answers and cancellations (#118787) fix(slack): authorize reaction and message reads before applying limits (#118736) fix(ci): isolate cache warmer configs (#119381) fix(slack): Fix bad escaping in slack tool commentary (#119373) feat(audit): add execution identity inspection (#117034) fix(fs): adopt fs-safe 0.5.2 untrusted filename sanitization (#119363) fix(ci): preserve release evidence across reruns (#119380) fix(telegram): keep commands responsive during Codex login perf(memory): defer session backfill runtime (#119372) fix(ci): isolate built TUI PTY fixture (#119339)
…penclaw#118787) * fix(ui): reconcile question outcomes across gateway projections * fix(ui): preserve question outcomes after pane disposal --------- Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Fixes an issue where users answering or cancelling a Control UI question could remain stuck with waiting indicators and disabled chat panes when the Gateway committed the response without a broadcast. Closing the submitting split pane while its request was in flight also discarded the authoritative result for every surviving pane and the sidebar.
Why This Change Was Made
A single Gateway-client-keyed question lifecycle owner now fans authoritative responses out to every still-current projection. Recipient generation checks preserve account/socket isolation, while valid committed results survive disposal of only the submitting view; actual Gateway transport disconnection already rejects outstanding requests, so stale fabricated reconnect-success tests were replaced with the real dependency contract.
User Impact
Answer and cancel actions now clear all split chat panes, re-enable the remaining composer, and remove the sidebar waiting indicator even if the original submitting pane closes before the RPC response. Existing reconnection, expiration, privacy/account isolation, hydration, and automatic recovery behavior remain intact; there are no Gateway protocol, authentication, or public API changes.
Evidence
133257985327eade58ba20a0ef07fc4f11990eeb; immutable comparison base:3b6cad7e31e1c2ede4727ac9e27044d609e0c206; exact five-file binary patch SHA-256:388e8f90e8dfb978b2ce166e5971ea23f558a5ae56b51e451124092be809e55e.gpt-5.6-solhigh-reasoning P3/no-web autoreview independently returned clean, confidence 0.92; checksum-verified TruffleHog was clean.tbx_01kz49nw7ptgchqgqw69p9sffssucceeded: 9/9 actual Chromium question-flow scenarios, including delayed answer/cancellation after disposing the submitting split pane; 71/71 focused lifecycle tests; and the complete exact-five-path changed gate, including strict native core/UI TypeScript, formatting, lint, duplicate/dependency guards, Control UI i18n, and dead-export checks. The authenticated remote patch remained388e8f90e8dfb978b2ce166e5971ea23f558a5ae56b51e451124092be809e55e; the lease was stopped after its successful timing JSON.config-safe-write.e2e.test.tstimeout; the identical fourth shard passed on the exact same main base in job92178886463. Only the failed jobs were retried, and the repository-native landing workflow refuses to merge until the exact reviewed head is mergeable and every required check is green.brace-expansionadvisory has already been remediated on current main; this PR changes no dependencies and no failing security or CI gate will be bypassed.