-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
Developer Tools
The handshake spec proposes to normalize AI_AGENT before it reports client.env.agent. If merged, three suggested changes for mongosh in packages/logging/src/helpers.ts:
- Trim and lowercase the value. AI_AGENT=" true " must report ai_agent, not " true ".
- Treat a whitespace-only value as unset. AI_AGENT=" " must report nothing.
- Truncate to largest valid UTF-8 prefix of 64 bytes. Do not split a character.
The variable list and the agent names already match so its only normalization that differs!
Spec:
- Jira: DRIVERS-3529
- PR: https://github.com/mongodb/specifications/pull/1967