fix(ui): use custom ConfirmDialog for deletions to prevent input blocking on Windows (#282)

This commit is contained in:
paisley
2026-03-04 11:38:16 +08:00
committed by GitHub
Unverified
parent 828cae0186
commit 5049709c5d
5 changed files with 166 additions and 23 deletions

View File

@@ -89,6 +89,13 @@ export function ChatInput({ onSend, onStop, disabled = false, sending = false }:
}
}, [input]);
// Focus textarea on mount (avoids Windows focus loss after session delete + native dialog)
useEffect(() => {
if (!disabled && textareaRef.current) {
textareaRef.current.focus();
}
}, []);
// ── File staging via native dialog ─────────────────────────────
const pickFiles = useCallback(async () => {