refactor(core): simplify session runner loop and pending input scopes (#38602)
This commit is contained in:
parent
35d31d8ec1
commit
0f3c30118c
8 changed files with 283 additions and 242 deletions
|
|
@ -406,7 +406,7 @@ describe("SubagentTool", () => {
|
|||
},
|
||||
})
|
||||
const database = yield* Database.Service
|
||||
yield* SessionPending.promoteSteers(database.db, events, parent.id)
|
||||
yield* SessionPending.promote(database.db, events, parent.id, "steer")
|
||||
const synthetic = (yield* sessions.context(parent.id)).filter((message) => message.type === "synthetic")
|
||||
expect(synthetic).toHaveLength(1)
|
||||
expect(synthetic[0]?.text).toContain(`<subagent id="${childID}" state="completed"`)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue