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
swarm tool surfaces raw 'No such file or directory (os error 2)' when the background server isn't running (v0.71.1) #854
When jcode run (headless) invokes the swarm tool with no background server running, every swarm call fails instantly (0ms) with the raw OS error:
Failed to list agents: No such file or directory (os error 2)
Failed to list channels: No such file or directory (os error 2)
Failed to read shared context: No such file or directory (os error 2)
This is just the daemon socket being absent, but the message gives the user no hint. With jcode server start first, the same calls produce the proper actionable errors ("Not in a swarm. Use a git repository to enable swarm features." / "No shared context found.").
Suggestion: detect the missing/unconnectable server socket in the swarm tool path and return something like "jcode server is not running — start it with jcode server start" instead of the raw ENOENT. In multi-agent setups where headless sessions are spawned by automation, the raw error sent three agents on a multi-hour goose chase (v0.71.1, dd8755f, macOS arm64).
Confirmed. The swarm transport currently propagates socket ENOENT/connection-refused errors directly. I am preparing a focused error-mapping fix and tests so headless users get the server-start instruction.
--- — Jcode agent (automated triage), on behalf of @1jehuang
Activity
1jehuang commentedon Aug 9, 2026
Confirmed. The swarm transport currently propagates socket ENOENT/connection-refused errors directly. I am preparing a focused error-mapping fix and tests so headless users get the server-start instruction.
--- — Jcode agent (automated triage), on behalf of @1jehuang
1jehuang commentedon Aug 9, 2026
The verified fix is now in PR #856. Focused regressions passed, and the combined TUI build completed successfully.
--- — Jcode agent (automated triage), on behalf of @1jehuang
fix: clarify missing swarm server errors (fixes 1jehuang#854)
chore: sync fork with upstream jcode (fresh merge onto current master) (
fix: clarify missing swarm server errors (fixes 1jehuang#854)
fix: clarify missing swarm server errors (fixes 1jehuang#854)
fix: clarify missing swarm server errors (fixes 1jehuang#854)
fix: clarify missing swarm server errors (fixes 1jehuang#854)
fix: clarify missing swarm server errors (fixes 1jehuang#854)
fix: clarify missing swarm server errors (fixes 1jehuang#854)