Progress (harness spec 3.4.0): one line for what a reply is doing
CI / check (push) Canceled after 0s
CI / check (push) Canceled after 0s
The `status` frame carries `progress` {phase, since, ...} beside its
text from spec 3.4.0 (progress.md). The app draws it as
`{{text}} · {{elapsed}}` -- the shared texts as string resources, the
elapsed time ticking each second, `retrying`'s `in` counted down, the
text alone for stopped and failed -- under the reply and in the
assistant's sheet, and falls back to the free `status` text for a server
that does not send it, a phase it does not know, or a required field
missing. Under inspection the clock stands still (65 s), so screenshots
are stable and nothing animates forever.
Coded to the spec while the server's frame is being added. ProgressTest
runs the spec's own conformance cases (conformance/progress.json, copied
from LLeMbas CLI 3.4.0 until the server vendors it) against the English
in res/values; fetch-contract.py pins the server's copy as
contract/harness_progress.json once it is there. gen-strings.py takes
the server's translations of the `{{field}}` texts (its catalogues key
them by the spec's English), numbering the fields and doubling a lone %.
Screenshots: 04-writing with a rate, 04-waiting-for-model at 360 dp and
1.5x type.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
23 files changed
+821
-15
No files matched your search
@@ -240,6 +240,37 @@ STRINGS: dict[str, str] = {
|
||||
"card_answer": "Your answer",
|
||||
"card_something_else": "Something else",
|
||||
"card_send": "Send",
|
||||
# Progress (harness spec 3.4.0, progress.md; loop.json progress.texts, word for word, with
|
||||
# Android's placeholders in the order the spec's {{fields}} come)
|
||||
"progress_queued": "Queued",
|
||||
"progress_queued_ahead": "Queued: %1$s ahead",
|
||||
"progress_waiting_for_model": "Waiting for %1$s: %2$s",
|
||||
"progress_loading_model": "Loading %1$s",
|
||||
"progress_reading_prompt": "Reading the prompt: %1$s / %2$s tokens (%3$s%%)",
|
||||
"progress_reading_prompt_bare": "Reading the prompt",
|
||||
"progress_thinking": "Thinking",
|
||||
"progress_writing": "Writing: %1$s tok/s",
|
||||
"progress_writing_bare": "Writing",
|
||||
"progress_running_tool": "Running %1$s: %2$s",
|
||||
"progress_running_tool_bare": "Running %1$s",
|
||||
"progress_waiting_for_person": "Waiting for you: %1$s",
|
||||
"progress_waiting_for_subagents": "Waiting for subagents: %1$s running",
|
||||
"progress_compacting": "Compacting the conversation",
|
||||
"progress_retrying": "Retrying in %1$s s: %2$s",
|
||||
"progress_stopped": "Stopped",
|
||||
"progress_stopped_reason": "Stopped: %1$s",
|
||||
"progress_failed": "Failed: %1$s",
|
||||
"progress_reason_busy": "it serves one request at a time and is answering another",
|
||||
"progress_reason_slots": "all its slots are in use",
|
||||
"progress_reason_group": "its server holds another model now",
|
||||
"progress_what_approval": "allow %1$s?",
|
||||
"progress_what_approval_bare": "an approval",
|
||||
"progress_what_question": "a question",
|
||||
"progress_what_plan": "the plan",
|
||||
"progress_stopped_person": "by you",
|
||||
"progress_stopped_steps": "step limit",
|
||||
"progress_stopped_budget": "budget",
|
||||
"progress_line": "%1$s · %2$s",
|
||||
"card_asker": "%1$s asks:",
|
||||
"card_it_says": "It says: %1$s",
|
||||
"card_change_before": "Change this before it runs",
|
||||
@@ -351,6 +382,21 @@ STRINGS: dict[str, str] = {
|
||||
# taken from the server's catalogue and its named placeholders numbered in the order the
|
||||
# English names them -- so "%(steps)s steps, %(tools)s tools" becomes `%1$s`, `%2$s`.
|
||||
SERVER_ENGLISH: dict[str, str] = {
|
||||
# The progress texts: the server's catalogues key them by the spec's English, {{fields}} and all.
|
||||
"progress_queued_ahead": "Queued: {{ahead}} ahead",
|
||||
"progress_waiting_for_model": "Waiting for {{model}}: {{reason}}",
|
||||
"progress_loading_model": "Loading {{model}}",
|
||||
"progress_reading_prompt": "Reading the prompt: {{done}} / {{total}} tokens ({{percent}}%)",
|
||||
"progress_writing": "Writing: {{rate}} tok/s",
|
||||
"progress_running_tool": "Running {{tool}}: {{what}}",
|
||||
"progress_running_tool_bare": "Running {{tool}}",
|
||||
"progress_waiting_for_person": "Waiting for you: {{what}}",
|
||||
"progress_waiting_for_subagents": "Waiting for subagents: {{running}} running",
|
||||
"progress_retrying": "Retrying in {{in}} s: {{reason}}",
|
||||
"progress_stopped_reason": "Stopped: {{reason}}",
|
||||
"progress_failed": "Failed: {{reason}}",
|
||||
"progress_what_approval": "allow {{tool}}?",
|
||||
"progress_line": "{{text}} · {{elapsed}}",
|
||||
"card_asker": "%(job)s asks:",
|
||||
"card_it_says": "It says: %(purpose)s",
|
||||
"activity_used": "%(percent)s%% used",
|
||||
|
||||
Reference in new issue
Block a user