Commit e9c4eaa
committed
Address review feedback on agent detection
- Add NEXT_CHANGELOG.md entry covering the expanded agent list, the
AGENT standard, and the empty-string semantics change.
- When the main matcher loop finds no match and AGENT is set to a known
product name, return that product name instead of "unknown" (implicit
known-product fallback). Known matchers still win over the fallback,
so AGENT=cursor + CLAUDECODE=1 still yields claude-code.
- Restore alphabetical ordering: openclaw before opencode.
- Add provenance comments on new agent entries (goose, amp, augment,
copilot-vscode, kiro, windsurf).
- New tests: testAgentProviderAgentEnvAmp, testAgentProviderAgentEnvCursor,
testAgentProviderKnownMatcherWinsOverAgentFallback.
Co-authored-by: Isaac
Signed-off-by: simon <simon.faltum@databricks.com>1 parent 14282c0 commit e9c4eaa
3 files changed
Lines changed: 70 additions & 13 deletions
File tree
- databricks-sdk-java/src
- main/java/com/databricks/sdk/core
- test/java/com/databricks/sdk/core
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
Lines changed: 30 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
| 302 | + | |
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
305 | 306 | | |
306 | | - | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
307 | 311 | | |
308 | 312 | | |
309 | 313 | | |
| |||
320 | 324 | | |
321 | 325 | | |
322 | 326 | | |
| 327 | + | |
323 | 328 | | |
324 | | - | |
325 | | - | |
| 329 | + | |
326 | 330 | | |
327 | 331 | | |
328 | 332 | | |
| |||
332 | 336 | | |
333 | 337 | | |
334 | 338 | | |
335 | | - | |
336 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
337 | 348 | | |
338 | 349 | | |
339 | 350 | | |
340 | 351 | | |
341 | 352 | | |
342 | | - | |
| 353 | + | |
343 | 354 | | |
344 | | - | |
345 | | - | |
| 355 | + | |
346 | 356 | | |
347 | 357 | | |
348 | 358 | | |
| |||
352 | 362 | | |
353 | 363 | | |
354 | 364 | | |
355 | | - | |
| 365 | + | |
| 366 | + | |
356 | 367 | | |
357 | 368 | | |
358 | 369 | | |
359 | | - | |
| 370 | + | |
| 371 | + | |
360 | 372 | | |
| 373 | + | |
361 | 374 | | |
362 | 375 | | |
363 | | - | |
| 376 | + | |
364 | 377 | | |
365 | 378 | | |
366 | 379 | | |
| |||
375 | 388 | | |
376 | 389 | | |
377 | 390 | | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
378 | 396 | | |
379 | 397 | | |
380 | 398 | | |
| |||
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
298 | 337 | | |
299 | 338 | | |
300 | 339 | | |
| |||
0 commit comments