Skip to content

fix(cli): resolve conflicting langsmith env var precedence#2455

Open
Mason Daugherty (mdrxy) wants to merge 2 commits intomainfrom
mdrxy/cli/langsmith-env-var
Open

fix(cli): resolve conflicting langsmith env var precedence#2455
Mason Daugherty (mdrxy) wants to merge 2 commits intomainfrom
mdrxy/cli/langsmith-env-var

Conversation

@mdrxy
Copy link
Copy Markdown
Member

When both a DEEPAGENTS_CLI_-prefixed env var and its canonical counterpart (e.g., LANGSMITH_API_KEY) were set with different values, the bootstrap code warned but left both in place. The LangSmith SDK would silently use one key while the CLI used the other — traces could land in the wrong workspace with no visible error. Now the prefixed value always wins: _ensure_bootstrap overwrites the canonical var before warning, keeping the SDK and CLI in sync.

@github-actions github-actions bot added cli Related to `deepagents-cli` fix A bug fix (PATCH) internal User is a member of the `langchain-ai` GitHub organization size: XS < 50 LOC labels Apr 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli Related to `deepagents-cli` fix A bug fix (PATCH) internal User is a member of the `langchain-ai` GitHub organization size: XS < 50 LOC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant