This commit is contained in:
7 files changed
+118
-9
No files matched your search
@@ -40,6 +40,22 @@ class FullBleedItemKeysTest {
|
||||
assertEquals(3, searchMatchToLazyIndex(turns, messages, SearchMatch(2, 0)))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun secondaryReasoningResolvesToItsProseRow() {
|
||||
val messages =
|
||||
listOf(
|
||||
ChatMessage("a1", MessageRole.ASSISTANT, "one", reasoningText = "first"),
|
||||
ChatMessage("a2", MessageRole.ASSISTANT, "two", reasoningText = "second"),
|
||||
)
|
||||
val turns = groupIntoTurns(messages)
|
||||
val keys = fullBleedItemKeys(turns)
|
||||
|
||||
assertEquals(
|
||||
keys.indexOf("prose-a2"),
|
||||
searchMatchToLazyIndex(turns, messages, SearchMatch(1, 0, SearchTarget.REASONING)),
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun toolAnchorSurvivesPrependThatExtendsItsAgentTurn() {
|
||||
val tool = ChatMessage("live-tool", MessageRole.TOOL, "output")
|
||||
|
||||
Reference in new issue
Block a user