Contract at server dev 45c1e0d: the status frame's progress, translated
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:
HomerandClaude Opus 5.5 committed 2026-11-10 09:40:40 +00:00
1 parent dff3aa67c0
commit 44a102a96f
24 files changed
+306 -7

No files matched your search

@@ -51,6 +51,8 @@ data class ScheduleRun(
@SerialName("finished_at") val finishedAt: String? = null,
@SerialName("waiting_for") val waitingFor: String? = null,
@SerialName("retry_at") val retryAt: String? = null,
/** What the run is doing now (harness spec 3.4.0, `progress.md`): waiting for which model and why, its reply's phase. */
val progress: Progress? = null,
val attempts: Int = 0,
val model: RunModel = RunModel(),
val tokens: RunTokens = RunTokens(),
@@ -340,7 +340,7 @@ fun ActivityContent(
}
}
}
val tasks = if (tree != null) activity.copy(agents = activity.agents.filter { it.kind != "member" }) else activity
val tasks = if (tree != null) activity.copy(agents = activity.agents.filter { it.kind != "member" }, team = null) else activity
item { Section(stringResource(R.string.activity_tasks)) { TasksSection(tasks, readAt, now, actions, unfolded) } }
activity.team?.let { team ->
item { Section(stringResource(R.string.team_room), count = team.room.size.takeIf { it > 0 }) { RoomSection(team) } }
@@ -82,6 +82,7 @@ import eu.llembas.android.api.SchedulesFrame
import eu.llembas.android.api.StreamClient
import eu.llembas.android.lembas
import eu.llembas.android.ui.explain
import eu.llembas.android.ui.progressLineOf
import eu.llembas.android.ui.theme.LocalPalette
import eu.llembas.android.ui.theme.Palette
import kotlinx.coroutines.CancellationException
@@ -646,6 +647,12 @@ internal fun RunFacts(run: ScheduleRun, maxLines: Int = Int.MAX_VALUE, withPrevi
else -> name
}
model?.let { Text(it, style = MaterialTheme.typography.bodySmall, color = palette.inkMuted, maxLines = 1, overflow = TextOverflow.Ellipsis) }
// A run under way says what it is doing, in the words every client uses (spec 3.4.0).
if (run.status == "waiting" || run.status == "running") {
progressLineOf(run.progress)?.let {
Text(it, style = MaterialTheme.typography.bodySmall, color = palette.inkMuted, maxLines = 2, overflow = TextOverflow.Ellipsis)
}
}
if (run.status == "waiting") {
ScheduleLogic.moment(run.retryAt)?.let {
Text(stringResource(R.string.run_retry_at, it), style = MaterialTheme.typography.bodySmall, color = palette.warning, maxLines = 1)