Skip to content

[FEATURE]: Add HTTP API endpoint to identify the active session on a TUI #15759

@JSCOP

Description

@JSCOP

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Context & Problem
Based on the current documentation (https://opencode.ai/docs/ko/server/), there seems to be no endpoint available to identify which session is currently active/open on a specific TUI.

Use Case
I am currently developing a team management tool where I need to submit prompts directly to specific terminals. However, without knowing the active session for a given terminal, I cannot reliably submit prompts to the same session unless I manually bind specific ports.

Proposed Feature
Please add an HTTP API endpoint that returns the current session information for a requested TUI/terminal. This would greatly help in managing and interacting with dynamic sessions.

Thank you!

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)discussionUsed for feature requests, proposals, ideas, etc. Open discussion

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