fix: clients sync to server terminals instead of creating new ones

- Remove auto-creation of terminal sessions from init/selectSession/switchAgent
- Clients only connect to existing alive terminals from server registry
- Remove localStorage persistence (agent/sessionId) — state derived from server
- Refine session-state types: new AgentStatus values, LastError interface
- UI improvements: AgentBadge, ChatContainer, UserInput, BashCard updates
- Simplify claude-hook routes, update session-state service
This commit is contained in:
2026-02-20 22:26:17 -06:00
parent 653c4e6d23
commit a6c68f1b9e
17 changed files with 1036 additions and 189 deletions

View File

@@ -20,6 +20,7 @@ const {
processing,
ephemeral,
terminalReady,
hookMeta,
init,
switchAgent,
selectSession,
@@ -144,6 +145,7 @@ onUnmounted(() => {
:voice-transcript="voiceTranscript + voiceInterim"
:last-audio-url="lastAudioUrl"
:is-playing-audio="isPlayingAudio"
:hook-permission-mode="hookMeta.permissionMode"
@send="handleSend"
@create-session="handleCreateSession"
@start-recording="voice.startRecording()"