fix(app): terminal issues (#14435)

This commit is contained in:
Adam 2026-02-20 07:34:36 -06:00 committed by GitHub
commit 4e9ef3ecc1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 91 additions and 24 deletions

View file

@ -540,7 +540,7 @@ export const Terminal = (props: TerminalProps) => {
disposed = true
if (fitFrame !== undefined) cancelAnimationFrame(fitFrame)
if (sizeTimer !== undefined) clearTimeout(sizeTimer)
if (ws && ws.readyState !== WebSocket.CLOSED && ws.readyState !== WebSocket.CLOSING) ws.close()
if (ws && ws.readyState !== WebSocket.CLOSED && ws.readyState !== WebSocket.CLOSING) ws.close(1000)
const finalize = () => {
persistTerminal({ term, addon: serializeAddon, cursor, pty: local.pty, onCleanup: props.onCleanup })