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

This commit is contained in:
m57
2026-09-25 22:47:00 +03:00
committed by GitHub
parent 719a89b951
commit 83ac8a3418
2 changed files with 56 additions and 21 deletions
@@ -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()
}
}