fix(config): persist runtime patches to active overlay config path

This commit is contained in:
William Valentin
2026-02-18 19:43:55 -08:00
parent 0a664ddb21
commit 7e480f11fc
5 changed files with 38 additions and 5 deletions
+2 -1
View File
@@ -108,6 +108,7 @@ export interface DaemonContext {
export interface StartDaemonOptions {
configPath?: string;
persistConfigPath?: string;
}
export async function startDaemon(config: Config, options?: StartDaemonOptions): Promise<DaemonContext> {
@@ -206,7 +207,7 @@ export async function startDaemon(config: Config, options?: StartDaemonOptions):
let channelAgents: ReturnType<typeof createMessageRouter>['agents'] | null = null;
const gateway = createGateway({
config, configPath: options?.configPath, sessionManager, modelRouter, systemPrompt, toolRegistry, toolExecutor,
config, configPath: options?.persistConfigPath ?? options?.configPath, sessionManager, modelRouter, systemPrompt, toolRegistry, toolExecutor,
channelRegistry, pairingManager, lifecycle, memoryStore,
getChannelAgents: () => channelAgents, commandRegistry, intentRegistry, routingPolicy, hookEngine,
});