@@ -161,6 +161,9 @@ def _get_config(self):
161161 # Continue with empty config, will apply defaults below
162162
163163 # Ensure config has a colors entry with nested structure matching BASE_THEME
164+ if "banner" not in config :
165+ config ["banner" ] = True
166+
164167 if "colors" not in config :
165168 config ["colors" ] = {}
166169
@@ -296,7 +299,13 @@ def on_mount(self):
296299 """Called when app starts."""
297300 # Show startup banner
298301 output_container = self .query_one ("#output" , OutputContainer )
299- output_container .add_output (self .BANNER , dim = False )
302+ if self .tui_config ["banner" ]:
303+ output_container .add_output (self .BANNER , dim = False )
304+ else :
305+ output_container .add_output (
306+ f"[bold { self .BANNER_COLORS [0 ]} ] [/bold { self .BANNER_COLORS [0 ]} ]" , dim = False
307+ )
308+
300309 self .begin_capture_print (output_container , stdout = True , stderr = True )
301310
302311 self .set_interval (0.05 , self .check_output_queue )
@@ -535,7 +544,13 @@ def action_clear_output(self):
535544 """Clear all output."""
536545 output_container = self .query_one ("#output" , OutputContainer )
537546 output_container .clear_output ()
538- output_container .add_output (self .BANNER , dim = False )
547+ if self .tui_config ["banner" ]:
548+ output_container .add_output (self .BANNER , dim = False )
549+ else :
550+ output_container .add_output (
551+ f"[bold { self .BANNER_COLORS [0 ]} ] [/bold { self .BANNER_COLORS [0 ]} ]" , dim = False
552+ )
553+
539554 self .worker .coder .show_announcements ()
540555
541556 def action_interrupt (self ):
0 commit comments