From 3a342e657eddcbaf4b687d02a6a946bdf8d7c4c2 Mon Sep 17 00:00:00 2001 From: bendtherules Date: Fri, 13 Mar 2026 00:12:02 +0530 Subject: [PATCH] build: add tmux kill-session to cleanup command --- .opencode/tools/multi-model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.opencode/tools/multi-model.ts b/.opencode/tools/multi-model.ts index c72bb32..46e48a4 100644 --- a/.opencode/tools/multi-model.ts +++ b/.opencode/tools/multi-model.ts @@ -455,7 +455,7 @@ export default tool({ } const attachCommand = `tmux attach -t ${sessionName}`; - const cleanupCommand = `rm -rf ~/.local/share/opencode/multi-model/${safeSessionName} && git worktree prune && git branch -D $(git branch --format='%(refname:short)' --list 'opencode/${safeSessionName}/*')`; + const cleanupCommand = `tmux kill-session -t ${sessionName} && rm -rf ~/.local/share/opencode/multi-model/${safeSessionName} && git worktree prune && git branch -D $(git branch --format='%(refname:short)' --list 'opencode/${safeSessionName}/*')`; context.metadata({ title: `multi-model ${sessionName}`,