continuedev/continue · error · Error
Config not loaded
Error message
Config not loaded
What it means
The tools/evaluatePolicy handler loads config to look up a tool's policy; if loadConfig yields no config object it cannot evaluate and throws 'Config not loaded'.
Source
Thrown at core/core.ts:1056
if (msg.data.id) {
await this.configHandler.setSelectedProfileId(msg.data.id);
}
});
on("auth/getAuthUrl", async (_msg) => {
return { url: "" };
});
on("tools/call", async ({ data: { toolCall } }) =>
this.handleToolCall(toolCall),
);
on(
"tools/evaluatePolicy",
async ({ data: { toolName, basePolicy, parsedArgs, processedArgs } }) => {
const { config } = await this.configHandler.loadConfig();
if (!config) {
throw new Error("Config not loaded");
}
const tool = config.tools.find((t) => t.function.name === toolName);
if (!tool) {
return { policy: basePolicy };
}
// Extract display value for specific tools
let displayValue: string | undefined;
if (toolName === "runTerminalCommand" && parsedArgs.command) {
displayValue = parsedArgs.command as string;
}
if (tool.evaluateToolCallPolicy) {
const evaluatedPolicy = tool.evaluateToolCallPolicy(
basePolicy,
parsedArgs,
processedArgs,View on GitHub (pinned to 5522c6f44c)
Solutions
- Ensure config.json exists and parses before tool use
- Retry after initialization completes
- Regenerate a valid config
Defensive patterns
Strategy: retry
Validate before calling
const { config } = await configHandler.loadConfig();
if (!config) await waitForConfigReady(); Try / catch
catch (e) { if (e.message === 'Config not loaded') { await delay(200); retryEvaluatePolicy(); } } Prevention
- Gate tool execution on a config-ready signal
When it happens
Trigger: A tool call triggers evaluatePolicy while config.json is missing, corrupt, or still loading.
Common situations: Startup races where a tool call arrives before config load finishes; corrupted config after manual edit; fresh environment without config.
Related errors
- Tool ${toolName} not found
- Profile ${profileId} not found
- No reranker set up
- No chat model selected
- Failed to load config
AI-assisted analysis of continuedev/continue@5522c6f44c (2026-08-27).
Data as JSON: /api/errors/27410167b05e5a1b.
Report an issue: GitHub.