Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingclawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper 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 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: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.regressionBehavior that previously worked and now failsBehavior that previously worked and now failsstaleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
Slack inbound wedge after context overflow / compaction; Socket Mode stays connected but messages stop producing replies
Environment
- OpenClaw: 2026.6.10
aa69b12 - Host: Linux 6.1.163-186.299.amzn2023.x86_64, Node 24.15.0
- Runtime/model: OpenAI Codex,
gpt-5.5, 272k context - Channel: Slack via external
@openclaw/slackplugin, Socket Mode - Instance: staging, loopback Gateway on
127.0.0.1:18790
Symptom
Slack stops responding to inbound messages even though:
- Gateway is reachable/healthy
- Slack channel status says OK
- Slack Socket Mode logs
slack socket mode connected - outbound Slack sends still work
- no obvious Slack token/auth failure
Inbound Slack messages appear not to create/advance a successful agent reply.
Expected
Slack inbound messages should enqueue/dispatch normally, or stale active work should be force-cleared so the lane recovers.
Actual
Slack/main session lane gets wedged after context overflow/compaction. Recovery detects stale session state but repeatedly skips because it thinks there is active reply work.
Representative logs:
context overflow detected ... attempting auto-compaction for openai/gpt-5.5
[compaction] rotated active transcript after compaction
auto-compaction succeeded ... retrying prompt
### Steps to reproduce
Use slack until compaction
### Expected behavior
Should compact and continue without interruption
### Actual behavior
Slack channel becomes unresponsive
### OpenClaw version
2026.06.10
### Operating system
Linux 6.1.163-186.299.amzn2023.x86_64
### Install method
npm
### Model
gpt-5.5 medium
### Provider / routing chain
openclaw->Slack
### Additional provider/model setup details
_No response_
### Logs, screenshots, and evidence
```shell
Impact and severity
No response
Additional information
No response
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.bugSomething isn't workingSomething isn't workingclawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper 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 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: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.regressionBehavior that previously worked and now failsBehavior that previously worked and now failsstaleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Priority
None yet
Activity
clawsweeper commentedon Jun 25, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 25, 2026, 1:39 PM ET / 17:39 UTC.
Summary
Keep open. The older dormant follow-up and stale active-run fixes are already in the reported v2026.6.10 build, but current main is not proven to fix this newer Slack plus Codex compaction wedge and still has the threshold-gated
active_reply_workrecovery path.Reproducibility: no. high-confidence live reproduction was run. The reporter supplied v2026.6.10 Slack/Codex logs, and current source still contains the compaction retry and
active_reply_workkeep-lane path needed for the reported failure shape.Ways to help us reproduce this
Next step
The issue has concrete source and release evidence but needs maintainer scoping plus live Slack/Codex reproduction before any automated fix lane is safe.
Review details
Best possible solution:
Keep this open until maintainers can prove the Slack/Codex compaction path and land a focused reply-owner or diagnostic-recovery fix with live or Crabbox evidence that queued inbound Slack messages resume.
Do we have a high-confidence way to reproduce the issue?
No high-confidence live reproduction was run. The reporter supplied v2026.6.10 Slack/Codex logs, and current source still contains the compaction retry and
active_reply_workkeep-lane path needed for the reported failure shape.Is this the best way to solve the issue?
Unclear. The best fix is likely at the reply-owner cleanup or diagnostic recovery boundary, but maintainers need to choose the liveness semantics and prove the Slack/Codex compaction trigger before changing recovery behavior.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
active_reply_workand stale progress.Codex review notes: model internal, reasoning high; reviewed against 7cce191b0530.
Label changes
Label changes:
clawsweeper:needs-product-decision: Current issue advisory state selects this label.Label justifications:
P1: A real Slack workflow can stop producing replies after compaction while Gateway health and Socket Mode still look connected.impact:message-loss: The report is about inbound Slack messages not producing agent replies while the lane is wedged.impact:session-state: The suspected failure is stale reply/session state after Codex compaction and terminal run progress.Evidence reviewed
What I checked:
context overflow detected, transcript rotation, and auto-compaction success.status=skipped,action=keep_lane,reason=active_reply_workwhen the stale-progress threshold is not reached. (src/logging/diagnostic-stuck-session-recovery.runtime.ts:193, 7cce191b0530)auto-compaction succeeded ... retrying prompt, matching the representative sequence in the issue. (src/agents/embedded-agent-runner/run.ts:2639, 7cce191b0530)[compaction] rotated active transcript after compaction, another message from the report's sequence. (src/agents/embedded-agent-runner/compact.ts:1546, 7cce191b0530)thread/compact/startas a thread-scoped RPC takingthread_idand returning an empty immediate response, so OpenClaw must own the surrounding session/recovery lifecycle. (../codex/codex-rs/app-server-protocol/src/protocol/common.rs:577, 268328001f89)Likely related people:
active_reply_workbehavior. (role: active-reply recovery contributor; confidence: high; commits: 6f76d9f246a3, f194be19e261; files:src/logging/diagnostic-stuck-session-recovery.runtime.ts,src/logging/diagnostic.ts)src/auto-reply/reply/agent-runner.ts,src/auto-reply/reply/queue/enqueue.ts,extensions/codex/src/app-server/compact.ts)extensions/codex/src/app-server/compact.ts,src/agents/embedded-agent-runner/compact.queued.ts,src/agents/embedded-agent-runner/compact.hooks.test.ts)src/auto-reply/reply/agent-runner.ts,src/agents/embedded-agent-runner/run.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.shannon0430 commentedon Jul 3, 2026
Additional live repro / operator evidence from an OpenClaw Slack agent on 2026-07-03 (JST).
Observed user-visible symptom:
Runtime/environment:
2026.6.1026.3,arm64{"ok":true,"status":"live"}session.dmScope="per-channel-peer"channels.slack.thread.historyScope="thread"channels.slack.thread.inheritParent=falseImportant state found during recovery:
agent:main:slack:direct:<peer>.2,001,720bytes with601JSONL entries.Immediate operator remediation that restored the agent path:
agents/main/sessions/sessions.json.sessions.json./healthreturned{"ok":true,"status":"live"}and the affected direct key was absent.This looks like the product gap is not just "tell the user to /new". For Slack/Gateway agents, when auto-compaction cannot recover a turn, OpenClaw should probably be able to mark that exact session key as overflowed and start a fresh session on the next inbound message, while preserving the old JSONL as an archive. Otherwise a non-technical Slack user remains stuck even though Socket Mode and Gateway health are green.
openclaw-barnacle commentedon Jul 18, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
openclaw-barnacle commentedon Jul 26, 2026
Closing due to inactivity.
If this is still an issue, please retry on the latest OpenClaw release and share updated details.
If you are absolutely sure it still happens on the latest release, open a new issue with fresh steps to reproduce.