Skip to content

fix(cli): load env before validate#28

Merged
heimanba merged 3 commits into
mainfrom
codex/validate-loads-env
Jul 19, 2026
Merged

fix(cli): load env before validate#28
heimanba merged 3 commits into
mainfrom
codex/validate-loads-env

Conversation

@heimanba

Copy link
Copy Markdown
Contributor

Summary

  • Load runtime credentials before agents validate resolves provider placeholders.
  • Preserve the offline/no-API behavior while allowing project .env files to satisfy ${VAR} references.
  • Add a CLI contract test that validates a config using QODER_PAT from a local .env.

Validation

  • bun test packages/cli/tests/unit/cli-contracts.test.ts -t "validate"
  • bun run --cwd packages/cli typecheck

Note

A full run of packages/cli/tests/unit/cli-contracts.test.ts also passed the new validate test, but an unrelated existing playground help test hit its 5s timeout on this machine.

@heimanba
heimanba marked this pull request as ready for review July 19, 2026 03:24
@heimanba
heimanba merged commit ac2ad7b into main Jul 19, 2026
15 checks passed
@heimanba
heimanba deleted the codex/validate-loads-env branch July 19, 2026 03:24
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