Skip to content

fix: use config env for auto model selection#206

Merged
steipete merged 1 commit intosteipete:mainfrom
solomonneas:codex/fix-auto-config-env
Apr 26, 2026
Merged

fix: use config env for auto model selection#206
steipete merged 1 commit intosteipete:mainfrom
solomonneas:codex/fix-auto-config-env

Conversation

@solomonneas
Copy link
Copy Markdown
Contributor

@solomonneas solomonneas commented Apr 25, 2026

Summary

  • Use the merged runtime environment when building auto model candidates so config-provided API keys are visible to auto selection.
  • Add a regression test for URL summarization with model: auto and an API key supplied only through ~/.summarize/config.json.

Root cause

Fixed model runs used the merged environment, but auto candidate filtering used the raw process environment. When the API key came from config, auto mode filtered out otherwise usable candidates and fell back to extracted text with no model.

Fixes #205.

Verification

  • pnpm -s test tests/cli.config-env.test.ts tests/cli.config-apikeys-legacy.test.ts tests/run.env-state.test.ts tests/model-auto.test.ts tests/cli.auto.no-model-url-json.test.ts tests/cli.auto.no-model-needed.test.ts
  • pnpm exec oxfmt --check src/run/run-env.ts tests/cli.config-env.test.ts
  • git diff --check

@solomonneas solomonneas marked this pull request as ready for review April 25, 2026 05:15
@steipete steipete merged commit 17cec42 into steipete:main Apr 26, 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.

via html, no model issue

2 participants