fix: patch OOM issue (#112)

This commit is contained in:
Charles Packer
2025-11-21 18:58:19 -08:00
committed by GitHub
parent 10d8a2a97c
commit 6111410bf6
2 changed files with 138 additions and 89 deletions

View File

@@ -288,6 +288,8 @@ export const ApprovalDialog = memo(function ApprovalDialog({
}, [progress, approvalContext, onApproveAll, onApproveAlways]);
useInput((_input, key) => {
if (isExecuting) return;
if (isEnteringReason) {
// When entering reason, only handle enter/escape
if (key.return) {