test(coding-agent): update observer registry stubs

This commit is contained in:
can1357
2026-08-05 01:00:00 +02:00
parent 772fe8fa6e
commit 130d3318c8
2 changed files with 2 additions and 0 deletions
@@ -33,6 +33,7 @@ function makeJsonlSessionFile(dirPath: string, entries: object[]): string {
function makeSubagentRegistry(sessions: ObservableSession[]) {
return {
getSessions: () => sessions,
getSession: (id: string) => sessions.find(session => session.id === id),
onChange: () => () => {},
setMainSession: () => {},
getActiveSubagentCount: () => sessions.filter(s => s.status === "active").length,
@@ -93,6 +93,7 @@ async function makeJsonlSessionFile(dirPath: string, entries: object[]): Promise
function makeSubagentRegistry(sessions: ObservableSession[]): SessionObserverRegistry {
return {
getSessions: () => sessions,
getSession: (id: string) => sessions.find(session => session.id === id),
onChange: () => () => {},
setMainSession: () => {},
getActiveSubagentCount: () => sessions.filter(session => session.status === "active").length,