fix(coding-agent): preserve retry shortcut precedence

This commit is contained in:
KamijoToma
2026-06-18 02:43:09 +08:00
parent 895cd6f157
commit 3dd95e081e
2 changed files with 21 additions and 1 deletions
@@ -586,8 +586,15 @@ export class CustomEditor extends Editor {
return;
}
// Intercept configured retry shortcut
// Intercept configured retry shortcut. Later user/custom handlers keep
// precedence so adding the default Alt+R binding does not steal existing
// shortcuts such as app.plan.toggle or extension commands.
if (this.#matchesAction(canonical, "app.retry") && this.onRetry) {
const customHandler = this.#customMatchKeys.get(canonical);
if (customHandler) {
customHandler();
return;
}
this.onRetry();
return;
}