fix: --task オプションでの直接実行時に tasks.yaml へ記録されないようにする

This commit is contained in:
nrslib 2026-02-24 23:51:12 +09:00
parent 6bea78adb4
commit 8372721607

View File

@ -125,6 +125,7 @@ export async function executeDefaultAction(task?: string): Promise<void> {
// Resolve --task option to task text (direct execution, no interactive mode)
const taskFromOption = opts.task as string | undefined;
if (taskFromOption) {
selectOptions.skipTaskList = true;
await selectAndExecuteTask(resolvedCwd, taskFromOption, selectOptions, agentOverrides);
return;
}