Scheduled on the server's real routes: runs in full, the models, the push
CI / check (push) Canceled after 0s

api/Schedules.kt and ApiClient now follow /api/v2 exactly (src/lembas/api/v2/schedules.py):
the schedule's enabled/description/request/rule, a run's model object, error class and
text, waiting and retry, preview; compile returns ok/reason and the rule in words; a run
in full (GET runs/{run}, Markdown through Markwon); the scheduling models (GET/PUT) with
a tick per model; /events keeps the list current while it is on screen.

Notifications are built from the payload notify.py sends (ids, status, private, actions,
ask): VISIBILITY_PRIVATE with a public version, Open always, Pause when the server offers
it, a tap opens the run (switching to the instance it came from).

ScheduleContractTest reads all eight fixtures and the push payload; shots for the run and
the models screen, fakes shaped like the fixtures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
HomerandClaude Opus 5.5 committed 2026-11-09 13:34:18 +00:00
1 parent b52b6daaf0
commit 0982af8cfb
25 files changed
+1335 -208

No files matched your search

+11 -1
View File
@@ -194,7 +194,17 @@ STRINGS: dict[str, str] = {
"run_skipped": "Skipped",
"run_waiting": "Waiting for a model",
"run_running": "Running",
"run_model_switched": "%1$s (the first choice was busy)",
"run_model_instead": "%1$s, instead of %2$s",
"run_retry_at": "Tries again at %1$s",
"run_result": "Result",
"run_no_text": "This run left no text.",
"run_open_chat": "Open its chat",
"mode_fresh": "A new chat each time",
"mode_continue": "One chat that grows",
"schedule_models": "Models for scheduled tasks",
"schedule_models_hint": "Scheduled tasks take the first of these that is free, in this order. Untick one to leave it out.",
"model_free": "Free now",
"model_busy": "Busy: %1$s",
"channel_scheduled": "Scheduled results",
"channel_scheduled_failures": "Scheduled failures",
"scheduled_result_public": "A scheduled task has a result.",