earendil-works/pi · error

Warning: ${diagnostic.message}

Error message

Warning: ${diagnostic.message}

What it means

Error "Warning: ${diagnostic.message}" thrown in earendil-works/pi.

Source

Thrown at packages/coding-agent/src/core/model-resolver.ts:378

	return { scopedModels, diagnostics };
}

export async function resolveModelScopeWithDiagnostics(
	patterns: string[],
	modelRuntime: ModelRuntime,
	options?: AuthOperationOptions,
): Promise<ResolveModelScopeResult> {
	return resolveModelScopeFromModels(patterns, await modelRuntime.getAvailable(undefined, options));
}

export async function resolveModelScope(
	patterns: string[],
	modelRuntime: ModelRuntime,
	options?: AuthOperationOptions,
): Promise<ScopedModel[]> {
	const { scopedModels, diagnostics } = await resolveModelScopeWithDiagnostics(patterns, modelRuntime, options);
	for (const diagnostic of diagnostics) {
		console.warn(chalk.yellow(`Warning: ${diagnostic.message}`));
	}
	return scopedModels;
}

export interface ResolveCliModelResult {
	model: Model<Api> | undefined;
	thinkingLevel?: ThinkingLevel;
	warning: string | undefined;
	/**
	 * Error message suitable for CLI display.
	 * When set, model will be undefined.
	 */
	error: string | undefined;
}

/**
 * Resolve a single model from CLI flags.
 *

View on GitHub (pinned to 4af9d21d3b)

Solutions

  1. Read the diagnostic warning and adjust the model configuration accordingly.

When it happens

Trigger: Thrown at packages/coding-agent/src/core/model-resolver.ts:378 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of earendil-works/pi@4af9d21d3b (2026-08-24). Data as JSON: /api/errors/dc5675b47f062c3b. Report an issue: GitHub.