Skip to content

[Bug]: [5.3 regression] lossless-claw: duplicate answers + "missing tool result in session history" synthetic errors #77642

@momokeyes

Description

@momokeyes

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

  1. Answers are noisy and repetitive due to the duplicate content
  2. 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

  1. Answers are noisy and repetitive due to the duplicate content
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingclawsweeper:needs-live-reproClawSweeper 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:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.regressionBehavior that previously worked and now failsstaleMarked as stale due to inactivity

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions