mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-17 06:04:56 +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
23
research/specs/event-stream-parity.md
Normal file
23
research/specs/event-stream-parity.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# Spec: Event Stream Parity
|
||||
|
||||
**Proposed API Changes**
|
||||
- Ensure all core session manager events map to OpenCode’s expected event types and sequencing.
|
||||
- Provide structured, ordered event delivery with backpressure handling.
|
||||
|
||||
**Summary**
|
||||
OpenCode relies on SSE event streams for UI state. We need full parity in event ordering, types, and payloads, not just message/part events.
|
||||
|
||||
**OpenCode Endpoints (Reference)**
|
||||
- `GET /opencode/event`
|
||||
- `GET /opencode/global/event`
|
||||
|
||||
**Core Functionality Required**
|
||||
- Deterministic event ordering and replay by offset.
|
||||
- Explicit `session.status` transitions (busy/idle/error).
|
||||
- `message.updated` and `message.part.updated` with full payloads.
|
||||
- Permission and question events with full metadata.
|
||||
- Error events with structured details.
|
||||
|
||||
**OpenCode Compat Wiring + Tests**
|
||||
- Replace partial event emission with full parity for all supported events.
|
||||
- Add E2E tests that validate event ordering and type coverage in SSE streams.
|
||||
Loading…
Add table
Add a link
Reference in a new issue