Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
527022c5f2 | ||
|
|
8e441ead93 |
1 changed files with 8 additions and 3 deletions
|
|
@ -277,9 +277,14 @@ Unknown `/foo` shows an error row instead of being silently sent.
|
|||
|
||||
## Per-agent endpoints
|
||||
|
||||
All POSTs return 200 (no 303 redirects). The matching mutations
|
||||
fire `LiveEvent` variants on the per-agent bus, so the client
|
||||
doesn't refetch `/api/state` on submit — the SSE stream
|
||||
Successful POSTs return 200 (no 303 redirects). Error responses
|
||||
use semantic status codes: **400** for missing/invalid input
|
||||
(`body` required, unknown model name, invalid effort level),
|
||||
**409** for retryable state conflicts (turn in flight when
|
||||
`/compact` is called, hive-c0re busy on `GET /api/loose-ends`),
|
||||
**500** only for genuine server/transport failures. The matching
|
||||
mutations fire `LiveEvent` variants on the per-agent bus, so the
|
||||
client doesn't refetch `/api/state` on submit — the SSE stream
|
||||
delivers the new state faster anyway. Only the login flow still
|
||||
polls (session output streams in updates that aren't event-
|
||||
shaped).
|
||||
|
|
|
|||
Loading…
Reference in a new issue