File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -706,7 +706,7 @@ async fn handle_control_events(
706
706
"Tool execution denied" ,
707
707
) )
708
708
. await ;
709
- ctx. set_state ( AgentState :: WaitingResponse , "tool_deny" )
709
+ ctx. set_state ( AgentState :: WaitingUserPrompt , "tool_deny" )
710
710
. await ;
711
711
}
712
712
ConfirmToolResponse :: AlwaysApprove => {
Original file line number Diff line number Diff line change @@ -521,10 +521,12 @@ impl App<'_> {
521
521
. agent_sender
522
522
. send ( AgentControlEvent :: ConfirmTool ( ConfirmToolResponse :: Approve ) )
523
523
. unwrap ( ) ,
524
- KeyCode :: Esc => self
525
- . agent_sender
526
- . send ( AgentControlEvent :: ConfirmTool ( ConfirmToolResponse :: Deny ) )
527
- . unwrap ( ) ,
524
+ KeyCode :: Esc => {
525
+ self . agent_sender
526
+ . send ( AgentControlEvent :: ConfirmTool ( ConfirmToolResponse :: Deny ) )
527
+ . unwrap ( ) ;
528
+ self . ui . focus = FocusedComponent :: Input ;
529
+ }
528
530
KeyCode :: Char ( 'a' ) | KeyCode :: Char ( 'A' ) => self
529
531
. agent_sender
530
532
. send ( AgentControlEvent :: ConfirmTool (
You can’t perform that action at this time.
0 commit comments