| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
Detect coding agent environment variables (AI_AGENT, AGENT, CLAUDECODE, CURSOR_AGENT, GEMINI_CLI, CODEX_SANDBOX, AUGMENT_AGENT, OPENCODE_CLIENT) and report them in the client.env.agent handshake field. See DRIVERS-3529.
|
There is an existing patch(es) for this commit SHA: Please note that the status that is posted is not in the context of this PR but rather the (latest) existing patch and that may affect some tests that may depend on the particular PR. If your tests do not rely on any PR-specific values (like base or head branch name) then your tests will report the same status. If you would like a patch to run in the context of this PR and abort the other(s), comment 'evergreen retry'. |
Sorry, something went wrong.
The spec changed after this branch was written: - Evaluate AI_AGENT last, so a versioned value cannot mask a known agent. - Adopt mongosh's variable list and snake_case agent names, and add CLAUDE_CODE_ENTRYPOINT, CLINE_ACTIVE, TRAE_AI_SHELL_ID, GOOSE_TERMINAL and GOOSE_AGENT. - Drop the generic AGENT variable, which is common outside agents. - Normalize AI_AGENT: trim, lowercase, map 1/true to ai_agent, and truncate to 64 characters. - Treat a whitespace-only value as unset.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Sorry, something went wrong.
# Conflicts: # doc/changelog.rst
test_metadata and test_container_metadata compare the full handshake metadata dict. They fail when the test process itself runs under a coding agent, because env.agent is then present. Add a no_ambient_agent() helper that clears every var the handshake reads, and use it in both tests. _test_handshake now reuses the helper instead of clearing the vars inline.
| Back | FazBrowse Home | New Git URL |
PYTHON-5929
Changes in this PR
Implements the agent identification section of the handshake spec (DRIVERS-3529):
Test Plan
Checklist
Checklist for Author
Checklist for Reviewer