Skip to content

[pull] main from databricks:main#240

Merged
pull[bot] merged 1 commit into
Future-Outlier:mainfrom
databricks:main
May 30, 2026
Merged

[pull] main from databricks:main#240
pull[bot] merged 1 commit into
Future-Outlier:mainfrom
databricks:main

Conversation

@pull

@pull pull Bot commented May 30, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…#1444)

## Why

[VS Code 1.121](https://code.visualstudio.com/updates/v1_121) introduced
the `VSCODE_AGENT` environment variable, set for any agent-initiated
terminal command (Copilot Chat agent mode and other agent extensions).
This is the official signal for VS Code agent usage.

The previous heuristic detected `COPILOT_MODEL` and reported
`copilot-vscode`, but `COPILOT_MODEL` is actually set by Copilot CLI
users who bring their own key, not specifically by VS Code. This
produced false positives and required a BYOK collapse workaround (drop
`copilot-vscode` whenever `COPILOT_CLI` was also set). Over the last 13
weeks, the heuristic identified 3 users / 52 events; `copilot-cli` saw
539 users / 175k events. The signal was effectively dead.

## Changes

- Add `VSCODE_AGENT` to `_KNOWN_AGENTS`, reported as
`agent/vscode-agent`.
- Remove the `COPILOT_MODEL` to `copilot-vscode` mapping.
- Remove the BYOK collapse logic. `VSCODE_AGENT` can legitimately stack
with `COPILOT_CLI` (e.g. running Copilot CLI from a VS Code agent
terminal), so the multi-agent path covers it without special handling.

## Tests

- [x] Updated `tests/test_user_agent.py`: new `vscode-agent` case,
`VSCODE_AGENT + COPILOT_CLI` stacks to `multiple`.
- [x] `pytest tests/test_user_agent.py` passes (42 tests).
- [x] `make fmt` clean.

This PR mirrors parallel changes in
[databricks-sdk-go](databricks/databricks-sdk-go#1697),
[databricks-sdk-java](databricks/databricks-sdk-java#810),
and [sdk-js](databricks/sdk-js#152).

NO_CHANGELOG=true
@pull pull Bot locked and limited conversation to collaborators May 30, 2026
@pull pull Bot added the ⤵️ pull label May 30, 2026
@pull pull Bot merged commit 6235813 into Future-Outlier:main May 30, 2026
@pull pull Bot had a problem deploying to test-trigger-is May 30, 2026 15:18 Failure
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant