Repository navigation
Description
Summary
On WebChat, a user-visible status update emitted through sessions_yield can appear live, but disappear after refresh/replay because the yielded text is persisted only inside a tool result payload rather than as durable assistant text.
Environment
- OpenClaw version: 2026.5.26
- Surface: WebChat
- Runtime: OpenAI Codex session with OpenClaw session tools
Minimal Repro
- In a WebChat session, spawn a child/subagent with
sessions_spawn. - Have the parent/session use
sessions_yieldwith a user-visible status message while waiting for push-based child completion. - Observe that the status message appears live in WebChat.
- Refresh/reopen/replay the session history.
- The yielded status message is no longer visible as a normal assistant message.
Observed
The persisted transcript stores the yielded message as a tool result shape similar to:
{
"role": "toolResult",
"toolName": "sessions_yield",
"content": [{
"content": "{ \"status\": \"yielded\", \"message\": \"...\" }"
}]
}On replay, WebChat appears to render durable assistant messages but not this sessions_yield tool-result payload as visible assistant text. The live optimistic/streamed message is therefore replaced by the persisted snapshot and appears to disappear.
Expected
User-visible text passed to sessions_yield should be durable across transcript replay. Either:
sessions_yieldshould persist a normal assistant-visible message, or- WebChat replay should render persisted
sessions_yieldmessage payloads as visible assistant status text.
Impact
This looks like message loss to the user and is especially confusing during default subagent workflows, where OpenClaw instructs agents to rely on push completion/yield instead of polling.
Related
Possibly related to #47975, but this issue is narrower: the yielded message is visible live, then disappears on persisted WebChat replay.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon May 27, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed September 6, 2026, 2:28 AM ET / 06:28 UTC.
Summary
Keep open: legacy tool-result-only status text still lacks assistant replay projection, and the linked open PR owns that work. Newly merged privacy hardening explicitly excludes private yield context from public output, so recovery cannot safely treat every stored message as public.
Reproducibility: yes. for legacy replay: a message-only sessions_yield tool result receives no assistant mirror and is hidden when tool display is disabled. The original live sequence was not executed, and current producers now use a separate public acknowledgment.
Root-cause cluster
Relationship:
canonicalCanonical: #87321
Summary: This issue owns the legacy replay problem; an open fix candidate remains, while merged acknowledgment and privacy work address overlapping contracts.
Members:
fixed_by_candidate: fix(gateway): preserve yielded status on replay #87471 - Open PR explicitly targets this issue’s yielded-status replay behavior.same_root_cause: Replay sessions_yield wait text in WebChat history #88686 - Closed-unmerged alternative implements the same legacy replay projection.partial_overlap: fix(agents): show waiting reply when sessions_yield pauses a turn #125106 - Merged public acknowledgment delivery addresses new waiting replies without establishing legacy replay recovery.partial_overlap: fix: keep private yield context out of chat output #139801 - Merged privacy hardening removes private yield content from public output and constrains the proposed recovery.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Maintainer decision needed
Why: The historical report seeks recovery of visible text, but the current explicit privacy contract forbids treating the same field as generally public.
Next step
Review or narrow #87471 against the current privacy contract before landing or closing it; do not create a competing repair PR.
Security
Needs attention: Legacy recovery needs a public/private distinction before hidden yield context can be displayed.
Review details
Best possible solution:
Keep public acknowledgments durable through the normal reply path and recover legacy waiting text only when its public visibility can be established without exposing private continuation context.
Do we have a high-confidence way to reproduce the issue?
Yes, for legacy replay: a message-only sessions_yield tool result receives no assistant mirror and is hidden when tool display is disabled. The original live sequence was not executed, and current producers now use a separate public acknowledgment.
Is this the best way to solve the issue?
No, unrestricted message mirroring is incompatible with the current private-context contract; recovery must distinguish public waiting text from private continuation records.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 397ec2e8c968.
Label changes
Label changes:
clawsweeper:needs-security-review: Current issue advisory state selects this label.clawsweeper:fix-shape-clear: Current issue advisory state no longer selects this label.clawsweeper:needs-maintainer-review: Current issue advisory state no longer selects this label.Label justifications:
P2: The remaining problem concerns bounded legacy WebChat replay, with an existing implementation candidate and no demonstrated current core outage.impact:message-loss: Previously visible waiting text disappears from the displayed conversation after replay.impact:session-state: Live conversation output and persisted session replay disagree about which status text is visible.Evidence reviewed
Security concerns:
src/agents/sessions-yield-context.ts:6The linked candidate proposes displaying message fields from hidden continuation and legacy result records, while current source defines message as private; the issue’s repair must preserve that boundary.
Confidence: 0.98
What I checked:
src/gateway/chat-display-projection.core.ts:396, 397ec2e8c968)src/gateway/chat-display-projection.core.ts:396, 652611689023)ui/src/pages/chat/components/chat-message-group.ts:372, 652611689023)src/agents/tools/sessions-yield-tool.ts:15, 652611689023)src/agents/sessions-yield-context.ts:6, 652611689023)src/agents/tools/sessions-yield-tool.ts:57, f04aa558115b)Likely related people:
How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.WarrenJones commentedon May 27, 2026
19 remaining items
steipete commentedon Oct 24, 2026
Thanks for filing this. We're closing older issues that no longer look actionable on current
main.Current sessions_yield producers now emit a separate public acknowledgment that survives replay; only legacy records from older releases keep the status text inside the tool result.
OpenClaw has changed a lot since this was filed. If this still affects you on the latest release, please open a fresh issue with your version and repro steps (feel free to link back here).