Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingclawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.regressionBehavior that previously worked and now failsBehavior that previously worked and now failsstaleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
Bug Description
After upgrading to OpenClaw 5.2 (persists in 5.3.1), there are two related issues:
Issue 1: Duplicate answers
When the user asks a follow-up question, my answer to the new question also contains a repeat of the previous answer. For example:
- User asks: "What's the weather today?"
- I answer: "It's sunny today, 25°C."
- User asks: "And tomorrow?"
- I answer: "It's sunny today, 25°C. Tomorrow it will be cloudy, 23°C."
The previous answer is repeated within the current answer, as part of the same message.
Issue 2: "missing tool result in session history" synthetic error
Every command executed in the session produces this error in the gateway logs:
Steps to reproduce
The LCM falls back to live context instead of using compacted summaries on every turn.
Impact
- Answers are noisy and repetitive due to the duplicate content
- Session transcript is polluted with synthetic error records on every tool use
Expected Behavior
- Each answer should only contain the answer to the current question, not repeat previous answers
- No synthetic error records should be inserted into the transcript
Notes
- Before upgrading to 5.2, this issue did not occur
- FreshTailCount tuning (32→64) was tried as a mitigation but did not fully resolve the issue
- The issue appears related to how lossless-claw interacts with OpenClaw 5.2/5.3's session transcript handling
Expected behavior
The LCM falls back to live context instead of using compacted summaries on every turn.
Impact
- Answers are noisy and repetitive due to the duplicate content
- Session transcript is polluted with synthetic error records on every tool use
Expected Behavior
- Each answer should only contain the answer to the current question, not repeat previous answers
- No synthetic error records should be inserted into the transcript
Notes
- Before upgrading to 5.2, this issue did not occur
- FreshTailCount tuning (32→64) was tried as a mitigation but did not fully resolve the issue
- The issue appears related to how lossless-claw interacts with OpenClaw 5.2/5.3's session transcript handling
Actual behavior
Environment
- OpenClaw version: 5.3.1 (upgraded from 5.2)
- Plugin: lossless-claw (enabled)
- Channel: Telegram
- Model: minimax-cn/MiniMax-M2.7-highspeed
Logs
Relevant gateway log excerpt:
OpenClaw version
2026.5.3-1
Operating system
macos15.4
Install method
No response
Model
minimax 2.7-highspeed
Provider / routing chain
minimax- telegram
Additional provider/model setup details
No response
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
No response
Reacted by clawsweeper, jsompis and David
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingclawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.Channel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.regressionBehavior that previously worked and now failsBehavior that previously worked and now failsstaleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon May 5, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 29, 2026, 2:29 AM ET / 06:29 UTC.
Summary
Keep open: current main has useful adjacent repairs, but the reported Telegram duplicate-answer plus synthetic missing-tool-result path is not proven fixed, and current source still has the strict-provider synthetic repair and user-visible tool-result delivery surfaces.
Reproducibility: no. high-confidence live current-main reproduction was run; source inspection still shows the synthetic repair and visible tool-result delivery paths needed for the reported failure class.
Ways to help us reproduce this
Next step
The remaining work spans provider replay contracts, transcript repair policy, flush timing, and Telegram delivery proof, so a new automated fix PR is not safe yet.
Review details
Best possible solution:
Keep this open until maintainers decide the synthetic-repair visibility policy and land validated narrow fixes with live Telegram/provider proof.
Do we have a high-confidence way to reproduce the issue?
No high-confidence live current-main reproduction was run; source inspection still shows the synthetic repair and visible tool-result delivery paths needed for the reported failure class.
Is this the best way to solve the issue?
Keeping the issue open for maintainer review is best because current merged work is only partial and open related fixes still need proof and policy decisions.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning high; reviewed against 18f0eeab20e9.
Label changes
Label justifications:
P1: The issue reports a regression that can pollute active sessions and duplicate Telegram-visible answers during real agent workflows.impact:session-state: The core failure involves missing tool-result repair, transcript pollution, and stale context being carried into later turns.impact:message-loss: The user-visible symptom is duplicated or stale Telegram replies instead of one correct current response.Evidence reviewed
Acceptance criteria:
abortedrepair behavior.What I checked:
No result providedfor non-OpenAI-Responses strict APIs before shared pairing repair. (src/agents/transport-message-transform.ts:65, 18f0eeab20e9)src/agents/session-transcript-repair.ts:185, 18f0eeab20e9)allowSyntheticToolResultsto true and flushes pending tool calls by appending synthetic missing results. (src/agents/session-tool-result-guard.ts:642, 18f0eeab20e9)onToolResult, and auto-reply dispatch can forward the resolved payload throughdispatcher.sendToolResult. (src/auto-reply/reply/dispatch-from-config.ts:3197, 18f0eeab20e9)src/agents/session-file-repair.ts:574, e90fb676414a)Likely related people:
src/agents/session-file-repair.ts,src/agents/embedded-agent-runner/replay-history.ts,src/auto-reply/reply/provider-request-error-classifier.ts)src/agents/session-transcript-repair.ts,src/agents/session-transcript-repair.test.ts)src/agents/session-transcript-repair.ts,src/agents/session-tool-result-guard.ts)src/agents/transport-message-transform.ts)src/agents/embedded-agent-runner/wait-for-idle-before-flush.ts,src/agents/session-tool-result-guard.test.ts)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.100yenadmin commentedon May 6, 2026
Additional sanitized source-trace for the
No result provided/ duplicate tool-result echo variant:mainstill has an exact"No result provided"generator insrc/agents/transport-message-transform.ts:syntheticToolResultTextis"No result provided"for strict non-Codex replay APIs, andrepairToolUseResultPairing(..., { missingToolResultText: syntheticToolResultText })can synthesize atoolResultwhen an assistant tool call has no matching result before the next assistant/user turn."aborted"for OpenAI Responses-family APIs (openai-responses,openai-codex-responses, Azure/OpenClaw variants), so this is not the old OpenAI-compatible regression from [Bug]: exec tool returns "No result provided" starting in 2026.4.14 #67896 unless a plugin/provider override routes Codex through the non-Codex strict path.src/agents/session-transcript-repair.ts/src/agents/session-tool-result-guard.ts: missing tool results become[openclaw] missing tool result in session history; inserted synthetic error result for transcript repair.whenallowSyntheticToolResultsis enabled byresolveTranscriptPolicy().src/agents/pi-embedded-subscribe.tsemits tool summaries/results when verbose is on/full;src/auto-reply/reply/agent-runner-execution.tsforwards those viaonToolResult;src/auto-reply/reply/dispatch-from-config.tsthen sends them throughdispatcher.sendToolResult(...). This path is independent of final assistant text and can make internal/synthetic tool result material visible to Telegram/web/etc.toolCallId, but tool-result output delivery on result events is not obviously de-duped. If replay/compaction/retry re-emits the same result or synthetic result after an LCM smoke/repair turn, the same empty/synthetic tool result can be sent more than once to the channel.Suggested regression coverage:
transport-message-transformfixture: assistant tool call with missing result before a user turn, for OpenAI Responses/Codex vs Anthropic/Gemini strict APIs. Assert Codex does not produce user-visibleNo result provided, and strict non-Codex behavior is intentional/documented or hidden from user channels.onToolResult/dispatcher.sendToolResultas a normal user-visible payload.toolCallIdresult twice across retry/compaction replay and assert at most one user-visible tool-result message is delivered.Relation to #78055: this is adjacent but distinct. #78055 is stale
subagent_announceinter-session delivery/history inheritance. This path is ordinary tool-result materialization and verbose/channel delivery after tool calls.Sanitization: no session JSONL, user IDs, message bodies, or local private tool output included; only public source file names and behavior.
AiD-teng commentedon May 8, 2026
Same issue here. I think this is a very big problem that prevented OpenClaw from working. I can tolerate some performance issues, but I can't stand this – the agent becomes so dumb that I rolled back.
Channel: Telegram
I thought the Lossless Claw plugin caused the problem, but it still happens after I uninstalled it.
baghvn commentedon May 20, 2026
Confirming this regression on OpenClaw 2026.5.18 with lossless-claw enabled. Surface: Telegram. Model:
anthropic/claude-opus-4.7via OpenRouter passthrough. Symptom: occasional full-message duplication — the assistant's reply arrives twice in the channel with identical content. Using default lossless-claw tuning (noFreshTailCountoverride). Happy to provide more diagnostic details if useful.openclaw-barnacle commentedon Jun 4, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Jul 14, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Jul 21, 2026
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.