Skip to content

[Bug]: Transcript writes lost after tool-call turns (2026.5.2) — replies visible in channel but missing from .jsonl #76568

@Caoxing-max

Description

@Caoxing-max

Bug type

Regression (worked before, now fails)

Beta release blocker

No

Summary

Bug Description

Agent replies are successfully delivered to the channel (Feishu) but not persisted to the session transcript (.jsonl file). After a gateway restart, those replies are lost — the agent "forgets" them.

Reproduction

  1. Send a message to the agent via Feishu
  2. Agent executes tool calls → generates reply → reply delivered to Feishu ✅
  3. Restart gateway (openclaw gateway restart)
  4. Load session history — the assistant's reply text is missing, only tool-call entries remain ❌

Evidence

Session transcript (aaa5f50b-....jsonl) shows:

  • seq 190: exec tool call (gateway status) → assistant reply text missing
  • seq 193: exec tool call (python3 config check) → assistant reply text missing
  • seq 206: exec tool call (gateway restart) → assistant reply text missing
    But the same replies are visible in the Feishu channel — confirming they were generated and delivered, just not written to disk.

Environment

  • OpenClaw: 2026.5.2 (8b2a6e5)
  • Channel: Feishu (feishu plugin)
  • Queue mode: steer (default) → later changed to collect
  • Model: qwen3.6-plus via DashScope

Expected Behavior

All assistant replies should be appended to the .jsonl transcript file immediately after generation, regardless of queue mode.

Impact

  • Session "amnesia" after any gateway restart
  • Context loss compounds over time
  • Active Memory and memory search have no data to recall from

Steps to reproduce

like

Expected behavior

like

Actual behavior

like

OpenClaw version

2026.5.2

Operating system

macos

Install method

npm

Model

qwen3.6-plus

Provider / routing chain

...

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

    bugSomething isn't workingregressionBehavior that previously worked and now fails

    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