Files
fx/.github
Pranit 0475752342 Handle refused, failed, and cancelled turns in durable sessions
- A prompt the harness refuses or throws on ends its turn once with stop reason `error`, and the session's later prompts run.
- A turn cancelled or refused before it writes a record does not run again.
- A storage write that fails for any reason other than a takeover emits `session.error`, and the queue delivers the message again instead of reporting `session.fenced`.
- A prompt's `signal` cancels only that prompt's turn, whether it runs or still waits, and a signal that already aborted stores nothing.
- A retried `messageId` resolves to the original turn's stop reason, usage, and error with `repeated: true`.
- A session stream that fails to read for a reason other than not existing yet fails its views after a few tries instead of waiting forever.
- Each `agent.session(id, { context })` call uses its own context, and a session's worker is dropped once its deliveries end.
- A queue delivery that throws emits `session.error`.
- A resumed turn that ends but stays open stops its worker with `session.error` instead of running again.
2026-10-07 03:37:13 -04:00
..