todo: phase 6 event-covered redirects converted

This commit is contained in:
müde 2026-05-17 14:27:03 +02:00
parent f559441a06
commit e4438d1a6e

View file

@ -24,7 +24,7 @@
- Per-agent reminder status (pending, delivered) - Per-agent reminder status (pending, delivered)
- Reminder query interface for debugging - Reminder query interface for debugging
- Display reminder delivery errors (failed sends, mark failures) - Display reminder delivery errors (failed sends, mark failures)
- **Phase 6 leftovers**: convert the remaining redirect-and-refetch endpoints whose mutations now fire dashboard events. `/approve`, `/deny`, `/answer-question`, `/cancel-question`, `/request-spawn` are 5-line `Redirect::to("/")``(StatusCode::OK, "ok")` changes; the client already updates derived state from the events. Container-lifecycle endpoints (`/restart`, `/destroy`, `/kill`, `/rebuild`, `/start`, `/api/{cancel,compact,model,new-session}`, `/meta-update`, `/purge-tombstone`) need a `ContainerListChanged` event first`ContainerView` is currently sourced from external `nixos-container list`, so the 5s poll still drives that section. - **Phase 6 leftovers** — event-covered endpoints (`/approve`, `/deny`, `/answer-question`, `/cancel-question`, `/request-spawn`) now return 200 (f559441); the matching forms carry `data-no-refresh` so the post-submit `/api/state` refetch is skipped (the SSE event delivers the update). Container-lifecycle endpoints (`/restart`, `/destroy`, `/kill`, `/rebuild`, `/start`, `/api/{cancel,compact,model,new-session}`, `/meta-update`, `/purge-tombstone`) still need a `ContainerListChanged` event before their redirects can drop`ContainerView` is currently sourced from external `nixos-container list`, so the 5s poll continues to drive that section.
## Bugs ## Bugs