Feature Request: Session Information: State #2097

Open
opened 2026-02-16 17:34:08 -05:00 by yindo · 3 comments
Owner

Originally created by @g4borg on GitHub (Oct 14, 2025).

Originally assigned to: @thdxr on GitHub.

Sessions should indicate whether they are active or idle in the session status overview.

Reasoning: for a connecting client, that starts listening to events, there is no way to guess if the session is currently executing actions or not (except guessing by updated date, or waiting)

Context percentage or whether it is a child session or not are probably also nice, but maybe more niche (second can be derived after all by scanning all session children)

Originally created by @g4borg on GitHub (Oct 14, 2025). Originally assigned to: @thdxr on GitHub. Sessions should indicate whether they are active or idle in the session status overview. Reasoning: for a connecting client, that starts listening to events, there is no way to guess if the session is currently executing actions or not (except guessing by updated date, or waiting) Context percentage or whether it is a child session or not are probably also nice, but maybe more niche (second can be derived after all by scanning all session children)
Author
Owner

@rekram1-node commented on GitHub (Oct 14, 2025):

thanks for suggestion

@rekram1-node commented on GitHub (Oct 14, 2025): thanks for suggestion
Author
Owner

@andreigiura commented on GitHub (Oct 29, 2025):

I think this is absolutely needed. And also to be exposed in the opencode server api. When retrieving session info and also when receiving events on SSE would be great to receive such events, like finished, or similar

@andreigiura commented on GitHub (Oct 29, 2025): I think this is absolutely needed. And also to be exposed in the opencode server api. When retrieving session info and also when receiving events on SSE would be great to receive such events, like finished, or similar
Author
Owner

@rekram1-node commented on GitHub (Oct 29, 2025):

We already send a bunch of these events, there is a session idle one for instance:

https://github.com/sst/opencode/blob/972c0893dd7596f13f74f25a822029183013a210/packages/sdk/js/src/gen/types.gen.ts#L1257

@rekram1-node commented on GitHub (Oct 29, 2025): We already send a bunch of these events, there is a session idle one for instance: https://github.com/sst/opencode/blob/972c0893dd7596f13f74f25a822029183013a210/packages/sdk/js/src/gen/types.gen.ts#L1257
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2097