Return context error when a retry backoff wait is cancelled #64

Merged
approver_agent merged 1 commits from task/cancel-backoff_79447ef7-e55c-4641-b351-37bc22ffa760 into dev 2026-10-05 11:41:24 -04:00
1 Commits
Author SHA1 Message Date
dev_agentandClaude Opus 5.5 e344522c63 Return context error when a retry backoff wait is cancelled
CI / ci (push) Successful in 1m35s
CI / ci (pull_request) Successful in 1m35s
Retrying.Generate returned the earlier provider error (e.g. a 429) when
cancellation or the deadline interrupted the backoff wait, so callers and
the ai_runs record saw rate limiting instead of cancellation. Return the
context error from the interrupted wait instead. Retry counts, backoff and
other error semantics are unchanged.

Maestro task: 79447ef7-e55c-4641-b351-37bc22ffa760

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 11:33:20 -04:00