fix(#1263): render completed reasoning as Markdown (#1269)

This commit is contained in:
m57 authored and GitHub committed 2026-09-25 22:47:00 +03:00
1 parent 719a89b951
commit 83ac8a3418
2 files changed
+56 -21

No files matched your search

@@ -71,4 +71,28 @@ class ReasoningCardTest {
composeTestRule.onNodeWithTag("reasoning_card").performClick()
composeTestRule.onNodeWithText("Show full").assertDoesNotExist()
}
@Test
fun completedReasoning_rendersMarkdown() {
renderInLazyColumn("**Important** completed thought")
composeTestRule.onNodeWithTag("reasoning_card").performClick()
composeTestRule.onNodeWithText("Important completed thought").assertIsDisplayed()
composeTestRule.onNodeWithText("**Important** completed thought").assertDoesNotExist()
}
@Test
fun streamingReasoning_remainsRawText() {
composeTestRule.setContent {
LazyColumn {
item(key = "reasoning") {
ReasoningCard(reasoningText = "**Thinking**", isStreaming = true)
}
}
}
composeTestRule.onNodeWithTag("reasoning_card").performClick()
composeTestRule.onNodeWithText("**Thinking**").assertIsDisplayed()
composeTestRule.onNodeWithText("Thinking").assertDoesNotExist()
}
}