Skip to content

Fix CLI -d flag to set SRT_DEBUG instead of DEBUG#208

Open
hattori7243 wants to merge 1 commit intoanthropic-experimental:mainfrom
hattori7243:fix/debug-env-var
Open

Fix CLI -d flag to set SRT_DEBUG instead of DEBUG#208
hattori7243 wants to merge 1 commit intoanthropic-experimental:mainfrom
hattori7243:fix/debug-env-var

Conversation

@hattori7243
Copy link
Copy Markdown

Summary

  • Fix the -d/--debug flag to set SRT_DEBUG instead of DEBUG

Problem

The CLI's -d/--debug flag sets process.env.DEBUG, but logForDebugging() checks process.env.SRT_DEBUG. This means the debug flag never actually enabled debug logging.

This was intentional — SRT_DEBUG is used instead of DEBUG to avoid conflicts with other tools ( but the CLI flag was never updated to match.

Test plan

  • Verify srt -d echo hello now shows [SandboxDebug] prefixed output on stderr
  • Verify existing tests still pass (bun test test/cli.test.ts)

The -d/--debug flag was setting `process.env.DEBUG` but `logForDebugging()`
checks `process.env.SRT_DEBUG`, so the flag never actually enabled
debug logging.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant