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
fix(cortex-exec): disable automatic retries by default to prevent duplicate side effects
Fixes bounty issue #1519
The ExecRunner's send_request function had automatic retry logic (MAX_RETRIES=3)
for transient LLM errors. This could cause non-idempotent operations like tool
calls with side effects to be executed multiple times during retries.
Changes:
- Add max_retries field to ExecOptions, defaulting to 0 (no retries)
- Update send_request to use configurable max_retries instead of hardcoded value
- Only retry when max_retries > 0 and error is retriable
- Add test coverage for max_retries configuration
Users who want retry behavior for idempotent prompts can explicitly set
max_retries to a positive value.
0 commit comments