Repository navigation
fix: refresh visible shared Gateway conversations - #201076
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 changesRefreshes visible outbound shared Gateway transcripts every five seconds while preserving overlapping history and retiring obsolete reads. Example: A viewer opens the Team Gateway conversation while its source continues.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness⛔ Needs changes before merge - 1 item remains Keep this useful maintainer-authored PR open; its polling reconciliation needs one pagination correction before merge. Priority: P2 Before merge
Findings
Tests
Agent review detailsHow this fits togetherThe Control UI catalog reader retrieves session metadata and transcript pages through Gateway RPC, then publishes messages and pagination state to the retained chat pane. flowchart LR
A[Visible chat pane] --> B[Visibility timer]
B --> C[Catalog reader]
C --> D[Receiver Gateway]
D --> E[Source Gateway]
E --> F[Transcript pages]
F --> C
Technical reviewBest possible solution: Keep polling in the existing catalog reader, retaining older history and its cursor only for append-compatible windows and replacing both after a rewind or incompatible reset. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the missing periodic transcript read on current main and the incompatible-cursor path after a source rewind; no target code was executed. Is this the best way to solve the issue? Reusing the existing reader, cancellation lifetime, and visibility timer is appropriate, but a single overlapping message does not establish that retained pagination remains valid. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 74e5127c0c3d. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceAcceptance criteria:
What I checked:
Likely related people:
PR surfaceSource +60, Tests +298, Docs +5. Total +363 across 5 files. Added test files: 1. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
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 Reviewed November 18, 2026, 3:04 AM ET / 08:04 UTC. |
c4658d8 to
5d59a9a
Compare
Security-sensitive guard clearedCurrent revision: This PR no longer changes files in the maintainer security-review tier. Separate CODEOWNERS requirements still apply to security policy and enforcement files. |
1724c15 to
12f0220
Compare
|
Merged via squash.
|
* fix: refresh visible shared Gateway conversations * fix(ui): reset catalog cursors after transcript rewinds Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
A shared Gateway transcript can remain stale while its source conversation continues.
User Impact
A selected read-only Gateway transcript refreshes every five seconds while visible. Existing history is retained when pages overlap; a reset or gap replaces the window. Hiding or disconnecting the pane retires pending reads.
Why This Change Was Made
Adds a single-flight polling lifetime to the existing catalog view, including recovery from initial absence and unavailable sessions. It does not add write or steering authority and does not change visual layout.
Evidence
The polling candidate passed 43 tests across four files, UI typechecking, lint and configuration checks. Tests cover page overlap/gaps, visibility, disconnects and recovery. Independent exact-slice review accepted publication.
The complete cumulative tree is byte-identical to the frozen tree that passed
pnpm buildin 7m 6.3s; this is exact-tree proof reuse, not a claim that full build ran on every slice. Advisory UI size-budget violations also reproduced on the host-only tree without polling. Budgets were not changed; existing Solid lint/test diagnostics remain.No steering or reader write privilege is included. No live deployment was performed.
Exact revision and proof entry points
1724c1557ec3197113eae540971f9cede4ec1dacc4658d819fe006ebc2051d3b012f6a4ba458d258af3032f4dcdfc7f990dfaf74e1621c1a2846f440Focused runs used
node scripts/run-vitest.mjswith isolated repository-suite configurations,maxWorkers: 1and file parallelism disabled, selecting:ui/src/pages/chat/chat-pane-catalog.test.tsui/src/pages/chat/chat-pane-catalog-disconnect.test.tsui/src/pages/chat/chat-pane-catalog-poll.test.tsui/src/pages/chat/chat-pane-catalog-terminal.test.tsFull-build command:
pnpm build(host-only tree for slice 1; identical cumulative frozen tree for slice 4).Stack order
4/4. Depends on the preceding PR (
feat/session-share-outbound-reader-20261118). Merge prerequisites before retargeting/revalidating this exact diff; do not merge this stack out of order.Depends on #201075.