タスク完了後のクローン削除を廃止(/review で cleanup)
This commit is contained in:
parent
84b5ad7d17
commit
f942d6dd09
@ -36,7 +36,7 @@ import {
|
||||
} from './commands/index.js';
|
||||
import { listWorkflows } from './config/workflowLoader.js';
|
||||
import { selectOptionWithDefault, confirm } from './prompt/index.js';
|
||||
import { createSharedClone, removeClone, removeCloneMeta } from './task/clone.js';
|
||||
import { createSharedClone } from './task/clone.js';
|
||||
import { autoCommitAndPush } from './task/autoCommit.js';
|
||||
import { summarizeTaskName } from './task/summarize.js';
|
||||
import { DEFAULT_WORKFLOW_NAME } from './constants.js';
|
||||
@ -237,12 +237,6 @@ program
|
||||
}
|
||||
}
|
||||
|
||||
// Remove clone after task completion (success or failure)
|
||||
if (isWorktree) {
|
||||
removeClone(execCwd);
|
||||
if (branch) removeCloneMeta(cwd, branch);
|
||||
}
|
||||
|
||||
if (!taskSuccess) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
|
||||
import { loadWorkflow, loadGlobalConfig } from '../config/index.js';
|
||||
import { TaskRunner, type TaskInfo } from '../task/index.js';
|
||||
import { createSharedClone, removeClone, removeCloneMeta } from '../task/clone.js';
|
||||
import { createSharedClone } from '../task/clone.js';
|
||||
import { autoCommitAndPush } from '../task/autoCommit.js';
|
||||
import { summarizeTaskName } from '../task/summarize.js';
|
||||
import {
|
||||
@ -89,12 +89,6 @@ export async function executeAndCompleteTask(
|
||||
}
|
||||
}
|
||||
|
||||
// Remove clone after task completion (success or failure)
|
||||
if (isWorktree) {
|
||||
removeClone(execCwd);
|
||||
if (branch) removeCloneMeta(cwd, branch);
|
||||
}
|
||||
|
||||
const taskResult = {
|
||||
task,
|
||||
success: taskSuccess,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user