Description
The SessionStatus.Service has a get(sessionID) method that returns a single
session's runtime status (idle/busy/retry), but no HTTP endpoint exposes it.
Currently only GET /session/status exists, which returns all non-idle statuses
as a Record<SessionID, Info>. Clients that need just one session's status have
to pull the full list and filter client-side.
Add GET /session/:sessionID/status that delegates to the existing get() method,
following the same pattern as other single-session endpoints.
Plugins
No response
OpenCode version
1.2.17
Steps to reproduce
- Start opencode serve
- Call GET /session/:sessionID/status
- Get 404 Not Found (endpoint doesn't exist)
- Only GET /session/status exists, returns all statuses with no way to query a single session
Screenshot and/or share link
No response
Operating System
Linux(Ubuntu 22.04.5)
Terminal
tmux
Description
The SessionStatus.Service has a get(sessionID) method that returns a single
session's runtime status (idle/busy/retry), but no HTTP endpoint exposes it.
Currently only GET /session/status exists, which returns all non-idle statuses
as a Record<SessionID, Info>. Clients that need just one session's status have
to pull the full list and filter client-side.
Add GET /session/:sessionID/status that delegates to the existing get() method,
following the same pattern as other single-session endpoints.
Plugins
No response
OpenCode version
1.2.17
Steps to reproduce
Screenshot and/or share link
No response
Operating System
Linux(Ubuntu 22.04.5)
Terminal
tmux