Skip to content

0.3.23 — live clocks, live subagent status, questions that survive a crash

Latest

Choose a tag to compare

@cfyz1297 cfyz1297 released this 21 Nov 02:12
· 1 commit to main since this release

English

The work clock moves while the model thinks. The status bar used to show a static label, so a long reasoning turn looked exactly like a stalled agent — you had to open the reasoning block to see that text was still arriving. The bar now counts elapsed time from the first busy event of the run. A tool's own clock also starts at its first event instead of at the "running" status: a call that is still streaming its input already ticks and shows a spinner, which is the phase you watch longest. A run recovered after a lost idle event no longer leaks its clock into the next run.

A finished subagent flips to Done by itself. The row for a child session is fetched when the screen opens, so its cached copy carries no idle stamp, and V2 sends no session.updated to refresh it. The live idle event was read as "not busy" and then fell back to the missing stamps, so a subagent that had already completed sat on "Waiting" until you re-entered the session. An idle event is now proof that the run happened and ended: the pill switches to Done the moment the server reports it. Children that were never observed at all still read Waiting, and an error still wins over a late idle.

Parallel delegations are all listed. The subagent bar deduplicated on the child session id across the whole transcript, so a call that resumed a session spawned in an earlier turn was dropped as a "duplicate" — the old row stayed in its place and "Now" showed one subagent out of two. Deduplication now applies within a turn, which is what it was written for: a replayed part of the same turn is still a duplicate, the same child called in a later turn is a new call. Rows are keyed by turn and session, so two calls to the same child no longer collide in the list.

Questions survive a crash. A restart wiped every busy flag, so nothing polled a session the server was still blocked on — the question existed only on the server, and the only way to see it was to stop the agent and ask again. On connect the app now adopts the server's active-session list for sessions it has no status for, which restarts prompt polling and the work clock. An idle status from the server still clears it, so nothing is adopted forever. Separately, a question whose message is not among the rendered rows (a cold start, a message the server has not persisted yet) no longer disappears: it falls back above the composer.

An answered question stays where it was asked. The transcript merged every consecutive assistant step into one row, and the question card is drawn under the row that owns its message — so answering a question pushed the card past the rest of the turn, down to the very bottom. A run now ends at the message that asked the question, so the card stays at the point you answered it, with one header and one token/cost footer for the whole run.

Finished subagents are listed newest first. The bar kept call order, so an older finished run sat above newer ones while the row's own stamp said "2 h ago" under "3 h ago". Running rows stay on top; finished ones follow the same stamp the row shows.

Also: the release check now compares package-lock.json too, so a drifted lockfile cannot ship. The dead iOS config is gone from app.json, and npm run ios is removed. The README is rewritten from 400 lines to about 115 per language — the release history moved to CHANGELOG.md / CHANGELOG.ru.md, and the opencode-termux section (the Android server build) is kept and explained.

APK

  • opencode-mobile-v2.apk — 97.9 MiB, versionCode 88, signed with the permanent release key (installs over 0.3.22)
  • SHA256: 560736d9a5313f4d1cc089ab164ec75a015f4656673e385c7b7c49b91ee36d98

880 unit and integration tests are green, and the Android CUA smoke on an emulator passes on the release build.


Русский

Часы работы идут, пока модель думает. В строке статуса была статичная надпись, поэтому долгое размышление выглядело ровно как зависший агент — приходилось раскрывать блок размышлений, чтобы увидеть, что текст продолжает приходить. Теперь счёт идёт от первого busy-события прогона. Часы инструмента тоже стартуют с его первого события, а не со статуса «running»: вызов, который ещё стримит ввод, уже тикает и показывает спиннер — а это как раз та фаза, которую ждёшь дольше всего. Прогон, восстановленный после потерянного idle, больше не отдаёт свои часы следующему запуску.

Завершённый сабагент сам переключается в «Готово». Строка дочерней сессии загружается при открытии экрана, поэтому в кэше нет метки idle, а V2 не присылает session.updated, чтобы её обновить. Живое idle-событие читалось как «не busy» и проваливалось в отсутствующие метки — завершённый сабагент висел в «Ожидает», пока не перезайдёшь в сессию. Теперь idle-событие считается доказательством, что запуск состоялся и закончился: плашка меняется на «Готово» сразу. Ребёнок, о котором вообще не было событий, по-прежнему «Ожидает», а ошибка важнее позднего idle.

Параллельные делегирования видны все. Панель дедуплицировала по id дочерней сессии на всю ленту, поэтому вызов, продолжавший сессию из прошлого хода, отбрасывался как «дубль» — на его месте оставалась старая строка, и «Сейчас» показывало одного сабагента из двух. Теперь дедупликация действует в пределах одного хода, для чего она и писалась: повторная часть того же хода — дубль, тот же ребёнок в новом ходе — новый вызов. Ключ строки — ход и сессия, поэтому два вызова одного ребёнка больше не конфликтуют в списке.

Вопросы переживают краш. Перезапуск стирал все busy-флаги, и никто не опрашивал сессию, на которой сервер всё ещё стоял: вопрос жил только на сервере, и единственным способом его увидеть было остановить агента и попросить заново. При подключении приложение теперь забирает у сервера список активных сессий для тех, о ком у него нет статуса, и возобновляет опрос форм и часы работы. Idle от сервера по-прежнему всё снимает, так что навсегда ничего не залипает. Отдельно: вопрос, чьё сообщение не попало в отрисованные строки (холодный старт, сообщение ещё не сохранено сервером), больше не исчезает — он рисуется над полем ввода.

Карточка отвеченного вопроса остаётся на месте вопроса. Лента склеивала подряд идущие шаги ассистента в один ряд, а карточка вопроса рисуется под рядом, которому принадлежит её сообщение — поэтому после ответа карточка уезжала за весь остаток хода, в самый низ. Теперь ряд обрывается на сообщении, которое задало вопрос: карточка остаётся там, где вы отвечали, а у всего хода одна шапка и один футер с токенами и ценой.

Завершённые сабагенты сортируются новыми вверх. Панель держала порядок вызова, поэтому старый завершённый прогон стоял выше новых, а метка самой строки говорила «2 ч назад» под «3 ч назад». Работающие остаются сверху, готовые идут по той же метке, что показывает строка.

Ещё: проверка релиза теперь сверяет и package-lock.json, поэтому разъехавшийся lockfile не уедет в сборку. Мёртвый конфиг iOS удалён из app.json, скрипт npm run ios убран. README переписан с 400 строк до примерно 115 в каждом языке — история версий перенесена в CHANGELOG.md / CHANGELOG.ru.md, а раздел opencode-termux (сборка сервера для Android) сохранён и объяснён.

APK

  • opencode-mobile-v2.apk — 97.9 MiB, versionCode 88, подписан постоянным релизным ключом (ставится поверх 0.3.22)
  • SHA256: 560736d9a5313f4d1cc089ab164ec75a015f4656673e385c7b7c49b91ee36d98

880 юнит- и интеграционных тестов зелёные, Android CUA smoke на эмуляторе проходит на релизной сборке.