feat: add option to disable archive tags

This commit is contained in:
2026-03-21 01:27:43 +05:30
parent f0cc07f513
commit 7180569b87
5 changed files with 40 additions and 11 deletions
+2
View File
@@ -12,12 +12,14 @@ export const closeTool = tool({
args: {
sessionName: tool.schema.string().min(1).describe("tmux session name to close"),
cleanupWorktrees: tool.schema.boolean().default(true).describe("whether to remove worktrees and delete branches (default: true)"),
createArchiveTags: tool.schema.boolean().default(true).describe("whether to create archive tags before deleting branches (default: true)"),
},
async execute(args, context) {
// In plugin mode, we skip confirmation (force=true) since there's no interactive terminal
const result = await closeMultiModel({
sessionName: args.sessionName,
cleanupWorktrees: args.cleanupWorktrees,
createArchiveTags: args.createArchiveTags,
force: true,
});