Rename IS_CODE_AGENT -> AGENT

This commit is contained in:
Jarred Sumner
2025-07-19 03:59:43 -07:00
parent 1a9bc5da09
commit eb0b0db8fd
2 changed files with 2 additions and 3 deletions

View File

@@ -258,7 +258,7 @@ Set any of the following environment variables to enable AI-friendly output:
- `CLAUDECODE=1` - For Claude Code
- `REPL_ID=1` - For Replit
- `IS_CODE_AGENT=1` - Generic AI agent flag
- `AGENT=1` - Generic AI agent flag
### Behavior
@@ -267,7 +267,6 @@ When an AI agent environment is detected:
- Only test failures are displayed in detail
- Passing, skipped, and todo test indicators are hidden
- Summary statistics remain intact
- JUnit XML reporting is preserved
```bash
# Example: Enable quiet output for Claude Code

View File

@@ -468,7 +468,7 @@ pub fn isAIAgent() bool {
const get_is_agent = struct {
var value = false;
fn evaluate() bool {
if (bun.getenvZ("IS_CODE_AGENT")) |env| {
if (bun.getenvZ("AGENT")) |env| {
return strings.eqlComptime(env, "1");
}