Repository navigation
fix(chat): keep submitted images visible during history handoff - #143407
Conversation
Recognize current session custody before delivery retirement re-admits a local preview. This preserves the displayed image while canonical media loads and retains the fallback for missing or replaced-session custody. The original image detaches when an outbox history receipt precedes the live transcript event. The repaired producer preserves the original handle, pixels, and frame continuity in both receipt-first and event-first orders. Owner/sibling tests, Linux browser proof, changed checks, and independent P2 review passed. Related: #143227, #134931
|
🦞👀 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 maintainer review before merge. Reviewed September 9, 2026, 5:33 PM ET / 21:33 UTC. ClawSweeper reviewWhat this changesPreserve submitted chat images while delivery confirmation hands display ownership from the local preview to session history, with regression coverage for both arrival orders. Merge readiness✅ Ready for maintainer review Keep open: this remains a useful, focused repair absent from fetched main and the latest release. No actionable introduced defect was found; inspected before/after captures support the visible improvement. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI combines locally submitted messages, Gateway-accepted pending inputs, and canonical session history into one conversation. This change prevents delivery reconciliation from replacing an accepted image while its canonical media is still loading. flowchart LR
A[Submitted image] --> B[Local preview]
C[Gateway pending inputs] --> D{Current session owns this run?}
E[Delivery confirmation] --> D
D -->|Yes| F[Retire local display admission]
D -->|No| B
F --> G[Preserve accepted image]
G --> H[Canonical history and media]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +10, Tests +62. Total +72 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep accepted-image presentation authoritative throughout delivery reconciliation while retaining local display fallback when matching session custody is absent. Do we have a high-confidence way to reproduce the issue? Yes: current source exposes the custody-before-retention ordering gap, and the browser regression explicitly delays media while delivering history confirmation before the transcript event. This review did not execute the scenario. Is this the best way to solve the issue? Yes: using the existing session-scoped custody accessor repairs local display admission at its owner without introducing another presentation store or changing delivery authorization. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 13083df05f8e. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
…claw#143407) Recognize current session custody before delivery retirement re-admits a local preview. This preserves the displayed image while canonical media loads and retains the fallback for missing or replaced-session custody. The original image detaches when an outbox history receipt precedes the live transcript event. The repaired producer preserves the original handle, pixels, and frame continuity in both receipt-first and event-first orders. Owner/sibling tests, Linux browser proof, changed checks, and independent P2 review passed. Related: openclaw#143227, openclaw#134931
Related: #143227, #134931
What Problem This Solves
Fixes an issue where a submitted image disappears behind a loading placeholder when outbox history confirms delivery before the live transcript event arrives. The image has already been accepted, but canonical media metadata is still loading.
Why This Change Was Made
Delivery retirement now recognizes when the current session's pending-input custody already owns the submitted run. It retires the retained submission before local admission can replace the displayed image. The existing local fallback remains available when custody belongs to another physical session or has not accepted the submission.
User Impact
Submitted images remain visible while delivery moves from the local preview to canonical history, regardless of whether the history receipt or live event arrives first. This is a separate ten-line production repair discovered while validating #143227.
Evidence
The pinned-main regression failed before the repair and passed afterward. On Linux Chromium 144, receipt-first ordering reproduced the original image detachment while event-first ordering passed; after the repair, both orders preserve the original image handle, decoded pixels, and frame continuity through metadata and image loading. The owner suite also covers replay after custody removal and the fallback for a replaced physical session.
Validation passed: 417 owner/sibling tests, 18 Linux Chromium E2E cases across four files, the full changed-file gate, and independent review through P2. Completed Testbox run. All owned Testboxes were stopped.
Before and after captures below use synthetic data with canonical metadata deliberately held. Exact-head required CI passed after one unchanged-head retry of an unrelated text-streaming frame-budget failure; source and thresholds were unchanged. Native review, prepare, and merge completed; the landed files match the reviewed patch.