Skip to content

Session status service has get() method but no single-session HTTP endpoint #29166

@wccyzxy

Description

@wccyzxy

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

  1. Start opencode serve
  2. Call GET /session/:sessionID/status
  3. Get 404 Not Found (endpoint doesn't exist)
  4. 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

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