Merge pull request #967 from rechardguo/main

Fix issue #964: Prevent starting terminal if already starting
This commit is contained in:
程序员阿江-Relakkes 2026-07-03 20:00:47 +08:00 committed by GitHub
commit a94e1a1694
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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