{"record":{"id":"febcc8058af299e1","repo":"coleam00/Archon","slug":"resume-and-input-are-mutually-exclusive-a-r","errorCode":null,"errorMessage":"--resume and --input are mutually exclusive.\n  A resume replays the original invocation's inputs, recorded on the run.\n  Drop --input to resume, or start a fresh run to supply different values.","messagePattern":"--resume and --input are mutually exclusive\\.\n  A resume replays the original invocation's inputs, recorded on the run\\.\n  Drop --input to resume, or start a fresh run to supply different values\\.","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/commands/workflow.ts","lineNumber":1847,"sourceCode":"    throw new Error(\n      '--from/--from-branch has no effect with --no-worktree.\\n' +\n        'Remove --from or drop --no-worktree.'\n    );\n  }\n  if (options.noWorktree && options.baseBranch !== undefined) {\n    throw new Error(\n      '--base has no effect with --no-worktree.\\n' + 'Remove --base or drop --no-worktree.'\n    );\n  }\n  if (options.resume && options.branchName !== undefined) {\n    throw new Error(\n      '--resume and --branch are mutually exclusive.\\n' +\n        '  --resume reuses the existing worktree from the failed run.\\n' +\n        '  Remove --branch when using --resume.'\n    );\n  }\n  if (options.resume && options.inputs !== undefined && options.inputs.length > 0) {\n    throw new Error(\n      '--resume and --input are mutually exclusive.\\n' +\n        \"  A resume replays the original invocation's inputs, recorded on the run.\\n\" +\n        '  Drop --input to resume, or start a fresh run to supply different values.'\n    );\n  }\n\n  // Between-run continuation (#2747): adoption dictates the lane itself, so the\n  // lane-choosing flags are refused rather than silently overridden.\n  if (options.adoptRunId !== undefined) {\n    const conflicts: string[] = [];\n    if (options.resume) conflicts.push('--resume');\n    if (options.branchName !== undefined) conflicts.push('--branch');\n    if (options.fromBranch !== undefined) conflicts.push('--from/--from-branch');\n    if (options.baseBranch !== undefined) conflicts.push('--base');\n    if (options.noWorktree) conflicts.push('--no-worktree');\n    if (conflicts.length > 0) {\n      throw new Error(\n        `--adopt and ${conflicts.join('/')} are mutually exclusive.\\n` +","sourceCodeStart":1829,"sourceCodeEnd":1865,"githubUrl":"https://github.com/coleam00/Archon/blob/0773b9745896ef0612e709c80845a0f7db315b19/packages/cli/src/commands/workflow.ts#L1829-L1865","documentation":"The workflow-start preflight rejects `--resume` combined with non-empty `--input` values. A resume replays the inputs recorded on the original run record, so supplying new inputs would create ambiguity about which values the resumed run should use. The CLI fails loudly rather than picking one side.","triggerScenarios":"`archon workflow start <name> --resume --input key=value ...` — any resume where options.inputs contains at least one entry.","commonSituations":"Trying to 're-run with tweaked parameters' using `--resume`; misunderstanding that resume replays original inputs and is not a parameterized re-execution.","solutions":["Drop the `--input` flags if you want the original invocation's inputs replayed.","Start a fresh run (no `--resume`) and supply the new `--input` values there if you need different parameters."],"exampleFix":"// before\narchon workflow start code-review --resume --input pr=42\n// after (replay original inputs)\narchon workflow start code-review --resume\n// after (new inputs require a fresh run)\narchon workflow start code-review --input pr=42","handlingStrategy":"validation","validationCode":"if (args.includes('--resume') && args.some(a => a.startsWith('--input'))) {\n  throw new Error('--resume replays recorded inputs; use a fresh run for new inputs.');\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Decide up front: resume = same inputs, fresh run = new inputs.","For parameter sweeps, script fresh runs instead of mutating resume commands."],"tags":["cli","flag-conflict","resume","inputs"],"backgroundTag":"mutually-exclusive-flags","analyzedSha":"0773b9745896ef0612e709c80845a0f7db315b19","analyzedAt":"2026-09-01T02:28:07.064Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T05:18:18.240Z"}