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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user