You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(webhook_out): a turn-finished event, so a gateway needs no polling after an allow #962
Found while building the gateway receiver (codecoradev/tole-gateway#19, issue tole-gateway#16). tole's outbound webhook events are approval_requested, approval_resolved and cron_run_finished. There is no event for "the turn that was waiting on an approval resumed and finished". approval_resolved fires at decision time, before the turn continues. So after an Allow a receiver still has to read GET /sessions/{id}/status and the log entries to learn the answer. The gateway can only stop polling for a further approval, not for the final answer, and tole-gateway#16 cannot be met in full.
Proposed solution
Add one event type, for example turn_finished, to the existing outbox and signing path (#911): sent when a serve session's turn ends (Final, Cancelled, ProviderFailed, BudgetExhausted, a new approval stop), carrying only ids and a status word, never transcript text. Opt-in per destination in the user config events list, like the approval events, so nothing changes for an existing destination.
Activity
docs(webhook_out): fold independent review findings into the turn_fin…
docs(webhook_out): design note for a turn_finished outbound event (#976)
docs(webhook_out): record the cora scan check and its prerequisite bu…
fix(serve): keep turn_finished ids unique per settle, prove the leak …
fix(serve): a retried turn_finished never evicts a newer event of its…
feat(webhook): turn_finished event types, builder and queue (#962) (#999
feat(serve): announce turn_finished when a serve session's turn ends (#…