wraith/frontend/components/terminal
Vantz Stockwell d74bb28960 fix: terminal never appears — pending session removed before WS connects
Root cause: TerminalInstance.onMounted() called sessions.removeSession()
on the pending session, dropping sessions.length to 0. SessionContainer's
v-if="hasSessions" went false, unmounting the entire terminal UI before
the WebSocket could establish and add the real session.

Fix: Added replaceSession() to session store. TerminalInstance no longer
removes the pending session — instead passes its ID to connectToHost(),
which swaps it in-place when the backend responds with the real session ID.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 11:08:34 -04:00
..
SplitPane.vue feat: Phase 2 — SSH terminal + SFTP sidebar in browser 2026-03-12 17:21:11 -04:00
TerminalInstance.vue fix: terminal never appears — pending session removed before WS connects 2026-03-13 11:08:34 -04:00
TerminalTabs.vue feat: Phase 2 — SSH terminal + SFTP sidebar in browser 2026-03-12 17:21:11 -04:00