Skip to content

GET /session/status no longer aggregates across all directories #30094

@n3ziniuka5

Description

@n3ziniuka5

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

  1. start opencode serve in directory A
  2. do POST /session?directory=A/B (child directory) and then POST /session/{id}/prompt_async to start a long-running prompt
  3. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions