merge #130: drag-release bounce, session-delete terminal cleanup, silent resize (chalei1122-cell)

# Conflicts:
#	src/client/Sidebar.tsx
This commit is contained in:
HuanLinOTO
2026-08-24 01:33:44 +08:00
3 changed files with 17 additions and 4 deletions
+7
View File
@@ -935,6 +935,13 @@ export function apply(ctx: Context, config?: SidebarConfig): void {
wss.close()
agentListWss.close()
}, 'dsh-better-sidebar: teardown')
// Close all UI terminals of a session when the conversation is deleted —
// terminals follow the session, not the reconnect grace. Agent terminals
// are owned by the agent lifecycle and are not touched here.
ctx.on('session/disposed', (session) => {
try { ptyManager.closeSession(session?.id) } catch {}
}, { global: true })
}
/** Push the live agent-terminal list for one session to a connected sidebar view. */