fix: local tui mode routes console logging to a file and disables download progress bars so stray output cannot scroll the TUI

This commit is contained in:
2026-07-16 18:39:07 +02:00
parent 9a1f301527
commit 3675a26407
4 changed files with 145 additions and 8 deletions

View File

@@ -2,8 +2,11 @@ import Config
# Headless boots (BDS_MODE=server/tui, or desktop mode without a graphical
# display — issue #33) must neuter wx before the :desktop dependency
# application starts it and crashes the VM. Runtime config is the only hook
# that runs before dependency applications start.
# application starts it and crashes the VM. Local tui mode additionally
# silences all other terminal writers (console logging goes to a file,
# model-download progress bars are disabled) — the TUI owns the terminal
# and every stray line scrolls its rendering up one row. Runtime config is
# the only hook that runs before dependency applications start.
BDS.Server.prepare_boot_env()
if config_env() == :prod do