test(create-managers): align openclaw mock with refactored BackgroundManager config object

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

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
YeonGyu-Kim
2026-05-04 16:30:23 +09:00
parent dd4166cb57
commit fa255e14c6
+4 -11
View File
@@ -15,17 +15,10 @@ let backgroundManagerOptions: {
const trackedPaneBySession = new Map<string, string>()
class MockBackgroundManager {
constructor(
_ctx: PluginInput,
_config?: unknown,
options?: {
tmuxConfig?: unknown
onSubagentSessionCreated?: (event: { sessionID: string; parentID: string; title: string }) => Promise<void>
onShutdown?: () => void | Promise<void>
enableParentSessionNotifications?: boolean
},
) {
backgroundManagerOptions = options ?? null
constructor(config: {
onSubagentSessionCreated?: (event: { sessionID: string; parentID: string; title: string }) => Promise<void>
}) {
backgroundManagerOptions = config
}
}