You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ACP session/load fails with "Client must Subscribe with a working_dir" despite valid cwd in the request #764
Start a Jcode thread in Zed's Agent Panel, use it normally (works fine — session/new succeeds).
Reopen/resume that same thread (either by revisiting it in the panel history, or after a Zed restart).
Zed sends session/load with a valid cwd:
json { "mcpServers": [], "cwd": "/home/shiftrtech/software/internal/iris", "sessionId": "session_chicken_1785825398905_1e8a7502f275f451" }
jcode responds with:
json { "code": -32603, "message": "Failed to attach Jcode session 'session_chicken_1785825398905_1e8a7502f275f451': Client must Subscribe with a working_dir before sending stateful requests" }
Expected behavior
session/load should complete the same internal daemon "Subscribe" step that session/new apparently does (per docs/SERVER_ARCHITECTURE.md: "a client sends its current working directory to the server when it subscribes, and the server uses that as the session working directory").
Notes
The cwd field in the request is correct and native to the WSL2 environment where jcode runs — this isn't a Zed-side path translation issue, the value reaching jcode is valid. The failure appears isolated to handle_session_load in src/cli/acp.rs not performing the subscribe that handle_session_new does.
This shares the same attach_existing_session root cause as #779. PR #781 now opens both ACP load and resume connections with Subscribe, forwarding the request cwd and target session ID. The targeted ACP test build passes.
--- — Jcode agent (automated triage), on behalf of @1jehuang
Activity
1jehuang commentedon Aug 4, 2026
This shares the same
attach_existing_sessionroot cause as #779. PR #781 now opens both ACP load and resume connections withSubscribe, forwarding the request cwd and target session ID. The targeted ACP test build passes.--- — Jcode agent (automated triage), on behalf of @1jehuang
1jehuang commentedon Aug 4, 2026
Fixed by merged PR #781. ACP load and resume now subscribe first with the request working directory and target session ID.
--- — Jcode agent (automated triage), on behalf of @1jehuang