Add the ability to interrupt and provide feedback to the model (#2381)

This commit is contained in:
easong-openai
2025-08-22 20:34:43 -07:00
committed by GitHub
parent e3b03eaccb
commit 09819d9b47
2 changed files with 31 additions and 1 deletions

View File

@@ -74,6 +74,17 @@ static COMMAND_SELECT_OPTIONS: LazyLock<Vec<SelectOption>> = LazyLock::new(|| {
key: KeyCode::Char('n'),
decision: ReviewDecision::Denied,
},
SelectOption {
label: Line::from(vec![
"No, ".into(),
"provide ".into(),
"f".underlined(),
"eedback".into(),
]),
description: "Do not run the command; provide feedback",
key: KeyCode::Char('f'),
decision: ReviewDecision::Abort,
},
]
});
@@ -91,6 +102,17 @@ static PATCH_SELECT_OPTIONS: LazyLock<Vec<SelectOption>> = LazyLock::new(|| {
key: KeyCode::Char('n'),
decision: ReviewDecision::Denied,
},
SelectOption {
label: Line::from(vec![
"No, ".into(),
"provide ".into(),
"f".underlined(),
"eedback".into(),
]),
description: "Do not apply the changes; provide feedback",
key: KeyCode::Char('f'),
decision: ReviewDecision::Abort,
},
]
});