[detect-agent] Add env vars to detect Codex and OpenCode#15121
Conversation
🦋 Changeset detectedLatest commit: 1c6feb2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📦 CLI Tarball ReadyThe Vercel CLI tarball for this PR is now available! Quick TestYou can test this PR's CLI directly by running: npx https://vercel-q318wlujj.vercel.sh/tarballs/vercel.tgz --helpUse in vercel.jsonTo use this CLI version in your project builds, add to your {
"build": {
"env": {
"VERCEL_CLI_VERSION": "vercel@https://vercel-q318wlujj.vercel.sh/tarballs/vercel.tgz"
}
}
}Python Runtime WheelA Python runtime wheel was also built for this PR. |
🧪 Unit Test StrategyComparing: Strategy: Affected packages only ✅ Only testing packages that have been modified or depend on modified packages. Affected packages - 2 (5%)
Unaffected packages - 38 (95%)
Results
This comment is automatically generated based on the affected testing strategy |
OPENCODE_CLIENT=1->OPENCODE=1CODEX_SANDBOX_NETWORK_DISABLEDandCODEX_MANAGED_BY_NPMNote
Low Risk Change
This PR adds additional environment variable checks for agent detection, expanding detection coverage without changing any security, auth, or access control logic.
CODEX_SANDBOX_NETWORK_DISABLEDandCODEX_MANAGED_BY_NPMto Codex detectionOPENCODEenv var alongside existingOPENCODE_CLIENTcheckRisk assessment for commit 1c6feb2.