test(tui): cover streaming shell state
This commit is contained in:
parent
bf15c97e4b
commit
13bcc9f70d
1 changed files with 8 additions and 0 deletions
|
|
@ -1770,6 +1770,14 @@ test("settles pending tools when a live failure arrives", async () => {
|
|||
name: "bash",
|
||||
},
|
||||
})
|
||||
await wait(() => {
|
||||
const assistant = sync.session.message.get("session-1", "msg_explicit_assistant_9")
|
||||
return (
|
||||
assistant?.type === "assistant" &&
|
||||
assistant.content[0]?.type === "tool" &&
|
||||
assistant.content[0].state.status === "streaming"
|
||||
)
|
||||
})
|
||||
emitEvent(events, {
|
||||
id: "evt_called_1",
|
||||
created: 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue