Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 942f86378d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR reads the saved transcript cursor after subscription admission and keeps request coalescing aligned with the cursor actually sent. Example: A cached transcript finishes restoring while the live message subscription connects.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it fixes a current warm-reload inefficiency, and the final diff has no actionable findings; exact-head CI remains pending. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI history loader combines account-scoped browser snapshots with Gateway history responses and live message subscriptions to populate the selected conversation. flowchart TD
A[Browser reload] --> B[Restore scoped snapshot]
A --> C[Admit live subscription]
B --> D[Read current saved cursor]
C --> D
D --> E[Coalesced Gateway history request]
E --> F[Reconcile transcript]
Technical reviewBest possible solution: Retain this focused fix in the existing history owner while preserving cold-load parallelism and cursor-reset fallback. Do we have a high-confidence way to reproduce the issue? Current main captures the cursor before awaiting admission, so snapshot restoration during that wait leaves the first request cursor-less; the PR also reports a real-browser reproduction, but this read-only review ran no target code. Is this the best way to solve the issue? Reading the existing scoped cursor at issuance fixes the ordering at its owner, and updating the existing in-flight key preserves request sharing without another cache or coordinator. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e1a18bdc6335. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +7, Tests +33, Docs +1. Total +41 across 4 files. Added test files: 0. View PR surface stats
Review metrics
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 October 17, 2026, 5:52 AM ET / 09:52 UTC. |
…ssion (openclaw#175393) * fix(control-ui): retain warm reload cursors through subscription admission * fix(control-ui): align warm startup request coalescing with issued cursor
What Problem This Solves
Fixes warm Control UI reloads fetching a full transcript page when the saved transcript and delta cursor finish restoring while the message subscription is connecting.
User Impact
Warm reloads reuse the saved cursor when it is ready before the first chat request, avoiding retransmission of unchanged messages. Cold loads still start without waiting for IndexedDB, and cursor-reset fallback remains unchanged.
Why This Change Was Made
The history loader captured the cursor before awaiting subscription admission. Hydration could then populate the cache, but the request still used the earlier missing cursor. Read the existing scoped cursor at request issuance and remove the stale argument. Keep the existing pane and transport request keys aligned with that cursor so another caller shares the issued request. This ordering predates the recently reported regression; no specific recent commit is established as its trigger.
The simplification pass leaves one existing cursor owner and no additional cache, timer, or configuration. Production TypeScript delta: +14/-7 (net +7); regression coverage: +33 lines. The small production growth keeps the existing in-flight key aligned with the actual cursor, preserving the same-request sharing contract after late hydration. Documentation now describes the current parallel restoration contract.
Evidence
chat.startupomits the cursor. It passes after the fix and asserts the saved cursor, one RPC across two overlapping callers, and preserved messages after an empty delta. The overlapping-caller extension also reproduced the stale in-flight key identified in PR review (two RPCs before that correction, one afterward).git diff --checkpassed.Real source-Gateway + headless Chromium proof of the cursor fix at
942f86378df6used an isolated 820-message synthetic session, the existing warm-reload probe, and the same live Gateway/session for both source variants. Each variant had a cold visit followed by two verified full reloads (navigationType=reload, distinct time origins).chat.startupcursorThe saved transcript rendered before startup in the failing runs. After the change, the request cursor matches the persisted cursor and the empty delta preserves all 80 cached messages. Savings: 101,168 bytes per warm reload (98.22%). Cold startup remains 103,004 bytes/80 messages. The follow-up changes only in-flight key bookkeeping; its additional concurrent-caller behavior is covered by the focused regression.
This is payload and request-count evidence, not a latency benchmark. The minimal synthetic Gateway records unrelated catalog/metadata warmup errors; those do not fail the measured startup or describe requests. No real accounts, production state, or remote validation resources were used. The reported same-key describe burst was not reproduced: each warm reload described the selected session once and the distinct default session once. A separate three-child ancestry fixture reproduced five describe calls on cold and warm loads, one for each distinct key (selected child, parent, two ancestors, and default session). No describe-owner change is justified by these results.