cline/cline · error · Error

expiresAt must be a valid ISO-8601 timestamp

Error message

expiresAt must be a valid ISO-8601 timestamp

What it means

Error "expiresAt must be a valid ISO-8601 timestamp" thrown in cline/cline.

Source

Thrown at sdk/packages/core/src/tasks/agenda-task-manager.ts:114

type WatchedScope = {
	store: AgendaTaskSpecFileStore;
	watcher?: FSWatcher;
	timer?: ReturnType<typeof setTimeout>;
};

function nowIso(): string {
	return new Date().toISOString();
}

function optionalTrimmed(value: string | null | undefined): string | undefined {
	return typeof value === "string" && value.trim() ? value.trim() : undefined;
}

function assertFutureExpiry(expiresAt: string): void {
	const timestamp = Date.parse(expiresAt);
	if (!Number.isFinite(timestamp)) {
		throw new Error("expiresAt must be a valid ISO-8601 timestamp");
	}
	if (timestamp <= Date.now()) {
		throw new Error("expiresAt must be in the future");
	}
}

function isPathInside(parent: string, child: string): boolean {
	const rel = relative(parent, child);
	return rel !== "" && !rel.startsWith("..") && !rel.startsWith("/");
}

function isExistingDirectory(path: string | undefined): path is string {
	if (!path || !existsSync(path)) return false;
	try {
		return statSync(path).isDirectory();
	} catch {
		return false;
	}

View on GitHub (pinned to 491b30b806)

When it happens

Trigger: Thrown at sdk/packages/core/src/tasks/agenda-task-manager.ts:114 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of cline/cline@491b30b806 (2026-08-25). Data as JSON: /api/errors/4e1d507e6a8cb7dd. Report an issue: GitHub.