Fix Terminal State!
Release rolling / release (push) Has been cancelled

This commit is contained in:
Raven Scott
2026-07-16 14:06:57 -04:00
parent 2663464fcb
commit 55421cdecd
3 changed files with 412 additions and 227 deletions
+4
View File
@@ -363,9 +363,13 @@ export function registerTerminalHandlers(session) {
const sessions = getSessions(session)
const sessionId = resolveSessionId(args)
// Always clear any prior PTY for this id/container before opening a new one.
// Prevents races where a late killTerminal and a re-entry startTerminal overlap,
// and avoids "stuck" sessions when the client re-enters the Terminal tab.
if (sessions.has(sessionId)) {
endOne(sessions, sessionId)
}
cleanupTerminalsForContainer(session, containerId)
const useTty = args.tty !== false
const shellCandidates = buildShellCandidates(args)