Repository navigation
fix(gateway): preserve yielded status on replay - #87471
giodl73-repo wants to merge 1 commit into
Conversation
|
Codex review: needs historical verification review before merge. Reviewed August 22, 2026, 4:45 PM ET / 20:45 UTC (Revision 13). ClawSweeper reviewWhat this changesThe PR adds Gateway history projection that mirrors persisted Merge readiness⛔ Blocked before merge - 11 items remain Needs changes before merge: the branch exposes a field that current main explicitly defines as private, and it still misses supported persisted yield-result forms. Priority: P1 Review scores
Verification
How this fits togetherThe Gateway converts persisted session transcript records into display-safe history for WebChat. Yield handling stores private continuation context and tool results, while the projection decides what users see after reload. flowchart LR
A[sessions_yield tool] --> B[Private resume context]
A --> C[Public acknowledgement]
B --> D[Gateway history projection]
C --> D
D --> E[WebChat replay]
Decision needed
Why: Existing persisted records do not reliably distinguish formerly user-visible messages from current private continuation context, so a generic replay mirror cannot safely preserve both behaviors. Before merge
Findings
Agent review detailsSecurityNeeds attention: The proposed mirror crosses current main’s explicit private-context boundary into user-visible WebChat history. PR surfaceSource +80, Tests +238, Docs +1. Total +319 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep Do we have a high-confidence way to reproduce the issue? Yes, from source: current main persists Is this the best way to solve the issue? No: this is not the best fix because it reverses the current privacy contract and duplicates a narrower detector instead of defining an explicit public status boundary. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 53aa9414fe67. LabelsLabel justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (12 earlier review cycles; latest 8 shown)
|
|
ClawSweeper PR egg ✨ Hatched: 🥚 common Cosmic Diff Drake Hatch commandComment Hatchability rules:
Rarity: 🥚 common. What is this egg doing here?
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
This comment was marked as spam.
This comment was marked as spam.
7f363e4 to
aab3992
Compare
|
@clawsweeper re-review Refreshed #87471 onto current Focused WSL validation passed after the refresh:
No config surface or plugin API surface changes. No merge performed. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
6b58fc9 to
6f37b50
Compare
|
@clawsweeper re-review Refreshed #87471 onto current New signed head: Conflict resolution:
Validation after rebase from
Full focused file run note:
No merge performed. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Gio Della-Libera <[email protected]> Punchcard-Session: frost-workshop-meadow-4w
6f37b50 to
a2d9014
Compare
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review Exact head: The stale generalized mirror implementation was replaced with the current-main gateway projection owner. Scope is limited to |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Pausing this yielded-status replay fix as part of an author-approved queue reduction. This is not a claim that the underlying bug is fixed or that this implementation is superseded. Reopen when current-main reproduction confirms the remaining gap and a maintainer agrees the canonical projection/proof approach. The linked issue is not being closed by this action; branch and commit history are retained. |
Fixes #87321.
Summary
sessions_yieldstatus messages as one marked assistant-visible rowRoot cause
Live
sessions_yieldstatus text was user-visible, but persisted replay exposed it only through a hidden custom continuation record or a legacy tool result. The gateway display projection filtered the hidden record and WebChat hid raw tool results by default, so refresh silently removed the status.Fix
The gateway display-projection owner now recognizes only:
customType: "openclaw.sessions_yield",display: false,details.source: "sessions_yield", and a nonblankdetails.messagesessions_yieldresults with{ status: "yielded", message }indetailsor text JSONIt emits one adjacent assistant mirror with an
openclawSessionsYieldMirrormarker, carries a call ID when available, and deduplicates only adjacent marked mirrors. Raw tool-result rows remain in projected history; existing visibility filtering still controls their rendering.Production delta:
+81/-1, net+80. Tests and changelog are counted separately.Real behavior proof
Blacksmith Testbox mock Gateway/WebChat replay, with
chatShowToolCalls: false:{ "durableRows": ["toolResult", "assistant"], "visibleYieldStatusCount": 1, "rawToolPayloadVisible": false, "toolActivityVisible": false, "result": "passed" }Validation
pnpm check:changed: passed on Testboxtbx_01kztjh3nt087m4n16n4ww7drptbx_01kztjzzst4jpyy6g7xy3qa5mnpnpm build: passed on Testboxtbx_01kztjzzst4jpyy6g7xy3qa5mnoxfmt,oxlint, andgit diff --check: passedContributor credit is preserved with
Co-authored-by: Gio Della-Libera <[email protected]>.