Skip to content

feat: support Qoder environment variables - #77

Merged
heimanba merged 2 commits into
mainfrom
codex/qoder-environment-variables
Aug 12, 2026
Merged

feat: support Qoder environment variables#77
heimanba merged 2 commits into
mainfrom
codex/qoder-environment-variables

Conversation

@heimanba

Copy link
Copy Markdown
Contributor

What changed

  • add environment_variables to Agent declarations and Session creation options
  • map variables to Qoder's three distinct wire formats:
    • Forward Template: top-level object
    • managed Session: KEY=VALUE;... string
    • Forward Session: config.environment_variables object
  • reject Agent environment variables for non-Qoder providers
  • document .env interpolation and Qoder runtime behavior
  • add coverage for parsing, inheritance, validation, and both Session delivery modes

Why

Qoder supports runtime environment variables on Forward Templates and Sessions, but the provider adapter did not expose the capability. Users could keep values in .env, yet those values could not be propagated through agents.yaml into the Qoder runtime.

Impact

Qoder users can now declare an environment-variable map on an Agent and source its values from .env. The same declaration works for managed and Forward delivery while preserving each API's required request shape.

Validation

  • bun run --cwd packages/sdk typecheck
  • 74 focused SDK tests
  • Biome checks on changed files
  • repository pre-push verification harness
  • real Qoder managed Session: remote Bash read the expected .env-sourced value
  • real Qoder Forward Template/Session: remote Bash read the expected .env-sourced value

Temporary Qoder Sessions, Agents, Templates, Identities, and Environments used for the live test were deleted afterward.

Change-Id: I062cc8f29ab291bf8f43bb6b6f0d82525ea589d7
@heimanba
heimanba force-pushed the codex/qoder-environment-variables branch from 29d7984 to e0f3b94 Compare August 12, 2026 01:44
Change-Id: I0d3309e56596e337bafa1a25745c7a91927a518f
@heimanba
heimanba marked this pull request as ready for review August 12, 2026 03:23
@heimanba
heimanba merged commit 4d74bcc into main Aug 12, 2026
16 checks passed
@heimanba
heimanba deleted the codex/qoder-environment-variables branch August 12, 2026 03:23
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