fix(config): enforce unsupported backend flags and route by modelFor tags

This commit is contained in:
William Valentin
2026-02-16 23:45:18 -08:00
parent 01f75e536d
commit 21a7a18008
2 changed files with 14 additions and 1 deletions
+14
View File
@@ -110,7 +110,21 @@ export interface StartDaemonOptions {
configPath?: string;
}
function validateUnsupportedConfig(config: Config): void {
if (config.backends.claude_code.enabled) {
throw new Error('backends.claude_code is not implemented yet. Set backends.claude_code.enabled=false.');
}
if (config.backends.opencode.enabled) {
throw new Error('backends.opencode is not implemented yet. Set backends.opencode.enabled=false.');
}
if (config.agents.auto_escalate) {
throw new Error('agents.auto_escalate is not implemented yet. Set agents.auto_escalate=false.');
}
}
export async function startDaemon(config: Config, options?: StartDaemonOptions): Promise<DaemonContext> {
validateUnsupportedConfig(config);
// ── Log level ──
setLogLevel(config.log_level);
-1
View File
@@ -84,7 +84,6 @@ function parseResearchPrefix(text: string): string | undefined {
}
return undefined;
}
/**
* Create the unified message handler for the channel registry.
* Each channel+sender pair gets its own AgentOrchestrator backed by a persistent session.