fix(config): persist runtime patches to active overlay config path
This commit is contained in:
+2
-1
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user