{"record":{"id":"f0924d1153c731c1","repo":"coleam00/Archon","slug":"resume-and-config-are-mutually-exclusive-a-re-f0924d","errorCode":null,"errorMessage":"--resume and --config are mutually exclusive. A resumed run keeps its original run config.","messagePattern":"--resume and --config are mutually exclusive\\. A resumed run keeps its original run config\\.","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/cli/src/commands/workflow.ts","lineNumber":1452,"sourceCode":"\n  let continuation: ResolvedContinuation | undefined;\n  if (continuationRun !== undefined) {\n    continuation = await resolveContinuationWorkflow(createWorkflowDeps(), continuationRun, cwd);\n  }\n\n  // A continuation never captures. With a record it reads that record (above); without\n  // one it is a run created before captures existed, and reads live source — the same\n  // legacy path the executor takes for it. Capturing here would freeze bytes the run\n  // never agreed to and still not make it deterministic.\n  const isContinuation = options.resume === true || continuationRun !== undefined;\n\n  const resolvedRunConfigPath = options.configPath\n    ? isAbsolute(options.configPath)\n      ? options.configPath\n      : join(cwd, options.configPath)\n    : undefined;\n  if (isContinuation && (resolvedRunConfigPath || options.detachedRunConfig)) {\n    throw new Error(RESUME_RUN_CONFIG_CONFLICT);\n  }\n  const runConfig = options.detachedRunConfig\n    ? {\n        ...options.detachedRunConfig,\n        layer: normalizeRunConfigSemantics(options.detachedRunConfig.layer),\n      }\n    : resolvedRunConfigPath\n      ? await loadWorkflowRunConfigFile(resolvedRunConfigPath)\n      : undefined;\n\n  // The row a detached parent created before forking (#2872). Loaded up front because\n  // it decides the run's identity: the capture is filed under its id, the signal\n  // handlers own it, and `executeWorkflow` executes it instead of creating a second\n  // row.\n  //\n  // The flag names a run row this process will execute AS, so three things are checked.\n  // Be precise about which one carries the weight, because it is not the first.\n  //","sourceCodeStart":1434,"sourceCodeEnd":1470,"githubUrl":"https://github.com/coleam00/Archon/blob/0773b9745896ef0612e709c80845a0f7db315b19/packages/cli/src/commands/workflow.ts#L1434-L1470","documentation":"Error \"--resume and --config are mutually exclusive. A resumed run keeps its original run config.\" thrown in coleam00/Archon.","triggerScenarios":"Thrown at packages/cli/src/commands/workflow.ts:1452 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0773b9745896ef0612e709c80845a0f7db315b19","analyzedAt":"2026-09-01T02:28:07.064Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T05:18:18.240Z"}