Skip to content

fix(core): retry transient agent provider failures#230

Merged
cbusillo merged 1 commit into
mainfrom
fix/agent-provider-retries
May 30, 2026
Merged

fix(core): retry transient agent provider failures#230
cbusillo merged 1 commit into
mainfrom
fix/agent-provider-retries

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

Summary

  • retry transient external agent provider failures with bounded same-model backoff
  • expose retry metadata in agent status/result/wait/list responses and progress logs
  • document automatic agent retry reporting

Notes

  • Retries are scoped to the provider execution call only; worktree setup, prompt assembly, gating, auth/config/missing-command/policy/cancel failures still fail fast.
  • Fallback models are not implemented in this PR. The final model is tracked and currently remains the requested model.
  • Session-scoped cancel now requires strict ownership, so legacy unowned agents can remain visible without being cancelled by an unrelated session.

Validation

  • cargo test -p code-core model_facing_agent_queries_are_session_scoped --lib
  • cargo test -p code-core agent_tool --lib
  • git diff --check
  • ./build-fast.sh

Fixes #206

@cbusillo cbusillo merged commit 47630c3 into main May 30, 2026
1 check passed
@cbusillo cbusillo deleted the fix/agent-provider-retries branch May 30, 2026 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retry transient agent provider failures automatically

1 participant