Repository navigation
v0.3.20 — subagents, no clipped text, diff scrolling, background fixes
⚠️ Устарел — используйте 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.
abortedfrom 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.