openclaw - 💡(How to fix) Fix [Bug]: ACP sessions die immediately with "queue owner unavailable" on local loopback gateway (v2026.4.1, macOS arm64) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#59274Fetched 2026-04-08 02:26:36
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Participants
Timeline (top)
cross-referenced ×2labeled ×2

Every ACP session spawned via sessions_spawn(runtime: "acp") dies within seconds with status=dead summary=queue owner unavailable, preventing all ACP-based coding work on a local loopback gateway (v2026.4.1, macOS arm64, acpx 0.4.0 bundled).

Error Message

Every ACP session dies within seconds. Gateway error log shows: [plugins] acpx ensureSession dead-session resume repair failed; retrying with fresh session owner: session=agent:openclaw:acp:<uuid> cwd=/Users/jeeves/estate-map resumeSessionId=<uuid> error=-32002: Resource not found status=dead summary=queue owner unavailable Gateway error log pattern (repeats on every ACP session attempt): 2026-04-01T22:59:29.394+01:00 [plugins] acpx ensureSession dead-session resume repair failed; retrying with fresh session owner: session=agent:codex:acp:0c695df9-7ab1-4f09-b53f-d2ade1d61258 cwd=/Users/jeeves/estate-map resumeSessionId=019d4b0f-0274-7412-b14e-ec03890e8026 error=-32002: Resource not found status=dead summary=queue owner unavailable 5. defaultAgent harness (tried both "codex" and "openclaw" — same error with both)

Root Cause

ACPX wrapper script adds /opt/homebrew/bin to PATH because Node.js is not in the default gateway child process PATH on macOS (without this, acpx fails with "env: node: No such file or directory").

Fix Action

Fix / Workaround

Affected: All ACP-based coding workflows for all agents on this gateway Severity: High — completely blocks the ACP execution lane, which is the designed implementation path for the engineering team (Architect agent dispatches coding work via ACP) Frequency: 100% — every ACP session attempt fails Consequence: Engineering agents cannot use ACP for coding. Workaround is using direct exec (shell commands) instead, which loses the fresh-context-per-slice benefit that ACP provides.

Code Example

Gateway error log pattern (repeats on every ACP session attempt):

2026-04-01T22:59:08.673+01:00 [plugins] acpx ensureSession repairing dead named session by resuming backend session: session=agent:openclaw:acp:07be0abe-d0df-435d-acfb-854a6e382466 cwd=/Users/jeeves/estate-map resumeSessionId=0242032b-81a8-4531-a877-5c898c0679b7 status=dead summary=queue owner unavailable
2026-04-01T22:59:10.022+01:00 [plugins] acpx ensureSession repairing dead named session by resuming backend session: session=agent:openclaw:acp:07be0abe-d0df-435d-acfb-854a6e382466 cwd=/Users/jeeves/estate-map resumeSessionId=0242032b-81a8-4531-a877-5c898c0679b7 status=dead summary=queue owner unavailable
2026-04-01T22:59:28.301+01:00 [plugins] acpx ensureSession repairing dead named session by resuming backend session: session=agent:codex:acp:0c695df9-7ab1-4f09-b53f-d2ade1d61258 cwd=/Users/jeeves/estate-map resumeSessionId=019d4b0f-0274-7412-b14e-ec03890e8026 status=dead summary=queue owner unavailable
2026-04-01T22:59:29.394+01:00 [plugins] acpx ensureSession dead-session resume repair failed; retrying with fresh session owner: session=agent:codex:acp:0c695df9-7ab1-4f09-b53f-d2ade1d61258 cwd=/Users/jeeves/estate-map resumeSessionId=019d4b0f-0274-7412-b14e-ec03890e8026 error=-32002: Resource not found status=dead summary=queue owner unavailable

Direct bridge test:
$ openclaw acp --verbose
[acp] ready
[acp] gateway disconnected: 1005:

What was ruled out:
1. Node PATH (fixed via wrapper — acpx starts and registers successfully)
2. Queue owner TTL (increased from 0.1s default to 30s — no change)
3. nonInteractivePermissions (changed from "fail" to "deny" — no change)
4. Stale session records (cleared sessions.json multiple times — new sessions also die)
5. defaultAgent harness (tried both "codex" and "openclaw" — same error with both)
6. gateway.remote.token (was missing, set to match gateway.auth.token — no change)
7. OpenClaw version (upgraded from 2026.3.28 to 2026.4.1 — no change)
8. openclaw doctor --fix (applied — no change to ACP behavior)

Total dead-session errors logged over 36 hours: 1,100+
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Every ACP session spawned via sessions_spawn(runtime: "acp") dies within seconds with status=dead summary=queue owner unavailable, preventing all ACP-based coding work on a local loopback gateway (v2026.4.1, macOS arm64, acpx 0.4.0 bundled).

Steps to reproduce

  1. Fresh install OpenClaw v2026.4.1 on Mac Mini M4 (macOS 26.3.1, Node v25.8.1)
  2. Gateway config: mode=local, bind=loopback, port=18789, auth=token
  3. ACP config: enabled=true, backend=acpx, defaultAgent=openclaw
  4. ACPX plugin config: permissionMode=approve-all, nonInteractivePermissions=deny, queueOwnerTtlSeconds=30
  5. gateway.remote.url=ws://127.0.0.1:18789, gateway.remote.token matches gateway.auth.token
  6. From any agent, call sessions_spawn with runtime: "acp", agentId: "openclaw", cwd: "/path/to/repo"
  7. Observe session dies immediately in gateway.err.log

Also reproducible with agentId: "codex" — same result.

Additionally, running openclaw acp --verbose directly shows: [acp] ready [acp] gateway disconnected: 1005: The bridge connects but is disconnected by the gateway almost immediately.

Expected behavior

ACP session should stay alive, accept the prompt from sessions_spawn, execute coding work, and return results. This is the documented behavior per https://docs.openclaw.ai/tools/acp-agents.

Actual behavior

Every ACP session dies within seconds. Gateway error log shows:

[plugins] acpx ensureSession repairing dead named session by resuming backend session: session=agent:openclaw:acp:<uuid> cwd=/Users/jeeves/estate-map resumeSessionId=<uuid> status=dead summary=queue owner unavailable

[plugins] acpx ensureSession dead-session resume repair failed; retrying with fresh session owner: session=agent:openclaw:acp:<uuid> cwd=/Users/jeeves/estate-map resumeSessionId=<uuid> error=-32002: Resource not found status=dead summary=queue owner unavailable

This repeats on every ACP session attempt. The acpx backend registers successfully on gateway startup (acpx runtime backend registered + acpx runtime backend ready) but spawned sessions die before processing any work.

OpenClaw version

2026.4.1 (da64a97)

Operating system

macOS 26.3.1 (Darwin 25.3.0, arm64, Mac Mini M4 T8132)

Install method

npm global (Homebrew Node v25.8.1) + Mac app (OpenClaw.app v2026.3.24)

Model

openai-codex/gpt-5.4 (ChatGPT Plus OAuth)

Provider / routing chain

openclaw gateway (local loopback) -> openai-codex OAuth (ChatGPT Plus subscription)

Additional provider/model setup details

Primary model: openai-codex/gpt-5.4 (OAuth, ChatGPT Plus subscription) Fallbacks: openai-codex/gpt-5.3-codex, openai/gpt-5.4, openrouter/anthropic/claude-sonnet-4.6 9 agents configured (main, jim-gold, librarian, hartley, wallace, qa, ui-ux-designer, architect, inspector-dixon) No "codex" agent in agents.list — ACP uses the acpx built-in agent registry

ACPX wrapper script adds /opt/homebrew/bin to PATH because Node.js is not in the default gateway child process PATH on macOS (without this, acpx fails with "env: node: No such file or directory").

Relevant config:

  • acp.defaultAgent: "openclaw"
  • acp.backend: "acpx"
  • plugins.entries.acpx.config.permissionMode: "approve-all"
  • plugins.entries.acpx.config.nonInteractivePermissions: "deny"
  • plugins.entries.acpx.config.queueOwnerTtlSeconds: 30
  • plugins.entries.acpx.config.command: wrapper script pointing to bundled acpx 0.4.0
  • gateway.mode: "local"
  • gateway.bind: "loopback"
  • gateway.auth.mode: "token"
  • gateway.remote.url: "ws://127.0.0.1:18789"
  • gateway.remote.token: set to match gateway.auth.token

Logs, screenshots, and evidence

Gateway error log pattern (repeats on every ACP session attempt):

2026-04-01T22:59:08.673+01:00 [plugins] acpx ensureSession repairing dead named session by resuming backend session: session=agent:openclaw:acp:07be0abe-d0df-435d-acfb-854a6e382466 cwd=/Users/jeeves/estate-map resumeSessionId=0242032b-81a8-4531-a877-5c898c0679b7 status=dead summary=queue owner unavailable
2026-04-01T22:59:10.022+01:00 [plugins] acpx ensureSession repairing dead named session by resuming backend session: session=agent:openclaw:acp:07be0abe-d0df-435d-acfb-854a6e382466 cwd=/Users/jeeves/estate-map resumeSessionId=0242032b-81a8-4531-a877-5c898c0679b7 status=dead summary=queue owner unavailable
2026-04-01T22:59:28.301+01:00 [plugins] acpx ensureSession repairing dead named session by resuming backend session: session=agent:codex:acp:0c695df9-7ab1-4f09-b53f-d2ade1d61258 cwd=/Users/jeeves/estate-map resumeSessionId=019d4b0f-0274-7412-b14e-ec03890e8026 status=dead summary=queue owner unavailable
2026-04-01T22:59:29.394+01:00 [plugins] acpx ensureSession dead-session resume repair failed; retrying with fresh session owner: session=agent:codex:acp:0c695df9-7ab1-4f09-b53f-d2ade1d61258 cwd=/Users/jeeves/estate-map resumeSessionId=019d4b0f-0274-7412-b14e-ec03890e8026 error=-32002: Resource not found status=dead summary=queue owner unavailable

Direct bridge test:
$ openclaw acp --verbose
[acp] ready
[acp] gateway disconnected: 1005:

What was ruled out:
1. Node PATH (fixed via wrapper — acpx starts and registers successfully)
2. Queue owner TTL (increased from 0.1s default to 30s — no change)
3. nonInteractivePermissions (changed from "fail" to "deny" — no change)
4. Stale session records (cleared sessions.json multiple times — new sessions also die)
5. defaultAgent harness (tried both "codex" and "openclaw" — same error with both)
6. gateway.remote.token (was missing, set to match gateway.auth.token — no change)
7. OpenClaw version (upgraded from 2026.3.28 to 2026.4.1 — no change)
8. openclaw doctor --fix (applied — no change to ACP behavior)

Total dead-session errors logged over 36 hours: 1,100+

Impact and severity

Affected: All ACP-based coding workflows for all agents on this gateway Severity: High — completely blocks the ACP execution lane, which is the designed implementation path for the engineering team (Architect agent dispatches coding work via ACP) Frequency: 100% — every ACP session attempt fails Consequence: Engineering agents cannot use ACP for coding. Workaround is using direct exec (shell commands) instead, which loses the fresh-context-per-slice benefit that ACP provides.

Additional information

The problem existed on v2026.3.28 and persists on v2026.4.1. First observed 2026-03-31 after the engineering team (Architect agent "Carlos") attempted its first real ACP coding session. Cannot confirm a last-known-good version as ACP was not tested before 2026-03-31.

The gateway itself is fully healthy — web UI, Telegram, all 9 agents, heartbeats, compaction, and agent-to-agent messaging all work. Only ACP sessions are affected.

The acpx plugin registers successfully on every gateway restart ("acpx runtime backend registered" + "acpx runtime backend ready") but spawned sessions die immediately.

extent analysis

TL;DR

The ACP sessions are dying immediately due to a potential issue with the acpx plugin or the gateway configuration, and a workaround or configuration change is needed to resolve the issue.

Guidance

  • Verify the acpx plugin configuration, specifically the queueOwnerTtlSeconds setting, to ensure it is not causing the sessions to die prematurely.
  • Check the gateway logs for any errors or warnings related to the acpx plugin or ACP sessions to gain more insight into the issue.
  • Attempt to increase the queueOwnerTtlSeconds value to a higher number, such as 300 (5 minutes), to see if it resolves the issue.
  • Test the ACP sessions with a different agent, such as "codex", to see if the issue is specific to the "openclaw" agent.
  • Review the OpenClaw documentation and acpx plugin documentation to ensure that the configuration and setup are correct.

Example

No code snippet is provided as the issue seems to be related to configuration or plugin setup.

Notes

The issue seems to be specific to the ACP sessions and the acpx plugin, and the gateway itself is healthy. The problem persists across different OpenClaw versions and agent configurations.

Recommendation

Apply a workaround by increasing the queueOwnerTtlSeconds value or adjusting the acpx plugin configuration to resolve the issue, as the root cause is not immediately clear.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

ACP session should stay alive, accept the prompt from sessions_spawn, execute coding work, and return results. This is the documented behavior per https://docs.openclaw.ai/tools/acp-agents.

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix [Bug]: ACP sessions die immediately with "queue owner unavailable" on local loopback gateway (v2026.4.1, macOS arm64) [1 participants]