Skip to content

fix(tui): keep verbose progress from enabling stderr debug logs#31859

Open
xuezhaolan wants to merge 2 commits into
NousResearch:mainfrom
xuezhaolan:fix/tui-verbose-progress-no-stderr
Open

fix(tui): keep verbose progress from enabling stderr debug logs#31859
xuezhaolan wants to merge 2 commits into
NousResearch:mainfrom
xuezhaolan:fix/tui-verbose-progress-no-stderr

Conversation

@xuezhaolan

Copy link
Copy Markdown

Summary

  • keep TUI display.tool_progress: verbose scoped to structured tool-progress events
  • stop config.set verbose from toggling AIAgent.verbose_logging, which adds DEBUG logs to stderr and surfaces them as Activity gateway.stderr lines
  • update/add TUI gateway regressions for verbose config changes

Fixes #31372

Tests

  • python -m pytest -o addopts='' tests/test_tui_gateway_server.py -k 'verbose or config_set_fast'

Note: local full tests/test_tui_gateway_server.py run hit existing environment-dependent browser-launch assertion unrelated to this change; selected regression tests pass.

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists comp/tui Terminal UI (ui-tui/ + tui_gateway/) labels May 25, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Complements merged #31379 which fixed the CLI side. This PR addresses the remaining TUI-side bug where config.set verbose at line 4027 of tui_gateway/server.py still sets agent.verbose_logging = nv == "verbose", causing DEBUG logs to surface as Activity entries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tui Terminal UI (ui-tui/ + tui_gateway/) P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[TUI] backend DEBUG/INFO logs leak into Activity when display.tool_progress=verbose

2 participants