Skip to content

fix(cli): load env before validate#28

Draft
heimanba wants to merge 2 commits into
mainfrom
codex/validate-loads-env
Draft

fix(cli): load env before validate#28
heimanba wants to merge 2 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 and others added 2 commits July 18, 2026 19:00
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