n8n-io/n8n · error

Agent does not support stream resume

Error message

Agent does not support stream resume

What it means

resumeAgentStream requires an agent object carrying a resume() method for 'stream'. The isRecord guard failed, meaning the value passed as the agent is not an object at all (undefined, a primitive, or deserialized garbage), so suspend/resume continuation is impossible.

Solutions

  1. Pass the actual agent instance returned by the runner, not a serialized or partial value
  2. Re-run from a fresh execution instead of resuming if the agent object was lost
Defensive patterns

Strategy: type-guard

When it happens

Trigger: Thrown at packages/@n8n/instance-ai/src/utils/stream-helpers.ts:56 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of n8n-io/n8n@5ac6606e81 (2026-08-12). Data as JSON: /api/errors/810bbd6be549314e. Report an issue: GitHub.

Appendix: source

Thrown at packages/@n8n/instance-ai/src/utils/stream-helpers.ts:56

	resume?: (
		method: 'stream',
		data: Record<string, unknown>,
		options: Record<string, unknown>,
	) => Promise<unknown>;
}

/** Cast an agent to Resumable for suspend/resume operations. */
export function asResumable(agent: unknown): Resumable {
	return agent as Resumable;
}

export async function resumeAgentStream(
	agent: unknown,
	data: Record<string, unknown>,
	options: Record<string, unknown>,
): Promise<unknown> {
	if (!isRecord(agent)) {
		throw new Error('Agent does not support stream resume');
	}

	const resumable = asResumable(agent);

	if (typeof resumable.resume === 'function') {
		return await resumable.resume('stream', data, options);
	}

	throw new Error('Agent does not support stream resume');
}

View on GitHub (pinned to 5ac6606e81)