Derive backend_override from provider_profile in run_skill()#3013
Merged
Trecek merged 2 commits intoMay 26, 2026
Merged
Conversation
When provider_extras contains ANTHROPIC_BASE_URL and the context backend is Codex, set backend_override='claude-code' so the executor spawns a Claude Code session instead of Codex for that step. Pass backend_override to executor.run() in all code paths. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
…d Codex init path When backend.name == "codex", DefaultSessionSkillManager.init_session() copies ~/.codex/config.toml, which is absent in CI. This raised FileNotFoundError, caught by run_skill()'s outer try/except, returning a crashed SkillResult without ever calling executor.run(). The spy captured nothing, so the backend_override assertion always saw None. Fix: set tool_ctx_kitchen_open.session_skill_manager = None in the three codex- backend tests (tests 1, 2, 4) so the session-init block is skipped entirely and the test reaches executor.run() as intended. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
After provider-profile resolution in
run_skill(), derivebackend_overrideby checking ifprovider_extrascontainsANTHROPIC_BASE_URLand the context backend is Codex. When both conditions hold, setbackend_override='claude-code'so the executor spawns a Claude Code session instead of Codex for that step. Passbackend_overridetoexecutor.run()in all code paths.Changed Files
Modified (●):
src/autoskillit/server/tools/tools_execution.pytests/server/test_tools_execution_provider.pytests/workspace/test_session_skills_codex.pyCloses #2904
Implementation Plan
Plan file:
/home/talon/projects/autoskillit-runs/impl-20260525-194350-691602/.autoskillit/temp/make-plan/py7_p7_a10_wp1_backend_override_plan_2026-05-25_195000.md🤖 Generated with Claude Code via AutoSkillit
Token Usage Summary
* Step used a non-Anthropic provider; caching behavior may differ.
Token Efficiency
Model Usage Breakdown