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(
706706 "Tool execution denied" ,
707707 ) )
708708 . await ;
709- ctx. set_state ( AgentState :: WaitingResponse , "tool_deny" )
709+ ctx. set_state ( AgentState :: WaitingUserPrompt , "tool_deny" )
710710 . await ;
711711 }
712712 ConfirmToolResponse :: AlwaysApprove => {
Original file line number Diff line number Diff line change @@ -521,10 +521,12 @@ impl App<'_> {
521521 . agent_sender
522522 . send ( AgentControlEvent :: ConfirmTool ( ConfirmToolResponse :: Approve ) )
523523 . 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+ }
528530 KeyCode :: Char ( 'a' ) | KeyCode :: Char ( 'A' ) => self
529531 . agent_sender
530532 . send ( AgentControlEvent :: ConfirmTool (
You can’t perform that action at this time.
0 commit comments