Contract at server dev 45c1e0d: the status frame's progress, translated
CI / check (push) Canceled after 0s
CI / check (push) Canceled after 0s
The server sends `progress` beside `status` (45c1e0d): event_status.json
carries a running_tool, and the new event_status_person/_stopped/_idle
fixtures are drawn in ProgressTest -- stopped by the person with an empty
status text is "Stopped: by you". A schedule run has `progress` too: the
run row says what a waiting or running run is doing.
Strings regenerated at the same ref: the server's catalogues have the
progress texts in all eight languages, keyed by the spec's English, and
gen-strings numbers their {{fields}} (sk 349/357).
With the tree present, the Tasks section no longer repeats the team's
size line the Subagents list already says. A test that an agent chat
shows the Subagents setting exactly when the server offers it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
24 files changed
+306
-7
No files matched your search
@@ -5,6 +5,7 @@ import eu.llembas.android.api.Chat
|
||||
import eu.llembas.android.api.LembasJson
|
||||
import eu.llembas.android.api.LinkedDevice
|
||||
import eu.llembas.android.api.ModelList
|
||||
import eu.llembas.android.api.SubagentsOffer
|
||||
import eu.llembas.android.ui.chat.ChatState
|
||||
import eu.llembas.android.ui.chat.Draft
|
||||
import eu.llembas.android.ui.chat.agents
|
||||
@@ -54,6 +55,16 @@ class ChatStateTest {
|
||||
assertEquals(AgentsSetting(2, 6), ChatState(draft = Draft(agents = AgentsSetting(2, 6))).agents)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun anAgentChatHasTheSliderWhenTheServerOffersIt() {
|
||||
// Its subagents run on its device (spec 3.4.0 §14): the chat's own word decides, never a guess.
|
||||
val agentChat = Chat(id = "a", kind = "agent", model = "qwen")
|
||||
assertTrue(ChatState(models = models, chat = agentChat.copy(subagents = SubagentsOffer(offered = true, cap = 8))).offersTeam(agent = true))
|
||||
assertFalse(ChatState(models = models, chat = agentChat.copy(subagents = SubagentsOffer(offered = false, cap = 32))).offersTeam(agent = true))
|
||||
// A listed chat (`subagents: null`) asks the chat's activity.
|
||||
assertTrue(ChatState(models = models, chat = agentChat, teamOffered = true).offersTeam(agent = true))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun aNewAgentChatRunsOnTheChosenDeviceOrTheFirst() {
|
||||
val devices = listOf(LinkedDevice("d1"), LinkedDevice("d2"))
|
||||
|
||||
Reference in new issue
Block a user