Description
Since the last few versions, GET session/status no longer returns busy sessions if they were spawned in child directories, they are only returned if ?directory parameter is specified. This is a regression.
I have an orchestration client built on top of the Http API, opencode serve runs in the storage root, and then multiple sessions are spawned in individual workspaces within that root, session/status was used to aggregate all busy sessions to limit the concurrency of running agents, now that's no longer working.
Plugins
No response
OpenCode version
1.15.13
Steps to reproduce
- start
opencode serve in directory A
- do
POST /session?directory=A/B (child directory) and then POST /session/{id}/prompt_async to start a long-running prompt
- Notice that
GET /session/status doesn't show any busy sessions.
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Description
Since the last few versions,
GET session/statusno longer returns busy sessions if they were spawned in child directories, they are only returned if?directoryparameter is specified. This is a regression.I have an orchestration client built on top of the Http API,
opencode serveruns in the storage root, and then multiple sessions are spawned in individual workspaces within that root,session/statuswas used to aggregate all busy sessions to limit the concurrency of running agents, now that's no longer working.Plugins
No response
OpenCode version
1.15.13
Steps to reproduce
opencode servein directoryAPOST /session?directory=A/B(child directory) and thenPOST /session/{id}/prompt_asyncto start a long-running promptGET /session/statusdoesn't show any busy sessions.Screenshot and/or share link
No response
Operating System
No response
Terminal
No response