You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,8 @@ DiffEngine manages launching and cleanup of diff tools. It is designed to be use
47
47
*[File type detection](#file-type-detection)
48
48
*[BuildServerDetector](#buildserverdetector)
49
49
*[Override in tests](#override-in-tests)
50
-
*[AiCliDetector](#aiclidetector)
50
+
*[Automatic AI detection](#automatic-ai-detection)
51
+
*[Programmatic usage](#programmatic-usage)
51
52
*[Disable for a machine/process](#disable-for-a-machineprocess)
52
53
*[Disable in code](#disable-in-code)
53
54
*[Icons](#icons)<!-- endToc -->
@@ -208,16 +209,21 @@ public async Task SetDetectedDoesNotLeakToOtherContexts()
208
209
<!-- endSnippet -->
209
210
210
211
211
-
## AiCliDetector
212
+
## Automatic AI detection
212
213
213
-
`AiCliDetector.Detected` returns true if the current code is running in an AI-powered CLI environment.
214
+
DiffEngine automatically detects when it is running inside an AI-powered CLI environment and disables the diff tool launch. This means no `DiffEngine_Disabled=true` environment variable is required when running tests from within an AI CLI — it is detected and handled automatically.
0 commit comments