test: calls
This commit is contained in:
parent
285fa10d25
commit
072ca8b9c8
1 changed files with 5 additions and 2 deletions
|
|
@ -323,9 +323,12 @@ describe("streamResponseThunk - tool calls", () => {
|
|||
|
||||
// Subscribe to store changes to catch ALL state updates
|
||||
const unsubscribe = mockStoreWithToolSettings.subscribe(() => {
|
||||
const currentState = mockStoreWithToolSettings.getState().session.isStreaming;
|
||||
const currentState =
|
||||
mockStoreWithToolSettings.getState().session.isStreaming;
|
||||
if (currentState !== lastStreamingState) {
|
||||
console.log(`Store subscription: isStreaming changed from ${lastStreamingState} to ${currentState}`);
|
||||
console.log(
|
||||
`Store subscription: isStreaming changed from ${lastStreamingState} to ${currentState}`,
|
||||
);
|
||||
streamingStateChanges.push(currentState);
|
||||
lastStreamingState = currentState;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue