Skip to content

[Bug]: npm latest 2026.6.5 still lacks #90212 /compact reply delivery fix #92344

Closed

Description

@hbunews

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

openclaw@latest currently resolves to 2026.6.5, but the published package still lacks the native /compact fast-path reply delivery fix from #90212. On a fresh 2026.6.5 deployment, /compact performs compaction successfully but the final acknowledgement is silently dropped (queuedFinal=false, replies=0 / no channel outbound).

This is related to the closed #90185, but this report is specifically about the current npm stable/latest release still shipping the affected code even after #90212 was merged.

Steps to reproduce

  1. Install/run openclaw@2026.6.5 from npm/global install.
  2. Use a direct channel session, for example Feishu DM or WeChat DM.
  3. Send /status and confirm normal slash-command replies are delivered.
  4. Send /compact in the same direct session.
  5. Check the gateway logs and session checkpoint metadata.

Expected behavior

/compact should compact the current session and send a visible terminal acknowledgement, for example the compact result message shown in #90185 after the fix:

Compacted (...) • Context ...

The dispatch should produce a final reply, for example queuedFinal=true and replies=1.

Actual behavior

The compaction itself succeeds and a manual checkpoint is written, but no visible acknowledgement is delivered.

Observed on Feishu DM:

/status -> dispatch complete (queuedFinal=true, replies=1)
/compact -> dispatch complete (queuedFinal=false, replies=0)
manual checkpoint written around 2026-06-12 12:12:40 Asia/Shanghai
tokensBefore=116023, tokensAfter=4000, reason=manual

Observed on WeChat DM:

[weixin] Slash command: /compact, args:
Compaction safeguard: using session branch messages after compaction preparation omitted real conversation content.
manual checkpoint written around 2026-06-12 12:02:24 Asia/Shanghai
tokensBefore=81510, tokensAfter=23079, reason=manual

There is no WeChat outbound: log after /compact, so the final reply never reaches the channel adapter.

OpenClaw version

OpenClaw 2026.6.5 (5181e4f)

Operating system

macOS 26.4.1

Install method

npm global install under Homebrew prefix:

/opt/homebrew/bin/openclaw
/opt/homebrew/lib/node_modules/openclaw

Model

Native slash command fast path. The configured agent model in the affected session was gpt-5.5 with provider openai, but no model behavior is needed to reproduce the reply-drop path.

Provider / routing chain

Native OpenClaw slash command path. Provider chain is not expected to affect this issue.

Additional provider/model setup details

NOT_ENOUGH_INFO

Logs, screenshots, and evidence

The installed 2026.6.5 dist still has the broken fast-path return. It returns commandResult.reply directly instead of wrapping it with markCommandReplyForDelivery(...) as described in #90212.

From the deployed package:

// /opt/homebrew/lib/node_modules/openclaw/dist/get-reply-BpFiu3Nn.js
if (!commandResult.shouldContinue) return {
  handled: true,
  reply: commandResult.reply
};

Local line-numbered evidence from the package:

2196 const commandSessionMetadataChanges = takeCommandSessionMetadataChangesFromTargets([sessionState.sessionCtx, params.ctx]);
2197 if (commandSessionMetadataChanges) params.opts?.onSessionMetadataChanges?.(commandSessionMetadataChanges);
2198 if (!commandResult.shouldContinue) return {
2199   handled: true,
2200   reply: commandResult.reply
2201 };

npm release/dist-tag evidence:

npm dist-tags:
latest = 2026.6.5
beta   = 2026.6.6-beta.2

npm publish times:
2026.6.5       2026-06-09T18:12:49.010Z
2026.6.6-beta.2 2026-06-12T03:31:20.404Z

#90212 was merged at 2026-06-09T13:04:38Z, but the 2026.6.5 package published later still appears to contain the pre-fix fast-path return.

Relevant prior issue / PR:

Impact and severity

Affected: users running npm latest / stable 2026.6.5 on direct chat channels such as Feishu DM and WeChat DM.

Severity: Medium to high. The recovery command changes session state successfully but gives no visible confirmation. Users reasonably conclude /compact did nothing and may keep retrying or misdiagnose the channel/gateway.

Frequency: Reproduced on both Feishu DM and WeChat DM on the same 2026.6.5 deployment.

Consequence: Silent command feedback loss for a session-state-changing recovery command.

Additional information

If this is considered already fixed by #90212, the remaining issue is release/package clarity: the current npm latest stable (2026.6.5) is still affected while the fix appears to be available only in the beta release line (2026.6.6-beta.2 at the time of this report). Please either keep a canonical issue open until a stable latest includes #90212, or document that 2026.6.5 is known affected and users must install a later beta/stable release containing #90212.

Activity

  1. clawsweeper commented on Jun 12, 2026

    @clawsweeper
    Contributor

    Thanks for the context here. I did a careful shell check against current main, and this is already implemented.

    Close: current main and the stable npm latest release now contain the native slash fast-path delivery marker, and the v2026.6.6 npm artifact directly shows the fixed compiled path.

    So I’m closing this as already implemented rather than keeping a duplicate issue open.

    Review details

    Best possible solution:

    Keep the v2026.6.6 stable package as the forward fix for this release-tracking report; no additional core or docs work remains for the 2026.6.5 packaging gap.

    Do we have a high-confidence way to reproduce the issue?

    Yes. The report's 2026.6.5 package snippet shows the unmarked fast-path return, and current/release source plus the npm artifact show the reply is now wrapped with the delivery marker that dispatch requires.

    Is this the best way to solve the issue?

    Yes. Shipping the existing marker-based fix in stable latest is the narrowest maintainable solution because it reuses the established command-reply metadata and dispatch gates instead of adding a channel-specific workaround.

    Security review:

    Security review: Non-PR issue triage; no patch security review applies.

    AGENTS.md: found and applied where relevant.

    What I checked:

    Likely related people:

    • snowzlm: Authored the merged related PR that diagnosed and fixed the native /compact source-suppression delivery path and is listed in the v2026.6.6 release notes. (role: fix PR author; confidence: high; commits: 296902950d3f, 98d5c465308a; files: src/auto-reply/reply/get-reply-native-slash-fast-path.ts, src/auto-reply/reply/get-reply-native-slash-fast-path.test.ts, src/auto-reply/reply/get-reply.fast-path.test.ts)
    • obviyus: GitHub PR metadata shows obviyus merged the related fix PR at 2026-06-09T13:04:38Z. (role: merger; confidence: high; commits: 98d5c465308a; files: src/auto-reply/reply/get-reply-native-slash-fast-path.ts, src/auto-reply/reply/agent-runner-execution.ts)
    • joshavant: Closed the directly related all-channel report after verifying current main on AWS Crabbox with queuedFinal=true and targeted tests. (role: recent verifier; confidence: medium; files: src/auto-reply/reply/get-reply-native-slash-fast-path.ts, src/auto-reply/reply/dispatch-from-config.ts)
    • Vincent Koc: Authored the v2026.6.6 release commit that contains the fixed fast-path source used as shipped provenance here. (role: release proof commit author; confidence: medium; commits: 8c802aa68351; files: src/auto-reply/reply/get-reply-native-slash-fast-path.ts)
    • Shakker: Local blame in the current shallow checkout attributes the present marker lines to bcc1105. (role: current-main integrator; confidence: medium; commits: bcc1105b3099; files: src/auto-reply/reply/get-reply-native-slash-fast-path.ts)

    Codex review notes: model internal, reasoning high; reviewed against 7190fc4de830; fix evidence: release v2026.6.6, commit 8c802aa68351.

  2. added
    P1High-priority user-facing bug, regression, or broken workflow.
    impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.
    impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.
    on Jun 13, 2026
  3. locked as resolved and limited conversation to collaborators on Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority user-facing bug, regression, or broken workflow.impact:message-lossChannel message delivery can be lost, duplicated, or misrouted.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions