Commit 35c3c2d
Move RichOutputManager to separate module to avoid rich imports
This change:
- Creates _rich_output.py with all rich-dependent code (RichOutputManager,
ProgressHandler, get_app_logs_loop, etc.)
- Keeps _output.py with just the interface, DisabledOutputManager, and StatusRow
- Updates output.py to cache the output manager at module level instead of
using a singleton on the class
- Updates all imports to use _rich_output.py for make_console, ProgressHandler,
and RichOutputManager
- Adds _disable_output_manager() to allow PTY mode to disable output, ensuring
"App completed" message is not printed after PTY mode ends
This allows code to avoid importing rich when output is disabled, as the
rich library is only imported when RichOutputManager is actually needed.1 parent 25eacb7 commit 35c3c2d
23 files changed
Lines changed: 787 additions & 778 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
0 commit comments