fix(agent): keep media routing scoped to current turn

This commit is contained in:
not-the-author committed 2026-06-13 11:38:08 +02:00
1 parent adb89a16b9
commit f3d4555bc9
9 files changed
+369 -46

No files matched your search

+1 -1
View File
@@ -296,7 +296,7 @@ func registerSharedTools(
// This keeps subagent vision support working even when the optimized
// sub-turn spawner path is unavailable.
subagentManager.SetMediaResolver(func(msgs []providers.Message) []providers.Message {
return resolveMediaRefs(msgs, al.mediaStore, cfg.Agents.Defaults.GetMaxMediaSize())
return resolveMediaRefs(msgs, al.mediaStore, cfg.Agents.Defaults.GetMaxMediaSize(), 0)
})
// Set the spawner that links into AgentLoop's turnState