Tests: the fixtures' subagent facts replace the guess they asserted
CI / check (push) Canceled after 0s
CI / check (push) Canceled after 0s
gpt-oss serves one request at a time and is now offered subagents for a named model; auto-compact counted by the app is tested without the server's own count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2 files changed
+8
-4
No files matched your search
@@ -47,7 +47,9 @@ class ChatStateTest {
|
||||
fun aTeamIsOfferedByTheServerOrGuessedForANewChat() {
|
||||
assertTrue(ChatState(models = models).offersTeam(agent = false))
|
||||
assertFalse(ChatState(models = models).offersTeam(agent = true))
|
||||
assertFalse(ChatState(models = models, draft = Draft(model = "gpt-oss")).offersTeam(agent = false))
|
||||
// gpt-oss serves one at a time: offered, for a model named in the chat; vision-small not at all.
|
||||
assertTrue(ChatState(models = models, draft = Draft(model = "gpt-oss")).offersTeam(agent = false))
|
||||
assertFalse(ChatState(models = models, draft = Draft(model = "vision-small")).offersTeam(agent = false))
|
||||
assertTrue(ChatState(models = models, chat = Chat(id = "c", model = "gpt-oss"), teamOffered = true).offersTeam(agent = false))
|
||||
assertEquals(AgentsSetting(2, 6), ChatState(draft = Draft(agents = AgentsSetting(2, 6))).agents)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user