Skip to content

[Core bug] /compact reply silently dropped (replies=0) on all channels in 2026.6.1 #90185

Description

@itanyplus

Core dispatch drops /compact reply — replies=0 on all channels

After /compact is dispatched, the core pipeline completes with replies=0. The compaction itself runs fine, but the reply ("Compacted X tokens") is silently discarded. This affects all channels (confirmed on Feishu DM and WebChat).

PR #87171 (commit fb6f2c61) attempted to fix this in #87107 but did not fully resolve it.

Evidence from gateway logs (2026-06-04)

Normal user message (works correctly):

15:04:44 | dispatching to agent (session=agent:main:feishu:direct:ou_...)
15:04:46 | dispatch complete (queuedFinal=true, replies=1)  ← ✅ reply delivered

/compact command (reply silently lost):

15:03:51 | received message: /compact
15:03:51 | dispatching to agent (session=agent:main:feishu:direct:ou_...)
15:03:52 | dispatch complete (queuedFinal=false, replies=0)  ← ❌ reply lost
15:03:54 | compaction-safeguard: compaction runs...            ← compaction itself works

Key observations:

  1. The command IS received and dispatched to the agent
  2. The compaction DOES execute (safeguard log proves it)
  3. But the reply is never produced (replies=0)
  4. No fallback message is sent
  5. Reproducible on all channels

Environment

Component Version
OpenClaw 2026.6.1 (2e08f0f)
Feishu plugin @openclaw/[email protected] (built-in)
Node.js v24.15.0
OS Ubuntu 26.04 LTS (Linux 7.0.0-15-generic x86_64)
Compaction config mode: "safeguard", reserveTokensFloor: 30000
Affected channels All (Feishu DM, WebChat confirmed)

Related issues

Metadata

Metadata

Assignees

Labels

P1High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper 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.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: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.

Type

No type

Fields

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions