Fix issue #964: Prevent starting terminal if already starting

This commit is contained in:
rechard-guo 2026-07-03 17:55:46 +08:00
parent 6e6c87aa16
commit ee026bc85f

View File

@ -151,6 +151,9 @@ export function TerminalSettings({
}, [runtime])
const startTerminal = useCallback(async () => {
if (runtime.status === 'starting') return
if (!terminalApi.isAvailable()) {
updateTerminalRuntime(runtime, { status: 'unavailable' })
return