Skip to content

acc: unset all SDK v0.141.0 AI-agent env vars before tests#5436

Merged
denik merged 1 commit into
mainfrom
denik/agent-user-agent
Jun 4, 2026
Merged

acc: unset all SDK v0.141.0 AI-agent env vars before tests#5436
denik merged 1 commit into
mainfrom
denik/agent-user-agent

Conversation

@denik
Copy link
Copy Markdown
Contributor

@denik denik commented Jun 4, 2026

The SDK checks 15 explicit env vars and two generic fallbacks (AGENT, AI_AGENT) to detect AI coding agents and add agent/ to the User-Agent. The previous list covered only 7 of them, so tests run inside agents like Augment, Copilot, Goose, Kiro, OpenClaw, VS Code agent, or Windsurf would still pick up the host agent and produce non-deterministic output.

Add the missing 10 vars and a comment pointing at listKnownAgents() in the SDK so the list is easy to keep in sync on future SDK bumps.

Co-authored-by: Isaac

The SDK checks 15 explicit env vars and two generic fallbacks (AGENT,
AI_AGENT) to detect AI coding agents and add agent/<name> to the
User-Agent. The previous list covered only 7 of them, so tests run
inside agents like Augment, Copilot, Goose, Kiro, OpenClaw, VS Code
agent, or Windsurf would still pick up the host agent and produce
non-deterministic output.

Add the missing 10 vars and a comment pointing at listKnownAgents() in
the SDK so the list is easy to keep in sync on future SDK bumps.

Co-authored-by: Isaac
@denik denik temporarily deployed to test-trigger-is June 4, 2026 09:56 — with GitHub Actions Inactive
@denik denik temporarily deployed to test-trigger-is June 4, 2026 09:56 — with GitHub Actions Inactive
@denik denik enabled auto-merge June 4, 2026 09:56
@denik denik changed the title acceptance: unset all SDK v0.141.0 AI-agent env vars before tests acc: unset all SDK v0.141.0 AI-agent env vars before tests Jun 4, 2026
@denik denik disabled auto-merge June 4, 2026 10:11
@denik denik merged commit 847a2ef into main Jun 4, 2026
24 checks passed
@denik denik deleted the denik/agent-user-agent branch June 4, 2026 10:11
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.

2 participants