mirror of
https://github.com/openai/codex.git
synced 2026-09-13 11:47:17 +00:00
remove session-scoped approval option for patches; update command approve label to B variant
This commit is contained in:
@@ -80,14 +80,14 @@ export function TerminalChatCommandReview({
|
||||
| { label: string; value: "switch" }
|
||||
> = [
|
||||
{
|
||||
label: "Yes (y)",
|
||||
label: "Yes, run this command (y)",
|
||||
value: ReviewDecision.YES,
|
||||
},
|
||||
];
|
||||
|
||||
if (showAlwaysApprove) {
|
||||
opts.push({
|
||||
label: "Yes, always approve this exact patch for this session (a)",
|
||||
label: "Yes, apply this patch (a)",
|
||||
value: ReviewDecision.ALWAYS,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -58,17 +58,11 @@ struct SelectOption {
|
||||
// keep in same order as in the TS implementation
|
||||
const SELECT_OPTIONS: &[SelectOption] = &[
|
||||
SelectOption {
|
||||
label: "Yes (y)",
|
||||
label: "Yes, run this command (y)",
|
||||
decision: Some(ReviewDecision::Approved),
|
||||
|
||||
enters_input_mode: false,
|
||||
},
|
||||
SelectOption {
|
||||
label: "Yes, always approve this exact patch for this session (a)",
|
||||
decision: Some(ReviewDecision::ApprovedForSession),
|
||||
|
||||
enters_input_mode: false,
|
||||
},
|
||||
SelectOption {
|
||||
label: "Edit or give feedback (e)",
|
||||
decision: None,
|
||||
|
||||
Reference in New Issue
Block a user