Gate Claude SDK stream trace logs behind PASEO_CLAUDE_DEBUG

Per-token trace logs from the query pump fire twice per streaming event
and contribute to memory growth under heavy use. Gate them behind an
opt-in env var so they're available for debugging but silent by default.
This commit is contained in:
Mohamed Boudra
2026-04-10 10:05:13 +07:00
parent edfd2564a3
commit 9f09a19a09
2 changed files with 26 additions and 17 deletions

View File

@@ -18,3 +18,6 @@ PASEO_LISTEN=127.0.0.1:6767
# Debug recordings (dictation + STT input + TTS output)
# When enabled, recordings are saved under `${cwd}/.debug/recordings/`
PASEO_DICTATION_DEBUG=1
# Enable verbose Claude SDK stream logging (trace-level per-token logs)
PASEO_CLAUDE_DEBUG=1