mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-17 01:04:42 +00:00
feat: stream sessions and discover agent modes
This commit is contained in:
parent
e6b19ed2b6
commit
7b6d7ee917
8 changed files with 2763 additions and 218 deletions
|
|
@ -1,3 +1,5 @@
|
|||
# Open Questions
|
||||
# Open Questions / Ambiguities
|
||||
|
||||
- None yet.
|
||||
- OpenCode server HTTP paths and payloads may differ; current implementation assumes `POST /session`, `POST /session/{id}/prompt`, and `GET /event/subscribe` with JSON `data:` SSE frames.
|
||||
- OpenCode question/permission reply endpoints are assumed as `POST /question/reply`, `/question/reject`, `/permission/reply` with `requestID` fields; confirm actual API shape.
|
||||
- SSE events may not always include `sessionID`/`sessionId` fields; confirm if filtering should use a different field.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
# Required Tests
|
||||
|
||||
- `test_agents_install_version_spawn` (installs, checks version, spawns prompt for Claude/Codex/OpenCode; Amp spawn runs only if `~/.amp/config.json` exists)
|
||||
- daemon http api: smoke tests for each endpoint response shape/status
|
||||
- cli: subcommands hit expected endpoints and handle error responses
|
||||
- Session manager streams JSONL line-by-line for Claude/Codex/Amp and yields incremental events.
|
||||
- `/sessions/{id}/messages` returns immediately while background ingestion populates `/events` and `/events/sse`.
|
||||
- SSE subscription delivers live events after the initial offset batch.
|
||||
- OpenCode server mode: create session, send prompt, and receive SSE events filtered to the session.
|
||||
- OpenCode question/permission reply endpoints forward to server APIs.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue