fix(model-fallback): expose session fallback chains to background tasks

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
Choi Kijin / 최 기진 / チョイ キジン
2026-04-28 15:27:34 +09:00
parent 034744cbf2
commit cc3cca7cb7
4 changed files with 23 additions and 2 deletions
+2 -2
View File
@@ -58,6 +58,7 @@ export function createManagers(args: {
deps.markServerRunningInProcessFn()
}
const tmuxSessionManager = new deps.TmuxSessionManagerClass(ctx, tmuxConfig)
const modelFallbackControllerAccessor = createModelFallbackControllerAccessor()
deps.registerManagerForCleanupFn({
shutdown: async () => {
@@ -110,6 +111,7 @@ export function createManagers(args: {
})
},
enableParentSessionNotifications: backgroundNotificationHookEnabled,
modelFallbackControllerAccessor,
},
)
@@ -122,8 +124,6 @@ export function createManagers(args: {
pluginConfig,
modelCacheState,
})
const modelFallbackControllerAccessor = createModelFallbackControllerAccessor()
return {
tmuxSessionManager,
backgroundManager,