File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -164,7 +164,6 @@ enum Action {
164164 // Tool approval
165165 ApproveTool ,
166166 DenyTool ,
167- ApproveToolSession ,
168167}
169168
170169/// Map a terminal event to an action based on the current input mode
@@ -236,7 +235,6 @@ fn map_key_tool_approval(key: KeyEvent) -> Option<Action> {
236235 match key. code {
237236 KeyCode :: Char ( 'y' ) | KeyCode :: Enter => Some ( Action :: ApproveTool ) ,
238237 KeyCode :: Char ( 'n' ) | KeyCode :: Esc => Some ( Action :: DenyTool ) ,
239- KeyCode :: Char ( 'a' ) => Some ( Action :: ApproveToolSession ) ,
240238 _ => None ,
241239 }
242240}
@@ -548,10 +546,6 @@ impl App {
548546 Action :: DenyTool => {
549547 self . decide_pending_tool ( ToolDecision :: Deny ) . await ;
550548 } ,
551- Action :: ApproveToolSession => {
552- // TODO: implement allow for session
553- self . decide_pending_tool ( ToolDecision :: Approve ) . await ;
554- } ,
555549 Action :: InsertChar ( c) => self . input . insert_char ( c) ,
556550 Action :: InsertNewline => self . input . insert_newline ( ) ,
557551 Action :: DeleteBack => self . input . delete_char ( ) ,
Original file line number Diff line number Diff line change @@ -331,14 +331,7 @@ pub fn render_approval_prompt() -> Line<'static> {
331331 . fg( Color :: Red )
332332 . add_modifier( Modifier :: BOLD ) ,
333333 ) ,
334- Span :: styled( "]o [" , Style :: default ( ) . fg( Color :: DarkGray ) ) ,
335- Span :: styled(
336- "a" ,
337- Style :: default ( )
338- . fg( Color :: Cyan )
339- . add_modifier( Modifier :: BOLD ) ,
340- ) ,
341- Span :: styled( "]lways" , Style :: default ( ) . fg( Color :: DarkGray ) ) ,
334+ Span :: styled( "]o" , Style :: default ( ) . fg( Color :: DarkGray ) ) ,
342335 ] )
343336}
344337
You can’t perform that action at this time.
0 commit comments