fix(chat): clear clarify request on completion (#857)

This commit is contained in:
AlexDev_ authored and GitHub committed 2026-08-08 23:44:23 +03:00
1 parent 98b35ca8bf
commit 0db741edfe
2 files changed
+20

No files matched your search

@@ -7,6 +7,25 @@ import org.junit.Assert.assertTrue
import org.junit.Test
class ChatWsEventReducerTest {
@Test
fun testMessageComplete_clearsResolvedClarifyRequest() {
val state =
ChatUiState(
currentSessionId = "session-1",
clarifyRequest = ClarifyUi("Old question", emptyList(), "clarify-1"),
)
val result =
ChatWsEventReducer.reduce(
state = state,
streamingState = StreamingState(),
event = WsEvent.MessageComplete("Done", "session-1"),
currentSessionId = "session-1",
)
assertEquals(null, result.state.clarifyRequest)
}
@Test
fun testToolProgress_updatesProgressPreviewForMatchingRunningTool() {
val initialMessage =