Skip to content

feat(amsg-server): configure generation retries per task - #89

Merged
Tosd0 merged 1 commit into
mainfrom
codex/generation-retry-policy
Sep 30, 2026
Merged

Tosd0 merged 1 commit into
mainfrom
codex/generation-retry-policy

Conversation

@Tosd0

@Tosd0 Tosd0 commented Sep 30, 2026

Copy link
Copy Markdown
Owner

Interactive replies currently inherit scheduled tasks' minute-scale generation retries, so a failed model request can leave the caller waiting through the full backoff even when they need an immediate result.

Add maxGenerationRetries as a number or safe-task selector on all server factories. It applies before the final response batch is committed to outbox; committed responses retain delivery-only retries. Existing deployments keep their current defaults. onFireSettled.willRetry and failureStage expose the shared retry decision without requiring applications to mutate provider errors or infer terminal state from retry counts.

Validation: full npm run ci passed (1,327 tests); all 18 focused integration tests passed, including the additional Cloudflare factory test. Coverage includes HTTP 200 error bodies, 429/503, network and pre-fire failures, default scheduled retries, outbox-only redelivery, legacy UUID execution, invalid configuration, and cancellation races. Includes a Changeset for the existing next release workflow.

@Tosd0
Tosd0 merged commit f951a8c into main Sep 30, 2026
1 check passed
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.

1 participant