coleam00/Archon · error
Refusing to delete every persisted session for workflow '${w
Error message
Refusing to delete every persisted session for workflow '${workflowName}' across all scopes without confirmation.
Pass --scope <key> to narrow, or --yes to confirm cross-scope reset. What it means
Error "Refusing to delete every persisted session for workflow '${workflowName}' across all scopes without confirmation. Pass --scope <key> to narrow, or --yes to confirm cross-scope reset." thrown in coleam00/Archon.
Source
Thrown at packages/cli/src/commands/workflow.ts:4889
}
}
/**
* Reset persisted per-node provider sessions for a workflow.
*
* Filter rules:
* - workflow-name required (positional)
* - --scope <key>: restrict to one scope (e.g. a conversation UUID); when
* omitted, deletes across ALL scopes (use --yes to skip the confirmation)
* - --node <id>: restrict to one node within the scope
* - --json: machine-readable output
*/
export async function workflowResetSessionsCommand(
workflowName: string,
options: { scope?: string; node?: string; yes?: boolean; json?: boolean }
): Promise<void> {
if (!options.scope && !options.yes) {
throw new Error(
`Refusing to delete every persisted session for workflow '${workflowName}' across all scopes without confirmation.\n` +
'Pass --scope <key> to narrow, or --yes to confirm cross-scope reset.'
);
}
try {
const { deleted } = await resetWorkflowNodeSessions({
workflow_name: workflowName,
scope_key: options.scope,
node_id: options.node,
});
if (options.json) {
await writeStdout(
`${JSON.stringify({
workflow: workflowName,
deleted,
scope: options.scope ?? null,
node: options.node ?? null,
})}\n`View on GitHub (pinned to 0773b97458)
When it happens
Trigger: Thrown at packages/cli/src/commands/workflow.ts:4889 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/90623beb03eaae2d.
Report an issue: GitHub.