fix(agents): forward history option through createAgentInternal

This commit is contained in:
Mohamed Boudra
2026-11-26 02:47:09 +01:00
parent 4719186fbb
commit 5fd6783c19
@@ -1749,9 +1749,10 @@ export class AgentManager {
config: AgentSessionConfig,
resolvedAgentId: string,
options: CreateAgentOptions,
historyOptions: { history: "discard" | "keep" } = { history: "discard" },
): Promise<ManagedAgent> {
return this.launchAgent(resolvedAgentId, () =>
this.createAgentSession(config, resolvedAgentId, options),
this.createAgentSession(config, resolvedAgentId, options, historyOptions),
);
}