build: add tmux kill-session to cleanup command

This commit is contained in:
2026-03-13 00:12:02 +05:30
parent 41c00d75b5
commit 3a342e657e
+1 -1
View File
@@ -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}`,