refactor(session): route construction through Session.create
This commit is contained in:
@@ -22,7 +22,7 @@ const testToolSignal = new AbortController().signal
|
||||
|
||||
/** A parent Agent backed by a real Session — the tool reads `agent.session`. */
|
||||
function agentWithSession(id = 'parent-1'): Agent & { session: Session } {
|
||||
const session = new Session(SessionId(id))
|
||||
const session = Session.create(SessionId(id))
|
||||
return { id: SessionId(id), session } as unknown as Agent & { session: Session }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user