core-agent-ide/codex-cli/src/components
Scott Leibrand 9eeb78e54f
feat: allow switching approval modes when prompted to approve an edit/command (#400)
Implements https://github.com/openai/codex/issues/392

When the user is in suggest or auto-edit mode and gets an approval
request, they now have an option in the `Shell Command` dialog to:
`Switch approval mode (v)`

That option brings up the standard `Switch approval mode` dialog,
allowing the user to switch into the desired mode, then drops them back
to the `Shell Command` dialog's `Allow command?` prompt, allowing them
to approve the current command and let the agent continue doing the rest
of what it was doing without interruption.
```
╭────────────────────────────────────────────────────────
│Shell Command
│                          
│$ apply_patch << 'PATCH'    
│*** Begin Patch                      
│*** Update File: foo.txt          
│@@ -1 +1 @@                         
│-foo                                          
│+bar                                         
│*** End Patch                         
│PATCH                                    
│                                                
│                                                
│Allow command?                   
│                                                
│    Yes (y)                                
│    Explain this command (x) 
│    Edit or give feedback (e)  
│    Switch approval mode (v)
│    No, and keep going (n)    
│    No, and stop for now (esc)
╰────────────────────────────────────────────────────────╭────────────────────────────────────────────────────────
│ Switch approval mode      
│ Current mode: suggest  
│                                          
│                                          
│                                          
│ ❯ suggest                        
│   auto-edit                       
│   full-auto                        
│ type to search · enter to confirm · esc to cancel 
╰────────────────────────────────────────────────────────
```
2025-04-19 07:21:19 -07:00
..
chat feat: allow switching approval modes when prompted to approve an edit/command (#400) 2025-04-19 07:21:19 -07:00
onboarding Initial commit 2025-04-16 12:56:08 -04:00
select-input Fix: Change file name to start with small letter instead of captial l… (#356) 2025-04-18 16:55:49 -07:00
vendor Fix handling of Shift+Enter in e.g. Ghostty (#338) 2025-04-18 09:19:06 -07:00
approval-mode-overlay.tsx Initial commit 2025-04-16 12:56:08 -04:00
help-overlay.tsx feat: add /bug report command (#312) 2025-04-18 14:09:35 -07:00
history-overlay.tsx Initial commit 2025-04-16 12:56:08 -04:00
model-overlay.tsx Initial commit 2025-04-16 12:56:08 -04:00
singlepass-cli-app.tsx feat: add flex mode option for cost savings (#372) 2025-04-18 22:15:01 -07:00
typeahead-overlay.tsx fix: duplicated message on model change (#276) 2025-04-17 16:34:35 -07:00