test(coding-agent): update observer registry stubs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user