coleam00/Archon · error · Error

--resume and --config are mutually exclusive. A resumed run

Error message

--resume and --config are mutually exclusive. A resumed run keeps its original run config.

What it means

Error "--resume and --config are mutually exclusive. A resumed run keeps its original run config." thrown in coleam00/Archon.

Source

Thrown at packages/cli/src/commands/workflow.ts:1452

  let continuation: ResolvedContinuation | undefined;
  if (continuationRun !== undefined) {
    continuation = await resolveContinuationWorkflow(createWorkflowDeps(), continuationRun, cwd);
  }

  // A continuation never captures. With a record it reads that record (above); without
  // one it is a run created before captures existed, and reads live source — the same
  // legacy path the executor takes for it. Capturing here would freeze bytes the run
  // never agreed to and still not make it deterministic.
  const isContinuation = options.resume === true || continuationRun !== undefined;

  const resolvedRunConfigPath = options.configPath
    ? isAbsolute(options.configPath)
      ? options.configPath
      : join(cwd, options.configPath)
    : undefined;
  if (isContinuation && (resolvedRunConfigPath || options.detachedRunConfig)) {
    throw new Error(RESUME_RUN_CONFIG_CONFLICT);
  }
  const runConfig = options.detachedRunConfig
    ? {
        ...options.detachedRunConfig,
        layer: normalizeRunConfigSemantics(options.detachedRunConfig.layer),
      }
    : resolvedRunConfigPath
      ? await loadWorkflowRunConfigFile(resolvedRunConfigPath)
      : undefined;

  // The row a detached parent created before forking (#2872). Loaded up front because
  // it decides the run's identity: the capture is filed under its id, the signal
  // handlers own it, and `executeWorkflow` executes it instead of creating a second
  // row.
  //
  // The flag names a run row this process will execute AS, so three things are checked.
  // Be precise about which one carries the weight, because it is not the first.
  //

View on GitHub (pinned to 0773b97458)

When it happens

Trigger: Thrown at packages/cli/src/commands/workflow.ts:1452 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of coleam00/Archon@0773b97458 (2026-09-01). Data as JSON: /api/errors/f0924d1153c731c1. Report an issue: GitHub.