File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -789,20 +789,22 @@ impl ChatContext {
789
789
. set_value ( "chat.greeting.rotating_tips_current_index" , next_tip_index) ?;
790
790
}
791
791
792
- execute ! (
793
- self . output,
794
- style:: Print ( if is_small_screen {
795
- SMALL_SCREEN_POPULAR_SHORTCUTS
796
- } else {
797
- POPULAR_SHORTCUTS
798
- } ) ,
799
- style:: Print (
800
- "━"
801
- . repeat( if is_small_screen { 0 } else { GREETING_BREAK_POINT } )
802
- . dark_grey( )
803
- )
804
- ) ?;
805
- execute ! ( self . output, style:: Print ( "\n " ) , style:: SetForegroundColor ( Color :: Reset ) ) ?;
792
+ if self . interactive {
793
+ execute ! (
794
+ self . output,
795
+ style:: Print ( if is_small_screen {
796
+ SMALL_SCREEN_POPULAR_SHORTCUTS
797
+ } else {
798
+ POPULAR_SHORTCUTS
799
+ } ) ,
800
+ style:: Print (
801
+ "━"
802
+ . repeat( if is_small_screen { 0 } else { GREETING_BREAK_POINT } )
803
+ . dark_grey( )
804
+ )
805
+ ) ?;
806
+ execute ! ( self . output, style:: Print ( "\n " ) , style:: SetForegroundColor ( Color :: Reset ) ) ?;
807
+ }
806
808
if self . interactive && self . all_tools_trusted ( ) {
807
809
queue ! (
808
810
self . output,
You can’t perform that action at this time.
0 commit comments