File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -796,13 +796,6 @@ impl ChatContext {
796
796
self . draw_tip_box ( tip) ?;
797
797
}
798
798
799
- // update the current tip index
800
- let next_tip_index = ( current_tip_index + 1 ) % ROTATING_TIPS . len ( ) ;
801
- self . state
802
- . set_value ( "chat.greeting.rotating_tips_current_index" , next_tip_index) ?;
803
- }
804
-
805
- if self . interactive {
806
799
execute ! (
807
800
self . output,
808
801
style:: Print ( if is_small_screen {
@@ -817,7 +810,13 @@ impl ChatContext {
817
810
)
818
811
) ?;
819
812
execute ! ( self . output, style:: Print ( "\n " ) , style:: SetForegroundColor ( Color :: Reset ) ) ?;
813
+
814
+ // update the current tip index
815
+ let next_tip_index = ( current_tip_index + 1 ) % ROTATING_TIPS . len ( ) ;
816
+ self . state
817
+ . set_value ( "chat.greeting.rotating_tips_current_index" , next_tip_index) ?;
820
818
}
819
+
821
820
if self . interactive && self . all_tools_trusted ( ) {
822
821
queue ! (
823
822
self . output,
You can’t perform that action at this time.
0 commit comments