Skip to content

Releases

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

Choose a tag to compare

@cfyz1297 cfyz1297 released this 21 Nov 02:12

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 на эмуляторе проходит на релизной сборке.

0.3.22 — the transcript follows the stream

Choose a tag to compare

@cfyz1297 cfyz1297 released this 20 Nov 11:59

⚠️ Устарел — используйте v0.3.23 / Outdated — use v0.3.23: https://github.com/cfyz1297/opencode-v1-v2-mobile/releases/tag/v0.3.23

English

The transcript stays with the answer while it streams. The list was inverted, and an inverted list in React Native grows its newest row upward: every token shifted all existing rows, so the text crawled out from under the reader. Four compensations were built and tried on a device — per-cell height deltas, the newest cell's height, the content's total height, and React Native's own maintainVisibleContentPosition — and none survived a real streaming answer. The transcript is now a plain list: growth happens at the bottom and cannot move text above it. History still loads when you reach the top, with the spinner as its header, and maintainVisibleContentPosition is kept for the one case a plain list still has — an older page inserted above the reader.

Following the answer no longer switches itself off. Auto-follow was recalculated from every scroll sample. Those samples are throttled to 100 ms while a streaming delta grows the content continuously, so each sample carried the offset from before the growth, its distance from the end looked like the reader had scrolled away, and following stayed off for the rest of the session. Following now belongs to gestures: a drag takes it away, and the end of a drag — or of a fling that lands at the bottom — gives it back. A scroll sample never changes it, and a finger lifted with velocity still has momentum ahead, so follow is re-armed at the end of the fling, not at the lift.

The last line of an answer is no longer left below the fold. scrollToEnd aims at the last row's measured frame, and that frame always trails the chunk that just arrived: following stopped a line short and the rest had to be dragged. On Android the scroll now aims past the end and the native ScrollView clips it to the real content bottom, so no JavaScript measurement takes part.

Sending a message, the keyboard or a banner no longer pushes the text out of view. The composer, the "Working…" row, banners and the keyboard all change the list height mid-run, and the offset stayed where it was — the newest line went under the fold, or empty space appeared below the text. While you are at the bottom, the list now lands on the end again after a real size change; a reader up in the history is not moved.

A reloaded transcript opens at the newest message. Coming back from a subagent session remounted the list at offset 0, which in a plain list is the oldest row, and the mounting offset read as "the reader scrolled away" — the conversation opened at its beginning. A reload now counts as a fresh open: hidden until it reaches the end.

Selecting text no longer scrolls the transcript. Android's ScrollView scrolls a focused child into view, and a selectable <Text> takes focus on long-press, so holding a word in an answer yanked the whole transcript up or down. The list no longer scrolls to a focused child; selection and its handles work as before.

The message navigator follows the plain list. The counter counts from the oldest message, a jump aligns its message to the top edge, and a transcript whose rows are not laid out yet starts at the newest message instead of index 0 — which after the flip is the oldest.

APK

  • opencode-mobile-v2.apk — 97.9 MiB, versionCode 87, signed with the permanent release key (installs over 0.3.21)
  • SHA256: ae055ea3a59c6f1804d43bfd5be6ffbc938d5448c1af38a3ee6dc1eb290f6187

849 unit and integration tests are green, and the Android CUA smoke on an emulator drives the transcript, the navigator and the tunnel wizard on Android 15.


Русский

Лента не уезжает от ответа, пока он печатается. Список был инвертированным, а в React Native инвертированная лента растит новую строку вверх: каждый токен сдвигал все строки, и текст выползал из-под читающего. Четыре компенсации были написаны и проверены на устройстве — дельты высот ячеек, высота самой новой ячейки, общая высота контента и нативный maintainVisibleContentPosition — и ни одна не выдержала реального стриминга. Теперь лента обычная: рост идёт вниз и не может сдвинуть текст выше. История по-прежнему подгружается у верхней кромки, спиннер стоит её заголовком, а maintainVisibleContentPosition оставлен ровно для одного случая, который остаётся и в обычной ленте, — вставки старой страницы над читателем.

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

Последняя строка ответа больше не остаётся за краем. scrollToEnd целится в измеренную рамку последней строки, а она всегда отстаёт от только что пришедшего куска: лента замирала на строку выше, и остаток приходилось дотягивать вручную. На Android прокрутка теперь целится за конец, а нативный ScrollView обрезает её до реального низа контента, так что измерение в JS не участвует вовсе.

Отправка сообщения, клавиатура и баннеры больше не выталкивают текст за экран. Композер, строка «Работаю…», баннеры и клавиатура меняют высоту списка прямо во время прогона, а смещение оставалось прежним — новая строка уходила ниже кромки или под текстом появлялась пустота. Пока вы внизу, список после реального изменения размера заново встаёт на конец; читателя, ушедшего в историю, это не трогает.

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

Выделение текста больше не прокручивает ленту. Android прокручивает ScrollView к получившему фокус дочернему элементу, а выделяемый <Text> забирает фокус при долгом нажатии, поэтому удержание слова в ответе сдёргивало всю переписку вверх или вниз. Список больше не прокручивает к фокусу; выделение и его маркеры работают как раньше.

Навигатор по сообщениям следует за обычной лентой. Счётчик считается от самого старого сообщения, переход выравнивает сообщение по верхней кромке, а лента, строки которой ещё не разложены, стартует с самого нового сообщения, а не с индекса 0 — после переворота это самое старое.

APK

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

849 автотестов зелёные, а Android CUA smoke на эмуляторе прогоняет ленту, навигатор и мастер туннелей на Android 15.

v0.3.21 — resume keeps history, one step line per answer, message navigator

Choose a tag to compare

@cfyz1297 cfyz1297 released this 18 Nov 00:56

⚠️ Устарел — используйте v0.3.22. ⚠️ Outdated — use v0.3.22.

English

Resume no longer truncates the transcript. A foreground refresh and the reconnect resync asked the server for its default page — 50 messages — and replaced the whole loaded transcript with it. Older exchanges and the subagent cards derived from them disappeared until the session was reopened. The refresh now asks for the configured page (or the whole session), keeps the history already on screen, and a late answer can no longer land in a session you just switched to.

One line of activity per answer. Every reasoning block and every tool card used to print in sequence, so a long run pushed the answer off the screen. Everything the model did between two answers — its thinking and every tool call — now folds into one spoiler row that names what ran and how long it took (5 · Shell, Read · 12.3s), with a spinner while it works and an error mark on failure. Opening it shows the previous design unchanged. Consecutive assistant steps are a single transcript row, so the header, the copy button and the token totals appear once. A subagent delegation is deliberately left outside the spoiler: folding it would hide the only way into the child session.

A navigator for long transcripts. The floating "latest" button could cover a line of text. It is now a compact pill row above the composer — counter, one message up, one message down, double chevron to the end — that appears while you scroll and fades 3.5 s after the motion stops. It walks your own messages, because a question never streams, merges or changes height while an answer does. The position comes from the rows actually laid out, so it is correct the moment a session opens and the first tap works without a preliminary swipe.

Errors are visible. useSessions.error was written in fifteen places and rendered nowhere: a failed load or send looked like an empty, frozen session. A banner now shows the server's text, what to do next, and Copy / Dismiss. The reconnect banner adds the last disconnect reason.

Two crashes fixed in markdown rendering. react-native-marked 8.0.0 fetches an image's size in an effect with no dependency array, so any ![](url) re-rendered until React's update-depth guard killed the session; images now render through an app-owned component with the fetch scoped to the URI. React keys no longer come from github-slugger, which stored a property per call on a long-lived renderer and could hit Hermes' 196,607-property limit inside one huge message.

Tool durations survive a reopen. The server sends a tool part's own clock (created, ran, completed) and the history mapper dropped it, so a reopened session had no durations and the folded run could not show its total. Both transports now share one bounded SSE handshake: the V1 stream used to dial without a deadline and could hang forever after reporting "connected".

APK

  • opencode-mobile-v2.apk — 97.9 MiB, versionCode 86, signed with the permanent release key (installs over 0.3.20)
  • SHA256: de16c23b9f01ea851c26b18ea14e95418ccc76ae31061d243e00697770a0b99f

Tests alone were not enough to catch the navigator bugs on a phone, so the CUA smoke on an Android 15 emulator now drives the spoiler, the navigator (one tap = one message, verified against the visible text) and a real markdown image. 833 unit and integration tests are green.


Русский

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

Работа модели — одна строка на ответ. Каждый блок рассуждений и каждая карточка инструмента выводились подряд, и долгий прогон выталкивал ответ с экрана. Теперь всё, что модель сделала между двумя ответами — рассуждения и все вызовы инструментов, — сворачивается в одну строку, которая называет, что запускалось, и сколько это заняло (5 · Оболочка, Чтение · 12.3s), со спиннером во время работы и крестиком при ошибке. Раскрытие показывает прежнее оформление без изменений. Подряд идущие шаги ассистента стали одной строкой ленты, поэтому шапка, «Скопировать» и токены появляются один раз. Делегирование сабагента намеренно остаётся снаружи: сворачивание спрятало бы единственный вход в дочернюю сессию.

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

Ошибки видны. useSessions.error писался в пятнадцати местах и не показывался нигде: неудачная загрузка или отправка выглядели как пустая замершая сессия. Теперь баннер показывает текст сервера, что делать дальше, и «Копировать» / «Скрыть». Баннер переподключения добавляет причину последнего обрыва.

Два падения в отрисовке markdown исправлены. react-native-marked 8.0.0 запрашивает размер картинки в эффекте без массива зависимостей, поэтому любой ![](url) перерисовывался до срабатывания защиты React от глубины обновлений; теперь картинки рисует свой компонент с запросом по URI. Ключи React больше не берутся из github-slugger, который хранил свойство на каждый вызов в долгоживущем рендерере и мог упереться в лимит Hermes в 196 607 свойств внутри одного огромного сообщения.

Длительность инструментов переживает переоткрытие. Сервер присылает собственные часы tool-части (created, ran, completed), а маппер истории их выбрасывал, поэтому в переоткрытой сессии не было длительностей и свёрнутая строка не могла показать общее время. Оба транспорта теперь используют общее рукопожатие SSE с лимитом: поток V1 раньше подключался без срока и мог висеть вечно, уже отчитавшись «подключено».

APK

  • opencode-mobile-v2.apk — 97.9 МиБ, versionCode 86, подписан постоянным релизным ключом (ставится поверх 0.3.20)
  • SHA256: de16c23b9f01ea851c26b18ea14e95418ccc76ae31061d243e00697770a0b99f

Тесты сами по себе не поймали баги навигатора на телефоне, поэтому CUA smoke на эмуляторе Android 15 теперь прогоняет спойлер, навигатор (один тап = одно сообщение, проверяется по видимому тексту) и настоящую markdown-картинку. 833 юнит- и интеграционных теста зелёные.

v0.3.20 — subagents, no clipped text, diff scrolling, background fixes

Choose a tag to compare

@cfyz1297 cfyz1297 released this 15 Nov 16:34

⚠️ Устарел — используйте v0.3.21.
⚠️ Outdated — use v0.3.21.

English

The four long-standing display bugs from this round are fixed, and delegated subagents are now part of the transcript.

Subagents are visible and openable

A delegation used to leave no trace: the subagent tool returns at dispatch time, so the parent looked idle while a child agent worked, and the child session only appeared as a stray row in the Recent list.

  • The card that launched the subagent draws a row — task name, agent, live status pill (Running / Done / Failed / Idle) — always visible, not behind the chevron.
  • Tapping it opens the child session exactly like a session from the list, in the same workspace as the parent.
  • Two counters under the header: the left one opens the current batch (the subagents delegated by the latest prompt, plus anything still working from an earlier one), the right one opens every subagent of the session, running first.
  • Child sessions are kept out of the Recent list, and a child that finished — or failed — before the app connected still shows the right status, taken from its own run stamps.

The last line of a message is no longer cut in half

This was the "правка 2" screenshot: a paragraph's final line sliced horizontally. Root cause: React Native implements lineHeight with spans, and CustomLineHeightSpan pins the bottom of a block's last line to the font's reported descent. On a phone with a themed system font the glyphs reach below that descent, so the bottom of the last line was clipped while inner lines merely overlapped. That is why the cut always landed on the final line and never reproduced on the emulator at any density. lineHeight is no longer set, so Android derives the line box from the real font metrics.

Code in a tool card scrolls sideways

The whole card was one TouchableOpacity, so a drag on a diff bubbled up as a press and collapsed the card — the code did not "refuse to scroll", it disappeared under the finger. Only the header is pressable now, and the horizontal ScrollView sets nestedScrollEnabled for the vertical transcript list.

No dark screen after a long background run

HeadlessJsTaskService returns START_REDELIVER_INTENT, so Android restarted the keep-alive service after a process death and booted a headless React instance; the next launch attached the Activity to a host started without one — the splash never hid and the app closed. It now returns START_NOT_STICKY. Android 15 also caps dataSync foreground services at six hours per 24 and kills the app when the budget runs out, so the service uses specialUse on API 34+ and stops itself on timeout.

Question cards where the question was asked

A pending question used to render above the composer, outside the transcript: anyone scrolled up never saw it and the run looked hung. Questions now render under the message whose form asked them, and the transcript jumps to the newest one.

Also

  • Camera launch that throws no longer leaves the button dead.
  • aborted from speech recognition is no longer reported as an error.
  • The event stream gives up after 15 s if the server never answers headers, instead of showing "Connected" over a dead socket.
  • README rewritten: the comparison with upstream is now built from verified facts about v0.4.19.

SHA256 of opencode-mobile-v2.apk:

2f836d8a176852f77e24b8569732f5a1a60c32898e09e48635df152f4b685e9c

Notes

  • 746 automated tests, typecheck and an Android 15 CUA smoke run on every build.
  • Installs over 0.3.17 in place — same signing key, versionCode 85.

Русский

Четыре давних дефекта отображения из этого круга исправлены, и делегированные сабагенты стали частью переписки.

Сабагенты видны и открываются

Делегирование не оставляло следа: инструмент subagent возвращается в момент запуска, поэтому родитель выглядел простаивающим, пока ребёнок работал, а дочерняя сессия появлялась только случайной строкой в списке «Недавние».

  • Карточка запустившего инструмента рисует строку — имя задачи, агент, живой статус (Работает / Готово / Ошибка / Ожидает) — всегда видна, не за шевроном.
  • Тап открывает дочернюю сессию так же, как обычную из списка, в том же рабочем пространстве, что и родитель.
  • Два счётчика под шапкой: левый открывает текущую партию (сабагенты последнего запроса плюс всё ещё работающие из прошлых), правый — все сабагенты сессии, работающие сверху.
  • Дочерние сессии не попадают в «Недавние», а ребёнок, завершившийся или упавший до подключения приложения, всё равно показывает верный статус — он берётся из штампов его собственного прогона.

Последняя строка сообщения больше не обрезается

Это тот самый скриншот с «Правкой 2»: последняя строка абзаца, срезанная по горизонтали. Причина: RN реализует lineHeight спанами, и CustomLineHeightSpan приравнивает низ последней строки блока к заявленному descent шрифта. На телефоне с темой системного шрифта глифы выходят ниже этого descent, поэтому низ последней строки срезался, а внутренние строки только перекрывались. Поэтому дефект всегда попадал на последнюю строку и не воспроизводился на эмуляторе ни при какой плотности. lineHeight больше не задаётся, и Android считает коробку строки по реальным метрикам шрифта.

Код в карточке инструмента листается вбок

Вся карточка была одним TouchableOpacity, поэтому свайп по диффу всплывал в неё и сворачивал карточку — код не «отказывался листаться», а исчезал под пальцем. Теперь нажимается только заголовок, а горизонтальный ScrollView получает nestedScrollEnabled для вертикальной ленты.

Тёмный экран после долгого фона больше не появляется

HeadlessJsTaskService возвращает START_REDELIVER_INTENT, поэтому после смерти процесса Android перезапускал keep-alive сервис и поднимал headless React-инстанс; следующее открытие прикрепляло Activity к хосту, запущенному без Activity, — сплэш не скрывался, и приложение закрывалось. Теперь возвращается START_NOT_STICKY. Кроме того, Android 15 ограничивает foreground-сервис dataSync шестью часами за 24 и убивает приложение по исчерпании бюджета, поэтому сервис использует specialUse на API 34+ и останавливается сам по таймауту.

Карточка вопроса там, где вопрос задан

Неотвеченный вопрос рисовался над композером, вне ленты: прокрутившийся выше его не видел, и прогон выглядел зависшим. Теперь вопрос рисуется под сообщением, чья форма его задала, и лента прыгает к самому свежему.

Также

  • Падающий запуск камеры больше не оставляет кнопку мёртвой.
  • aborted от распознавания речи не показывается как ошибка.
  • Поток событий сдаётся через 15 с, если сервер не отдал заголовки, вместо «Connected» над мёртвым сокетом.
  • README переписан: сравнение с оригиналом теперь построено на проверенных фактах о v0.4.19.

SHA256 файла opencode-mobile-v2.apk:

2f836d8a176852f77e24b8569732f5a1a60c32898e09e48635df152f4b685e9c

Примечания

  • 746 автотестов, typecheck и CUA smoke на Android 15 в каждой сборке.
  • Ставится поверх 0.3.17 без удаления — тот же ключ подписи, versionCode 85.

v0.3.17 — уведомления в фоне, иконки по категориям, ответы на вопросы в ленте

Choose a tag to compare

@cfyz1297 cfyz1297 released this 14 Nov 08:39
32c152f

⚠️ Outdated — use v0.3.20. 0.3.17 shipped a wrong fix for the clipped last line: an android:textViewStyle override that Fabric text never used. The real cause was lineHeight.

English

Notifications finally work on a phone in a pocket, and the answered-question card stays where the question was. Two regressions from this cycle were reverted, not patched.

  • Background notifications. React Native pauses its own JS timers when the app leaves the foreground (JavaTimerManager drops the frame callback while isPaused and no headless task is active), so nothing generated notifications and only the SSE replay on resume made them appear. KeepAliveService is now a HeadlessJsTaskService that keeps a headless task alive for the whole run, and the watch polls the server (/api/session/active) instead of local state. Completion, questions and permission requests reach a locked phone.
  • Notification icons. Android draws a small icon as a monochrome mask; expo-notifications falls back to the full-colour app icon (a white square) and can only use one icon per app. Notifications are now posted by a small native module with a vector mask per category: question, error, completed, permission.
  • "Session running" card is gone. The foreground service cancels its own notification right after promotion; the service keeps its foreground state, so the background watch keeps running. The channel is untouched — deleting it crashed the app in 0.3.16, which is fully reverted.
  • Answered questions stay under the message that asked them. The card used to render above the composer, i.e. under the newest answer. V2 form metadata names the message, so the card renders there.
  • Model picker above the keyboard. Opening the picker now dismisses the IME first, like the reasoning-effort picker; the sheet no longer mounts under a keyboard that is already up.
  • Notifications only while the app is in the background, one per finished run, deduplicated between the stream and the poll, dropped if they arrive while the chat is on screen.
  • Settings cleanup. The Notifications section is the OS permission state plus the five switches.

Installs over 0.3.15 — no uninstall needed. CI: 720 tests, typecheck, coverage gate, release-APK checks (permissions, service, signature) and the CUA smoke.

APK SHA256 (opencode-mobile-v2.apk):

11f171061c27f0f3332c5e2ede99b75582a68f5327b93ec76fb413805f8999b7

Русский

Уведомления наконец работают на телефоне в кармане, а карточка отвеченного вопроса остаётся там, где вопрос был задан. Два регресса этого цикла откачены, а не залатаны.

  • Уведомления в фоне. React Native сам останавливает JS-таймеры, когда приложение уходит в фон (JavaTimerManager снимает колбэк кадров, пока isPaused и нет активной headless-задачи), поэтому уведомления не рождались вовсе — их приносил только реплей SSE при открытии. KeepAliveService теперь HeadlessJsTaskService и держит headless-задачу весь прогон, а сторож опрашивает сервер (/api/session/active) вместо локального состояния. Завершение, вопросы и запросы разрешений доходят до заблокированного телефона.
  • Иконки уведомлений. Android рисует small icon как монохромную маску; expo-notifications подставляет полноцветную иконку приложения (белый квадрат) и умеет одну иконку на всё приложение. Теперь уведомления публикует небольшой нативный модуль с векторной маской на категорию: вопрос, ошибка, завершение, разрешение.
  • Карточка «Сессия выполняется» убрана. Foreground-сервис отменяет своё уведомление сразу после промоушена; сервис сохраняет foreground-состояние, поэтому фоновый сторож продолжает работать. Канал не трогается — его удаление роняло приложение в 0.3.16, и та версия откачена целиком.
  • Отвеченный вопрос остаётся под сообщением, которое его задало. Карточка рисовалась над композером, то есть под самым новым ответом. V2-форма называет сообщение, поэтому карточка рендерится там.
  • Выбор модели над клавиатурой. Перед открытием шита клавиатура закрывается — как у выбора усилия; шит больше не монтируется под уже поднятым IME.
  • Уведомления только когда приложение свёрнуто, одно на завершённый прогон, с дедупликацией между потоком и опросом, и выбрасываются, если пришли при открытом чате.
  • Чистка настроек. Раздел «Уведомления» — это статус системного разрешения и пять переключателей.

Ставится поверх 0.3.15 без удаления приложения. CI: 720 тестов, typecheck, порог покрытия, проверки релизного APK (разрешения, сервис, подпись) и CUA smoke.

SHA256 APK (opencode-mobile-v2.apk):

11f171061c27f0f3332c5e2ede99b75582a68f5327b93ec76fb413805f8999b7

⚠️ Устарел — используйте v0.3.20. В 0.3.17 было неверное лечение обрезки последней строки: override android:textViewStyle, который Fabric-текст всё равно не использовал. Настоящая причина — lineHeight.

v0.3.7 — голосовой ввод, выбор модели и усилия, Expo SDK 58

Choose a tag to compare

@cfyz1297 cfyz1297 released this 12 Nov 07:36
9151d96

⚠️ Устарел — используйте v0.3.17.
⚠️ Outdated — use v0.3.17 instead.

English

Voice input works for the first time, and both pickers open again. This release also moves the app to Expo SDK 58.

  • Voice input. expo-image-picker was configured with microphonePermission: false, and that plugin treats the value as blocking the permission: expo wrote <uses-permission android:name="android.permission.RECORD_AUDIO" tools:node="remove"/>, so RECORD_AUDIO never reached the assembled manifest and the permission request could only answer "denied". The option shipped in the same commit as voice input, so the feature never worked. CI now fails the build if the release APK lacks the permission.
  • Model and reasoning-effort pickers. @gorhom/bottom-sheet 5.2.8 measured the window incorrectly under React Native 0.88 / edge-to-edge, so the sheet mounted off-screen: the chip tap landed and nothing appeared. Bumped to 5.2.14.
  • "Unregistered ActivityResultLauncher" no longer needs a restart. From expo-modules-core 58 the activity-result registry re-registers a launcher on its next use instead of throwing after Android destroys the Activity while the process lives.
  • Expo SDK 58, React Native 0.88.1, React 19.3.0. SDK 58 regenerates android/ on every prebuild, so release signing, dependenciesInfo, usesCleartextTraffic and the IME reporter moved into a config plugin instead of hand-edited native files.
  • The CUA smoke now exercises both pickers — picking a model and a reasoning effort, checking the chip label follows, and dumping logcat on failure.

Installs over 0.3.6 — no uninstall needed. Verified on a real device (photo attachment, model and effort selection, voice input) and in CI: 667 tests, typecheck, coverage gate, release APK smoke.

APK SHA256 (opencode-mobile-v2.apk):

dddffedb9203cfbdce9c45f350edba580a3d81aab7bb9e49d02e684918ed1c6f

Русский

Голосовой ввод впервые работает, шиты выбора модели и усилия снова открываются. Плюс приложение переехало на Expo SDK 58.

  • Голосовой ввод. В expo-image-picker стоял microphonePermission: false, а этот плагин трактует false как блокировку разрешения: expo писал <uses-permission android:name="android.permission.RECORD_AUDIO" tools:node="remove"/>. В итоговый манифест RECORD_AUDIO не попадал, поэтому запрос разрешения мог ответить только «denied». Опция появилась тем же коммитом, что и голосовой ввод, — фича не работала никогда. Теперь CI валит сборку, если в релизном APK нет этого разрешения.
  • Шиты выбора модели и усилия. @gorhom/bottom-sheet 5.2.8 неверно считал высоту окна под React Native 0.88 / edge-to-edge, и шит монтировался вне экрана: тап по чипу срабатывал, а на экране ничего не появлялось. Обновлено до 5.2.14.
  • «Unregistered ActivityResultLauncher» больше не требует перезапуска. Начиная с expo-modules-core 58 реестр activity-result перерегистрирует лончер при следующем использовании, вместо того чтобы бросать исключение после уничтожения Activity при живом процессе.
  • Expo SDK 58, React Native 0.88.1, React 19.3.0. SDK 58 пересоздаёт android/ на каждом prebuild, поэтому подпись релиза, dependenciesInfo, usesCleartextTraffic и IME-репортер переехали в config-плагин вместо правки нативных файлов руками.
  • CUA smoke теперь реально проверяет оба шита — выбирает модель и усилие, проверяет, что подпись на чипе меняется, и дампит logcat при падении.

Ставится поверх 0.3.6 без удаления приложения. Проверено на живом устройстве (прикрепление фото, выбор модели и усилия, голосовой ввод) и в CI: 667 тестов, typecheck, порог покрытия, smoke релизного APK.

SHA256 APK (opencode-mobile-v2.apk):

dddffedb9203cfbdce9c45f350edba580a3d81aab7bb9e49d02e684918ed1c6f

v0.3.6 — исправлено прикрепление фото / photo attachment fixed

Choose a tag to compare

@cfyz1297 cfyz1297 released this 11 Nov 09:07
efcabf4

⚠️ Устарел — используйте v0.3.7.

English

Fixes attaching a photo from the chat composer.

  • Tapping + no longer dies before the picker opens. On the reporting device the system photo-picker activity rejected the launch immediately, so the only feedback was "image not attached" with no picker on screen. The app now retries once with the legacy ACTION_GET_CONTENT intent, which the device's file manager answers.
  • A failure now names its reason. A rejected picker and a failed JPEG conversion used to show the same generic alert, so a report could not tell them apart. The technical reason is written to the log buffer (included in diagnostics reports) and shown in the alert.

Installs over 0.3.5 — no uninstall needed. Verified in CI: 664 tests, typecheck, coverage gate, and the release APK smoke on an Android 15 emulator.

APK SHA256 (opencode-mobile-v2.apk):

59217a73eda080ebbc11863ed325cd7951b762c33dc6cf3841cccdf50b18c2a4

Русский

Исправляет прикрепление фото из поля ввода чата.

  • Тап по «+» больше не падает до открытия пикера. На устройстве, где это воспроизвелось, системная activity выбора фото отклоняла запуск сразу, и единственной реакцией было «изображение не прикреплено» без единого экрана пикера. Теперь приложение повторяет попытку со старым интентом ACTION_GET_CONTENT, который обслуживает файловый менеджер устройства.
  • Ошибка называет причину. Отказ пикера и сбой конвертации в JPEG показывали один и тот же общий алерт, поэтому по отчёту нельзя было понять, что именно произошло. Теперь техническая причина пишется в буфер логов (уходит вместе с отчётом диагностики) и показывается в алерте.

Ставится поверх 0.3.5 без удаления приложения. Проверено в CI: 664 теста, typecheck, порог покрытия и smoke релизного APK на эмуляторе Android 15.

SHA256 APK (opencode-mobile-v2.apk):

59217a73eda080ebbc11863ed325cd7951b762c33dc6cf3841cccdf50b18c2a4

0.3.5 — tool duration fix / время работы инструмента

Choose a tag to compare

@cfyz1297 cfyz1297 released this 10 Nov 14:51

⚠️ Устарел — используйте v0.3.6.

English

0.3.5 (70) — a long-running tool no longer looks like a frozen app. Installs over 0.3.4 without uninstalling.

  • Elapsed time while a tool runs. The tool row printed a duration only when both the start and the end timestamp were present, and a running tool has no end — so a ten-minute command sat there with no sign of life and the session looked hung. It now ticks the elapsed time every second, and reads 5m 05s past the first minute.
  • V2 servers send no tool timing at all. Checked against the live server: every tool part arrives as {status, input, content, metadata} with no time field, so there was nothing to measure even for finished tools. The V2 compatibility layer now builds that window from the event timestamps: the first event of a call opens it, the terminal one closes it.

No other behaviour changed.

APK: opencode-mobile-v2.apk + SHA256SUMS.txt.


Русский

0.3.5 (70) — долго работающий инструмент больше не выглядит как зависшее приложение. Ставится поверх 0.3.4 без удаления приложения.

  • Прошедшее время, пока инструмент работает. Длительность в строке показывалась только когда есть и начало, и конец, а у выполняющегося инструмента конца нет — поэтому десятиминутная команда висела без признаков жизни, и сессия выглядела зависшей. Теперь время тикает каждую секунду, а после первой минуты показывается как 5m 05s.
  • V2-сервер вообще не присылает время инструментов. Проверено на живом сервере: каждая часть приходит как {status, input, content, metadata} без поля time, так что измерять было нечего даже у завершённых вызовов. Слой совместимости с V2 теперь строит это окно из отметок событий: первое событие вызова открывает его, завершающее — закрывает.

Другое поведение не менялось.

APK: opencode-mobile-v2.apk + SHA256SUMS.txt.

0.3.4 — inline code and model picker fixes / inline-код и списки моделей

Choose a tag to compare

@cfyz1297 cfyz1297 released this 10 Nov 14:20

⚠️ Устарел — используйте v0.3.5: он содержит эти же исправления плюс время работы инструмента.

English

0.3.4 (69) — two fixes: inline code in chat was drawn with misplaced highlight bars that cut letters, and the model / reasoning-effort pickers could come up empty after the phone came back. Installs over 0.3.3 without uninstalling.

  • Chat text renders cleanly. Inline code was highlighted with a background bar. On Android that bar is positioned from the code span's own box, and for a span that wraps it is taller than its line: the bar starts above the previous line and covers the letters there, and a smaller code font shifts it about half a line down. Reproduced on an Android emulator in several style variants — the bars themselves are what corrupted the text, not the glyphs. Inline code is now marked by colour and monospace only, so there is no rectangle that can land in the wrong place.
  • The model and effort sheets no longer come up empty. The provider catalog was fetched once per connection. If that single request landed while the phone was locked or the server was asleep, the list stayed empty for the rest of the session and only Settings → Models revived it (that screen loads the catalog itself). Now a failed request keeps the list already loaded, returning to the app refreshes it, and opening the picker with an empty catalog fetches again before showing the sheet.

APK: opencode-mobile-v2.apk + SHA256SUMS.txt.


Русский

0.3.4 (69) — два исправления: inline-код в чате рисовался съехавшими плашками, которые резали буквы, а списки моделей и усилия могли остаться пустыми после возврата к телефону. Ставится поверх 0.3.3 без удаления приложения.

  • Текст в чате отрисовывается чисто. Inline-код подсвечивался плашкой. На Android плашка позиционируется по собственному боксу фрагмента кода, и если фрагмент переносится, плашка выше своей строки: она начинается над предыдущей строкой и закрывает буквы там, а уменьшенный шрифт кода сдвигает её примерно на полстроки вниз. Воспроизведено на эмуляторе Android в нескольких вариантах стиля — портит текст именно прямоугольник, а не глифы. Теперь inline-код выделяется только цветом и моноширинным шрифтом, так что прямоугольнику негде съехать.
  • Списки моделей и усилия больше не пустые. Каталог провайдеров запрашивался один раз на соединение. Если этот единственный запрос приходился на заблокированный телефон или спящий сервер, список оставался пустым до конца сессии, и оживляли его только Настройки → Модели (этот экран загружает каталог сам). Теперь неудачный запрос сохраняет уже загруженный список, возврат в приложение обновляет каталог, а открытие списка с пустым каталогом сначала запрашивает его заново.

APK: opencode-mobile-v2.apk + SHA256SUMS.txt.

0.3.3 — update notice, background answer, long-background hang

Choose a tag to compare

@cfyz1297 cfyz1297 released this 07 Nov 21:35

English

0.3.3 (68) — three device fixes: the in-app update notice, the re-typing of an answer received in the background, and a session that hung after a long background. Installs over 0.3.2 without uninstalling.

  • The update notice works again. Opening the release page now marks that version as seen and hides the strip. Linking.openURL resolves to void, so the previous truthiness check never dismissed it. The banner also re-checks whenever the app returns to the foreground, and the About row refreshes every time Settings is opened instead of only on the first mount.
  • An answer received in the background no longer re-types itself. Returning after a long pause replaces the SSE stream before refreshing the transcript, so the buffered backlog cannot replay older, shorter snapshots over the complete answer. Text and reasoning parts additionally only grow while a run streams.
  • A long background no longer hangs the session. Android can kill the event socket without an error while JS is suspended, and the stall watchdog only watched active runs. Returning after 15+ seconds now opens a fresh stream and re-syncs the open session, the busy state and pending permission/question forms, instead of staying silent until the next prompt waits out the 30-second window. A quick app switch keeps the existing stream.

APK: opencode-mobile-v2.apk + SHA256SUMS.txt.

Verification: 651 tests, tsc --noEmit, coverage 98.36 % lines / 86.22 % branches / 97.24 % functions; gitleaks secret scan and Android CUA smoke in CI.


Русский

0.3.3 (68) — три исправления с устройства: оповещение об обновлении, повторная «печать» ответа, полученного в фоне, и зависание сессии после долгого сворачивания. Ставится поверх 0.3.2 без удаления приложения.

  • Оповещение об обновлении снова работает. Открытие страницы релиза теперь помечает версию просмотренной и убирает плашку: Linking.openURL резолвится в void, поэтому прежняя проверка результата не срабатывала никогда. Плашка также перепроверяет обновления при возврате приложения на передний план, а строка «О приложении» обновляется при каждом открытии настроек, а не только при первом монтировании.
  • Ответ, полученный в фоне, больше не печатается заново. При возврате после долгой паузы приложение заменяет поток SSE до обновления транскрипта, поэтому накопившийся бэклог не перерисовывает готовый ответ более старыми и короткими снимками. Кроме того, текстовые части и рассуждения только растут во время прогона.
  • Долгое сворачивание больше не вешает сессию. Android может убить сокет событий без ошибки, пока JS приостановлен, а сторож зависаний следил только за активными прогонами. Возврат после 15+ секунд в фоне теперь открывает новый поток и пересинхронизирует открытую сессию, статус занятости и висящие формы подтверждений/вопросов, вместо того чтобы молчать до следующего промпта (до 30 секунд). Быстрое переключение приложений поток не трогает.

APK: opencode-mobile-v2.apk + SHA256SUMS.txt.

Проверки: 651 тест, tsc --noEmit, покрытие 98.36 % строк / 86.22 % ветвей / 97.24 % функций; скан секретов gitleaks и Android CUA smoke в CI.