mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-20 10:01:28 +00:00
chore: specs for unimplemented work (#70)
This commit is contained in:
parent
ef3e811c94
commit
8a31519786
14 changed files with 367 additions and 0 deletions
32
research/specs/tui-control-flow.md
Normal file
32
research/specs/tui-control-flow.md
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
# Spec: TUI Control Flow
|
||||
|
||||
**Proposed API Changes**
|
||||
- Add a TUI control queue and state machine to the core session manager.
|
||||
- Expose request/response transport for OpenCode TUI controls.
|
||||
|
||||
**Summary**
|
||||
OpenCode’s TUI endpoints allow a remote controller to drive the UI. We need a server-side queue for control messages and a way to emit responses.
|
||||
|
||||
**OpenCode Endpoints (Reference)**
|
||||
- `GET /opencode/tui/control/next`
|
||||
- `POST /opencode/tui/control/response`
|
||||
- `POST /opencode/tui/append-prompt`
|
||||
- `POST /opencode/tui/clear-prompt`
|
||||
- `POST /opencode/tui/execute-command`
|
||||
- `POST /opencode/tui/open-help`
|
||||
- `POST /opencode/tui/open-models`
|
||||
- `POST /opencode/tui/open-sessions`
|
||||
- `POST /opencode/tui/open-themes`
|
||||
- `POST /opencode/tui/publish`
|
||||
- `POST /opencode/tui/select-session`
|
||||
- `POST /opencode/tui/show-toast`
|
||||
- `POST /opencode/tui/submit-prompt`
|
||||
|
||||
**Core Functionality Required**
|
||||
- Persistent queue of pending UI control actions.
|
||||
- Response correlation (request/response IDs).
|
||||
- Optional integration with session events for UI feedback.
|
||||
|
||||
**OpenCode Compat Wiring + Tests**
|
||||
- Replace stubs for all `/tui/*` endpoints.
|
||||
- Add E2E tests for control queue ordering and response handling.
|
||||
Loading…
Add table
Add a link
Reference in a new issue