feat(core): Thread AgentLoopContext through core. (#21944)

This commit is contained in:
joshualitt
2026-03-10 18:12:59 -07:00
committed by GitHub
parent daf3701194
commit 20a226a5ab
30 changed files with 272 additions and 125 deletions

View File

@@ -211,7 +211,7 @@ export async function runNonInteractive({
const geminiClient = config.getGeminiClient();
const scheduler = new Scheduler({
config,
context: config,
messageBus: config.getMessageBus(),
getPreferredEditor: () => undefined,
schedulerId: ROOT_SCHEDULER_ID,

View File

@@ -97,7 +97,7 @@ export function useToolScheduler(
const scheduler = useMemo(
() =>
new Scheduler({
config,
context: config,
messageBus,
getPreferredEditor: () => getPreferredEditorRef.current(),
schedulerId: ROOT_SCHEDULER_ID,