test: calls

This commit is contained in:
Tomasz Stefaniak 2025-07-31 13:36:28 -07:00
parent 285fa10d25
commit 072ca8b9c8

View file

@ -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;
}