Repository navigation
Description
What happens
A browser conversation can receive repeated final answers when a background command finishes, the continuation delegates a private native child, and the parent calls sessions_yield. The first final is visible in the conversation, but completion settlement rejects it and starts another synthesis turn without another user message.
This was reproduced against main at dd61952 using an isolated real Gateway and Control UI on Linux, with a loopback Responses provider supplying deterministic model decisions. Exec completion, child spawning, yield, transcript publication, and delivery settlement all use the normal runtime. No external model or channel API is involved.
Reproduction
- Start a background command from a browser conversation without an external delivery route.
- Let the initial turn finish while the command remains running.
- Complete the command normally so its completion resumes that conversation.
- Have the continuation start one native child with
completionTarget: "parent", then callsessions_yield. - Complete the child and let the parent produce a visible final answer.
The browser showed two identical final answers, including after reload. The fixture recorded one child execution and two requester-settle synthesis requests. After the first answer, the child still had a pending delivery obligation with lastError: "completion agent did not produce a visible reply".
Cause and expected behavior
The heartbeat execution context assigns its synthetic sender to To. The normal tool-context path then stores {to: "heartbeat"} as the child's requester origin, without a channel. A debugger observation at the actual classification boundary confirmed a successful, non-silent terminal response with visible text, no delivery error, and those malformed origins. The classifier rejected it as visible_reply_missing because an unresolved destination requires delivery evidence.
The continuation should retain the browser conversation's absent external destination and accept its visible final once. Real unresolved external destinations must continue to require delivery evidence; treating every destination without a channel as delivered would conceal other failures.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Oct 6, 2026
Codex review: this still needs some work. Reviewed October 6, 2026, 7:20 PM ET / 23:20 UTC.
Summary
Current main still supports the reported failure mechanism. This is a bounded runtime bug with concrete reproduction details, and no specifically linked fix PR was found; the MEMBER-authored issue must remain open.
Reproducibility: yes. the issue supplies a precise real-Gateway scenario, and unchanged current source supports its synthetic-destination rejection and retry mechanism. This read-only review did not execute the reproduction.
Next step
The source-supported defect has a narrow producer repair and no specifically linked implementation PR; obviyus and Marvinthebored are the likely related routing candidates.
Review details
Best possible solution:
Preserve the browser continuation’s absent external destination at the context producer, while retaining delivery-evidence requirements for unresolved external routes.
Do we have a high-confidence way to reproduce the issue?
Yes: the issue supplies a precise real-Gateway scenario, and unchanged current source supports its synthetic-destination rejection and retry mechanism. This read-only review did not execute the reproduction.
Is this the best way to solve the issue?
Yes: repairing destination propagation at its producer is the narrowest approach; accepting every channel-less destination in settlement would conceal genuine external delivery failures.
AGENTS.md: found and applied where relevant.
Codex review notes: model internal, reasoning medium; reviewed against 2c620bbfe84c.
Label changes
Label changes:
P1: A concretely reported browser agent workflow repeats completed answers without another user message.impact:message-loss: The reported failure duplicates visible conversation messages through settlement retries.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:queueable-fix: Current issue advisory state selects this label.clawsweeper:fix-shape-clear: Current issue advisory state selects this label.Label justifications:
P1: A concretely reported browser agent workflow repeats completed answers without another user message.impact:message-loss: The reported failure duplicates visible conversation messages through settlement retries.Evidence reviewed
Acceptance criteria:
What I checked:
src/infra/heartbeat-runner-run.ts:80, 2c620bbfe84c)src/auto-reply/reply/agent-runner-utils.ts:290, 2c620bbfe84c)src/agents/subagents/announce/subagent-announce-direct-response.ts:291, 2c620bbfe84c)docs/tools/subagents/tool-reference.md. (docs/tools/subagents/tool-reference.md:230, 2c620bbfe84c)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.clawsweeper commentedon Oct 6, 2026
🦞⚠️
Automatic implementation stopped before completion.
Reason: The automatic implementation worker stopped before all deterministic gates completed. Open the workflow run for the exact blocker.
Worker: https://github.com/openclaw/clawsweeper/actions/runs/37546148122
fix: preserve reply destinations on background continuations (#166362)
fix: preserve reply destinations on background continuations (opencla…
fix: preserve reply destinations on background continuations (#166362)