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
Commit 9a1eac6
Browse filesBrowse the repository at this point in the historyBrowse files
fix: detect stalled opencode sessions and restart the server
A wedged session executor (anomalyco/opencode#53747) left prompts hanging
while /api/info stayed green; only a restart helped.
- watchdog: a running session silent past watchdog.inactivityTimeoutMs is
interrupted, the user gets a reply, and an opencode restart is requested
- event stream: Ktor's silent SSE reconnect is disabled (it hid events lost
while disconnected); reconnects are explicit, missed results are recovered
from /api/session/active + /message, and connections without heartbeats
are re-established without touching the session
- supervision: OpenCodeServerManager restarts opencode on stall (with
cooldown) and on unexpected exit (with backoff), waiting for it to be healthy
- readiness reports DOWN while opencode is starting or restarting
- every opencode transport failure maps to OpenCodeClientException and the
listener always replies, so Slack thread locks are always released;
lock TTLs derive from maxAgentSessionDurationSeconds
Fixes#20
Co-Authored-By: Claude Opus 5.5 <[email protected]>
0 commit comments