Summary
PR #1776 ("fix: stop RUST_LOG from leaking tracing messages into TUI alt-screen on Windows") was submitted with two commits:
- MERGED �
1874359a fix: stop RUST_LOG from leaking tracing messages into TUI alt-screen on Windows (changes logging.rs)
- NOT MERGED �
fix: suppress verbose CLI logging on Windows alt-screen to prevent TUI leak (changes crates/tui/src/tui/ui.rs)
The maintainer merged the first commit but closed PR #1776 without merging the second, critical commit.
Why this is urgent
On Windows, stderr cannot be redirected to the log file via dup2 (no Unix-style fd redirection). Even after the RUST_LOG fix, eprintln! calls from crate::logging still leak into the TUI alt-screen buffer when --verbose or DEEPSEEK_LOG_LEVEL=debug is used, because the verbose flag is never suppressed on alt-screen entry.
What the missing commit does
The missing commit (submitted in PR #1910) calls crate::logging::set_verbose(false) at two points:
- In
run_tui() � right after EnterAlternateScreen, so verbose logging is suppressed for the entire TUI session.
- In
resume_terminal() � right after re-entering alt-screen during terminal recovery, so the suppression holds across suspend/resume cycles.
This ensures that on Windows, where stderr redirection is unavailable, verbose CLI output does not corrupt the alt-screen display.
Related
Summary
PR #1776 ("fix: stop RUST_LOG from leaking tracing messages into TUI alt-screen on Windows") was submitted with two commits:
1874359afix: stop RUST_LOG from leaking tracing messages into TUI alt-screen on Windows(changeslogging.rs)fix: suppress verbose CLI logging on Windows alt-screen to prevent TUI leak(changescrates/tui/src/tui/ui.rs)The maintainer merged the first commit but closed PR #1776 without merging the second, critical commit.
Why this is urgent
On Windows,
stderrcannot be redirected to the log file viadup2(no Unix-style fd redirection). Even after theRUST_LOGfix,eprintln!calls fromcrate::loggingstill leak into the TUI alt-screen buffer when--verboseorDEEPSEEK_LOG_LEVEL=debugis used, because theverboseflag is never suppressed on alt-screen entry.What the missing commit does
The missing commit (submitted in PR #1910) calls
crate::logging::set_verbose(false)at two points:run_tui()� right afterEnterAlternateScreen, so verbose logging is suppressed for the entire TUI session.resume_terminal()� right after re-entering alt-screen during terminal recovery, so the suppression holds across suspend/resume cycles.This ensures that on Windows, where stderr redirection is unavailable, verbose CLI output does not corrupt the alt-screen display.
Related