Skip to content

fix(manager): try the default provider before fallbacks - #27

Closed
xiehuanyi wants to merge 1 commit into
cased:mainfrom
xiehuanyi:fix/default-provider-fallback
Closed

xiehuanyi wants to merge 1 commit into
cased:mainfrom
xiehuanyi:fix/default-provider-fallback

Conversation

@xiehuanyi

Copy link
Copy Markdown

Passing fallback_providers=["secondary"] to SandboxManager.create_sandbox() silently skips the configured default provider when provider is omitted. A healthy default is never tried, so adding a fallback changes the primary provider.

Resolve the requested/default primary first, then append the fallback list. Explicit provider selection and fallback-on-failure keep their existing behavior.

Validation: both new cases fail on main because the primary is never called. They now cover a healthy default and a failing default; all 210 offline tests pass (1 credential-dependent skip, 30 integration tests deselected). Full Ruff and Black pass. Mypy retains the 57 existing base diagnostics; it is advisory in repository CI. No cloud sandbox was created.

AI assistance: implemented and tested with Codex.

Copilot AI balanced review requested due to automatic review settings October 6, 2026 16:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@xiehuanyi xiehuanyi closed this Oct 10, 2026
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.

2 participants