remove session-scoped approval option for patches; update command approve label to B variant

This commit is contained in:
Rai (Michael Pokorny)
2025-06-24 16:57:40 -07:00
parent 8ff34a0108
commit d7d15f5fd3
2 changed files with 3 additions and 9 deletions

View File

@@ -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,
});
}

View File

@@ -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,