Repository navigation
Closed
Closed
Copy link
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify 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: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.Decent issue quality, but reproduction details are still incomplete.
Description
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:
- The command IS received and dispatched to the agent
- The compaction DOES execute (safeguard log proves it)
- But the reply is never produced (
replies=0) - No fallback message is sent
- Reproducible on all channels
Environment
| Component | Version |
|---|---|
| OpenClaw | 2026.6.1 (2e08f0f) |
| Feishu plugin | @openclaw/feishu@2026.6.1 (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
- /compact command reply silently dropped after upgrade to 2026.5.22 (delivered=true but no actual delivery) #87107 — Original report (closed, fix incomplete)
- Bug: Feishu channel does not handle text slash commands (/compact, /new, /stop) #79409, [Bug]: Discord native /compact slash command produces no visible reply despite successful compaction #89950 — Same symptom on other channels
- Bug: compaction.notifyUser notices gated behind onBlockReply — async compactions silently notify nothing #88933 —
notifyUsernotification silently skipped (separate bug) - [feishu] Streaming card sends incremental diff instead of full text to CardKit API #88335, [Bug]: Feishu streaming card: only the last character displayed after streaming completes #88867, [Bug] Feishu streaming card: abnormal typewriter effect and final content truncated to last character #88929 — CardKit streaming rendering corruption (separate bug)
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-infoClawSweeper needs more reporter information before it can verify this issue.ClawSweeper needs more reporter information before it can verify 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: 🦐 gold shrimpDecent issue quality, but reproduction details are still incomplete.Decent issue quality, but reproduction details are still incomplete.
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon Jun 4, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 4, 2026, 5:34 AM ET / 09:34 UTC.
Summary
Keep open: the report describes a current v2026.6.1
/compactreply-loss path, and current main plus the active related PR do not prove the centralreplies=0behavior is fixed.Reproducibility: no. the issue has credible v2026.6.1 logs and a source-backed subpath for
notifyUsersuppression, but this read-only review did not establish a high-confidence current-main live reproduction for the centralreplies=0path.Ways to help us reproduce this
Next step
The issue already has an active partial PR plus maintainer/product-decision labels, so a maintainer should decide the remaining owner boundary before a new repair lane starts.
Review details
Best possible solution:
Keep this issue as the concrete tracker until maintainers either land a complete fix with dispatch proof or split the remaining core/external-package behavior into a narrower canonical issue.
Do we have a high-confidence way to reproduce the issue?
No: the issue has credible v2026.6.1 logs and a source-backed subpath for
notifyUsersuppression, but this read-only review did not establish a high-confidence current-main live reproduction for the centralreplies=0path.Is this the best way to solve the issue?
Unclear: the existing #87171 implementation is a plausible partial fix, and the open related PR addresses another partial path. The best final repair needs maintainer confirmation of whether the remaining failure is core dispatch, bundled Feishu metadata, external Lark package ownership, or the broader durable delivery contract.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
/compactreplies, while the reporter's fresh logs show the turn completing with no final replies queued.Codex review notes: model gpt-5.5, reasoning high; reviewed against fc64494b03ba.
Label changes
Label justifications:
P1: A successful/compactcommand can produce no visible reply in the latest release, breaking a real command/channel workflow.impact:message-loss: The reported user-visible compaction confirmation is silently dropped withreplies=0even though compaction runs.impact:session-state: The affected command changes conversation context state while leaving the user without reliable confirmation.Evidence reviewed
What I checked:
AGENTS.md:1, fc64494b03ba)VISION.md:14, fc64494b03ba)handleCompactCommandstill returns a visible⚙️ ...reply after compaction, but the issue reports that dispatch completes withqueuedFinal=false, replies=0, so the remaining problem is in command dispatch/delivery rather than the compact handler text itself. (src/auto-reply/reply/commands-compact.ts:331, fc64494b03ba)src/auto-reply/reply/dispatch-from-config.ts:2826, fc64494b03ba)else ifafter compaction hook messages, so configured hook messages suppress the built-innotifyUsernotice; the open related PR changes this but is not merged. (src/auto-reply/reply/agent-runner-execution.ts:2561, fc64494b03ba)Likely related people:
/compactreply-suppression family acrossdispatch-from-config, command terminal replies, and compaction notification handling. (role: introduced earlier repair path; confidence: high; commits: fb6f2c61bf91; files:src/auto-reply/reply/dispatch-from-config.ts,src/auto-reply/reply/get-reply-inline-actions.ts,src/auto-reply/reply/agent-runner-execution.ts)notifyUsernotice behavior plus bundled Feishu command coverage. (role: recent adjacent contributor; confidence: medium; commits: df98fff0eaf0; files:src/auto-reply/reply/agent-runner-execution.ts,extensions/feishu/src/bot.test.ts,packages/plugin-sdk/src/testing.ts)src/auto-reply/reply/dispatch-from-config.ts,src/auto-reply/reply/get-reply-inline-actions.ts,src/auto-reply/reply/agent-runner-execution.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.itanyplus commentedon Jun 4, 2026
Update: Confirmed — core dispatch bug, NOT plugin-specific
After migrating from
@larksuite/openclaw-lark@2026.5.20to@openclaw/feishu@2026.6.1(the built-in community plugin), the/compactreply is still silently dropped. This proves the bug is in the core dispatch pipeline, not in any specific plugin.Evidence with @openclaw/feishu (built-in plugin)
Normal message (reply delivered correctly):
/compactcommand (reply silently dropped):Key observations:
replies=0)Environment after migration
2e08f0f)@openclaw/feishu@2026.6.1(built-in)@larksuite/openclaw-larkAdd streaming bug screenshot for issue openclaw#90185
[-][Regression] /compact reply still silently dropped on 2026.6.1 (reopens #87107)[/-][+][Core bug] /compact reply silently dropped (replies=0) on all channels in 2026.6.1[/+]itanyplus commentedon Jun 5, 2026
Additional Analysis (rough assessment, for reference only)
Confirmed the same bug on v2026.6.1 with the built-in
@openclaw/feishuplugin — this is not a channel plugin issue. After a rough read-through of the dist code, here are my observations. This may not be accurate; provided for reference only.Confirmed Observations
/compactshould normally be recognized as a slash command and handled via the fast path, not routed through the full AI dispatch pipelinecompaction-safeguardfires), butreplies=0Suspected Root Cause
The fast path (
maybeResolveNativeSlashCommandFastReply) does not callmarkCommandReplyForDelivery()when returning the/compactreply.Comparing the slow path (
runCommands) in the same file:markCommandReplyForDeliverysetsdeliverDespiteSourceReplySuppression: truemetadata on the reply payload. In the final delivery stage of the dispatch pipeline (dispatch-Bgs9vXV4.js), there is a delivery suppression mechanism:A reply without this mark gets skipped when
suppressDeliveryis true.Uncertainties
replies=0, not "reply suppressed" — this could mean the reply was never produced in the first place, not just suppressed at delivery/compactshould be recognized as a command)Environment
2026.6.1 (2e08f0f)@openclaw/feishuplugin (same bug reproduces after migrating from@larksuite/openclaw-lark)itanyplus commentedon Jun 9, 2026
Still broken on 2026.6.5-beta.6 (released today, Jun 9).
Confirmed the root cause is unchanged in the bundled dist:
Fast path (
maybeResolveNativeSlashCommandFastReply, ~line 2207 inget-reply-BpFiu3Nn.js):Slow path (~line 2050) has it:
This is literally a one-line fix. The fast path just needs to wrap
commandResult.replywithmarkCommandReplyForDelivery().Impact: Every
/compactinvocation on every channel silently returnsreplies=0. The compaction itself works, but the user gets zero feedback — no "Compacted X tokens" message, nothing. Users think the command did nothing.This has been open for 5 days as P1. It is extremely frustrating for daily users. Please prioritize the fix for the next beta/stable release.
joshavant commentedon Jun 10, 2026
Thanks @itanyplus for the detailed report and for checking the bundled dist in
2026.6.1and2026.6.5-beta.6.Closing this as fixed on current
mainby #90212. The timeline explains the apparent mismatch:2026.6.5-beta.6was published before #90212 landed, so that beta still had the broken fast-path return:Current
mainnow wraps native/compactfast-path replies withmarkCommandReplyForDelivery(...), so the terminal command reply carries the source-suppression bypass metadata and is delivered throughmessage_tool_onlyinstead of being dropped.Proof:
maincontains the fixed fast-path return insrc/auto-reply/reply/get-reply-native-slash-fast-path.ts.mainon AWS Crabbox: native/compactproduced a marked reply, dispatch returnedqueuedFinal=true, and the targeted native fast-path / dispatch / Feishu tests passed.OpenClaw forward-releases fixes rather than backporting, so affected released/beta builds before #90212 may still show the bug. Please pick up the next release containing #90212.
itanyplus commentedon Jun 11, 2026
Confirmed fixed on
2026.6.6-beta.1(commit99648bb)./compactnow returns the result card and the context window is correctly reduced. Previously on2026.6.5and2026.6.5-beta.6,/compactwould silently complete withreplies=0— no visible output at all.Great to see this fixed. Please make sure the compact delivery path stays intact going forward — losing compact feedback is a pretty bad UX since there is no indication whether it succeeded or failed.