coleam00/Archon · error

Detached workflow process tree ${String(pid)} is still runni

Error message

Detached workflow process tree ${String(pid)} is still running${killFailure ? `: ${killFailure.message}` : ''}

What it means

Error "Detached workflow process tree ${String(pid)} is still running${killFailure ? `: ${killFailure.message}` : ''}" thrown in coleam00/Archon.

Source

Thrown at packages/cli/src/utils/detached-run-control.ts:537

    //
    // A walk that never finished is a different case and is rethrown here. The root
    // check can only stand in for the whole tree when every descendant was visited,
    // and a `timeout` kill leaves taskkill part-way through: the root can be gone
    // while a descendant the walk never reached is still alive. `/T` is what takes
    // the descendants with the root, and that they actually die is proved by the
    // descendant-leak case in the integration spec, not by any exit code.
    let killFailure: Error | undefined;
    try {
      await execFileAsync('taskkill', ['/PID', String(pid), '/T', '/F'], {
        timeout: TERMINATION_GRACE_MS,
        windowsHide: true,
      });
    } catch (error) {
      if (commandTerminatedBySignal(error)) throw error;
      killFailure = error instanceof Error ? error : new Error(String(error));
    }
    if (!(await waitUntilGone(() => processExists(pid), TERMINATION_CONFIRM_MS))) {
      throw new Error(
        `Detached workflow process tree ${String(pid)} is still running` +
          (killFailure ? `: ${killFailure.message}` : '')
      );
    }
    return;
  }

  try {
    process.kill(-pid, 'SIGTERM');
  } catch (error) {
    if ((error as NodeJS.ErrnoException).code !== 'ESRCH') throw error;
    if (processExists(pid)) {
      throw new Error(
        `Detached workflow owner ${String(pid)} is alive but does not own process group ${String(pid)}`
      );
    }
    return;
  }

View on GitHub (pinned to 0773b97458)

When it happens

Trigger: Thrown at packages/cli/src/utils/detached-run-control.ts:537 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/abf77177f318893a. Report an issue: GitHub.