Skip to content

Merge dev into main - #69

Merged
Tarquinen merged 125 commits into
mainfrom
dev
Nov 16, 2026
Merged

Tarquinen merged 125 commits into
mainfrom
dev

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Releases everything on dev since 0.7.0.

Languages

  • The app is translated into 56 languages. It follows the phone's language, or the one picked for OpenCode in Android's app language settings, and falls back to English
  • Settings › Language picks the app's language, with search and the phone's languages suggested first

Chat

  • The conversation stays anchored at the bottom as replies stream in. Sending clears the composer, and Jump to Latest scrolls smoothly to the newest message
  • Tool details expand in place and stay above the composer
  • Images in replies from outside the session's folder wait for a tap before loading, so scrolling past them doesn't start that folder on the computer
  • The agent picker shows in the composer by default, so you can switch between Build and Plan (turn it off in Settings › Sessions › Agent Selection). Its menu is a compact list above the composer that keeps the keyboard up, and the agent and model chips are each just a name and a small arrow
  • File cards and file links show only for files that exist. A bare file name links to the file when exactly one file in the project has that name
  • Quoting text from a reply adds a quote card to the composer instead of > text, as on desktop. Tap a card to add a comment. Quotes and comments are sent the way desktop sends them, so they show as cards on both

Full-screen viewer

  • Draw on an image in the full-screen viewer and add it to the prompt. Works on chat images, photos waiting in the composer and image files from the agent. The original stays as it was and nothing is sent
  • Images and videos page through one zoomable gallery, and you can draw on a paused video frame
  • A marked-up image slides from the viewer into its thumbnail in the composer
  • New viewer controls that show as soon as it opens: dark gradients at the top and bottom, a back arrow with the title, page dots, and a gap between pages
  • Videos get a thin progress bar that grows while you drag, with the frame following your finger, and a large play button. The controls hide a few seconds into playback
  • Photos, videos and documents grow out of their thumbnail or card when opened and shrink back into it on close. A zoomed photo closes from where it's zoomed, and a photo you swiped to closes into its own thumbnail

Links

  • Experimental › Open Links by Server Address lets other tools link to a session on a saved server by its address, including the web app's session links
  • A pairing link or QR code can name the server. A name you gave the server yourself still wins when you pair again

Fixes

  • Dragging a text selection handle near the screen edge no longer opens the drawer
  • Questions take taps again after a slow swipe to fold or unfold them, so you can answer them and the "N questions left" bar opens them
  • Models that load after the session opens show up without reopening it
  • On GPT-Live calls the voice speaks as the one doing the work, instead of saying it's asking someone else
  • A photo in a saved draft is no longer lost when saving it fails
  • Queued, dictated and shared sends move the session to the top of Recents, like any other send
  • With a subagent open, Raise to Talk starts one call, for the screen you're looking at
  • Picking an agent in an existing session updates the agent chip straight away
  • A file that didn't load in the viewer shows a centred, readable message, without the draw button or an empty action bar

Speed and battery

  • The model shows sooner when a session first opens
  • The drawer's dot for a waiting permission or question shows straight away when several projects are busy
  • Streaming long tool output uses less memory, and streaming reasoning uses less CPU
  • With your own OpenAI key, GPT-Live keeps its connection warm for one minute on the screen in front, instead of for as long as any session screen is open
  • Sent photos are let go from memory after they've been delivered
  • A finished session stops checking the server every few seconds, and a session hidden behind another screen stops checking until you come back
  • Long voice calls keep only their newest captions, and the app keeps saved call notes for the 64 most recent sessions

Behind the scenes

  • The app's text now comes from strings.xml. scripts/translate.py translates new strings, and CI checks every language is complete
  • One full-screen viewer replaces the separate image and file viewers, and its open, close and drag motion is rebuilt with standard Compose, replacing the hand-built flight code
  • Debug builds show as "OpenCode Dev" with the desktop dev icon
  • A flaky test fixed, and AGENTS.md gains comment rules and a rule for where UI text goes
  • Trimmed outdated comments across the Android codebase, including names, dates and ticket references

PRs: #57, #59, #60, #61, #62, #63, #64, #65, #67, #68, #70, #77, #78, #79, #81, #82, #83, #84, #85, #86, #87, #88, #89, #90, #91, #93, #95, #96, #97, #98, #99, #100, #101, #102, #103, #105, #106, #107

Tarquinen and others added 30 commits November 12, 2026 17:02
…e drawer

Dragging a reply selection handle that sits in the leading 28 dp edge
(any selection starting at a line start) opened the session drawer while
the selection moved too. The drawer's pan sees every touch first, and the
edge always wins; iOS skipped this with BackSwipeRules.selectionHandleClaims,
which Android never ported on the belief that Compose handles consume their
own drags (the transcript's handles are drawn by TranscriptReplySelection,
not Compose's popups).

- DirectionalPan: on a shut drawer, a touch within reach of a selection
  handle never starts the pan (iOS DirectionalPanGestureRecognizer).
- The transcript list registers its handles with the new
  Modifier.drawerPanSelectionHandles (TranscriptReplySelection.handleAt,
  24 dp reach); SessionPageStack forwards them to the drawer.
- hasBegunHold now reads positionChangeIgnoreConsumed(): positionChange()
  is zero once a child consumed the move, so the check could never pass.
- Stale "handles consume their own drags" comments and parity rows updated.

Verified: scripts/check.sh :core :feature:drawer :feature:transcript
:feature:session on the Android VM. Emulator (session-lab, 3-button nav so
the edge reaches the app): before, dragging the start handle of a
selection at a line start opened the drawer; after, the selection moves
and the drawer stays shut. Edge and mid-screen swipes on the transcript
still open the drawer; long-press selection still works.

Fixes anomalyco/opencode#63530
fix(drawer): let selection handle drags through instead of opening the drawer
* Use the desktop dev icon and label for Android debug builds

* Share production launcher mark geometry with the debug icon

* Scale the original desktop dev artwork inside the Android launcher mask

* Extend the blueprint beyond the Android mask without resizing the mark
An open upstream proves only one collector registered. Drain the test dispatcher before cancelling either window and after each cancellation instead of polling wall time. Verified with 25 focused runs, :server:testDebugUnitTest and scripts/check.sh :server.
Android is no longer required to behave exactly like the iOS app. AGENTS.md and
docs/parity/README.md now describe iOS as a reference the app was ported from:
the "Behave exactly like iOS" rule, "behaviour, flows and copy still follow iOS"
and "a ported test that fails is a parity bug" are removed. The parity tables stay
as a map between the two codebases, with deliberate differences noted in the row.

Adds the rule for UI text: string resources per module, module-prefixed names,
shared common_* words in :core.

Docs only; nothing to build.
Screen text is moving out of Kotlin into strings.xml so the app can be translated.
core gets the common words other modules share (strings_common.xml) and its own
few composable strings. Unit tests now include Android resources so Robolectric
tests can read them.

Verified with the full check on the Android VM (assembleDebug, lintDebug,
testDebugUnitTest), run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Text written inside composables (and Context-holding system UI) now comes from
string resources. The English wording is unchanged. Text built in reducers,
models and exceptions stays in Kotlin for now.

Verified with the full check on the Android VM, run on the whole branch.
Reducers, models, enums and errors have no composition to call stringResource in.
localized() and localizedPlural() read a string resource through a StringsClient
dependency and return a plain String, so types and callers stay as they are. Under
unit tests the client returns the English text from the XML files, so tests keep
asserting the words a user reads.

Dates and numbers now follow the language of the app's text (core_language_tag)
instead of always English. The app's languages are one list in app/build.gradle.kts,
which also feeds Android's per-app language setting.

Verified on the Android VM: app assembles, core, server and transcript unit tests pass.
Experiment titles, theme names, notice modes, device names, file sizes and staging errors now read their text through localized(). File sizes use the app's formatting locale. Verified: assembleDebug, lintDebug and testDebugUnitTest pass for every module on the Android VM.
Error messages, pairing link reasons, connection routes, run notices and model labels now come from server/src/main/res. UNREACHABLE_MESSAGE, FOLDER_GONE_MESSAGE and DENIED_MESSAGE become getters. ConnectionRoute gains a translated title and PastedText a translated title; rawValue and NAME stay English because they are logged or sent. Text matched against the server or sent to a model stays English. Verified: assembleDebug, lintDebug and testDebugUnitTest pass for every module on the Android VM.
Link menu titles, file loader errors, download progress, file sizes and link preview labels. TranscriptImagePreview pages gain labelIsPlaceholder so the viewer no longer has to recognise a placeholder label by its English words. Verified: assembleDebug, lintDebug and testDebugUnitTest pass for every module on the Android VM.
Call status captions, provider and key labels, fixes, diagnosis sentences, accents, sound packs and call log durations. Call errors stay English in code because they are compared, logged and sent to the model; voiceFailureDisplayText translates the known ones for the screen. Prompts and tool descriptions are unchanged. Verified: assembleDebug, lintDebug and testDebugUnitTest pass for every module on the Android VM.
Shortcut titles, Ask OpenCode results, Live Update statuses, notification text and share sheet messages. Manifest tile and widget labels point at string resources. Verified: assembleDebug, lintDebug and testDebugUnitTest pass for every module on the Android VM.
Tool row summaries, run error rows, time stamps, pending actions and link preview summaries. GitHub preview states show their translated title instead of the wire value. Verified: assembleDebug, lintDebug and testDebugUnitTest pass for every module on the Android VM.
Reducer errors, request bar verbs, attachment menu items, camera lens labels and model picker labels. The send button takes a verb instead of comparing its label with "Send", and the request error line recognises the HTTP status message without matching English words. Location text sent to the model stays English. Verified: assembleDebug, lintDebug and testDebugUnitTest pass for every module on the Android VM.
Reducer alert titles and errors, session status, starter prompts, the server pill and the background work row, whose counts are now plurals. A failed move keeps its English reason as data and shows a translated one. Verified: assembleDebug, lintDebug and testDebugUnitTest pass for every module on the Android VM.
Selection menu labels, row accessibility text, server status and hints, errors and the age formatters. Removes five unused DrawerTitle constants. The trace check compares the call phase instead of the status caption. Verified: assembleDebug, lintDebug and testDebugUnitTest pass for every module on the Android VM.
The 175 entries read their title, summary, details, example and prompt from strings_whatsnew_entries.xml. The entry list is rebuilt when the app's language changes. Verified: assembleDebug, lintDebug and testDebugUnitTest pass for every module on the Android VM.
Version label, voice key and model summaries, connection card actions and status, pairing scanner hints, welcome copy and What's New actions. The connection card shows the route's translated title, and key verification errors are translated for display. Verified: assembleDebug, lintDebug and testDebugUnitTest pass for every module on the Android VM.
Pairing, share and connection errors and the error phase titles. The copied error report keeps English labels. app_name is marked not translatable. Verified: assembleDebug, lintDebug and testDebugUnitTest pass for every module on the Android VM.
docs/translating.md lists the steps, and scripts/translations.py reports missing, stale and placeholder-mismatched translations for a language. AGENTS.md describes localized(). A missing translation is a lint warning rather than an error, so it shows in English instead of failing the build.
A slow, partial swipe on a docked question (down to fold it, or up from
its bar) left the whole panel ignoring taps: options, Back, ×, and the
bar's "N questions left" expand tap all did nothing until something else
recomposed the dock.

Cause: RequestFold passed `startDragImmediately = gesture.isMidway`.
`isMidway` is a plain field read once per composition. The fold
recomposes mid-drag (CollapseChanged), while `presented` is between 0
and 1, so `true` was baked in, and `draggable` then claimed every
pointer-down on the settled panel. iOS asks `isMidway` per touch. The
flag now follows `progress.isRunning`, the spring's snapshot state, so a
touch during a settle still catches the fold, and a settled panel lets
taps through.

The "N questions left" bar works as on iOS: it is the collapsed bar's
single expand control ("Show the question"), not queue navigation.
Tapping it now expands the question again.

Verified on the emulator (API 36) with the approval fixture
(dinner-three): slow half swipe down, then tapping the bar expands; slow
swipe up from the bar, then options toggle and × cancels (DELETE 204).
Also checked the full three-question flow (auto-advance, multi-select,
typed answer with the keyboard, Send posts all three answers), a
question arriving over a draft with the keyboard open, a server-side
expiry (form.replied) restoring the draft, and the nested-scroll fold
from a long question. scripts/check.sh :feature:composer passes.
Rebuild the media viewer's motion with standard Compose
Tarquinen and others added 2 commits November 16, 2026 13:56
Outside tools (a notification from Home Assistant or ntfy, a server
plugin) can't link to a session on a specific server: `server=` only
takes the app's internal server key, a hash nobody outside the app can
compute (anomalyco/opencode#64052, opencode-ios#179).

Behind the new Experimental switch Open Links by Server Address (Drawer
group, off by default), `server=` may also be one of a saved server's
addresses, matched with `matchesOrigin` (scheme, host, port; a trailing
slash or default port doesn't matter). `opencode://server/<base64url
address>[/session/<id>]`, the web app's session route, parses too.
Links still only switch between servers already saved on the phone; an
unknown address shows the existing "no longer saved" error. Links the
app writes keep using the private key.

Verified: scripts/check.sh :feature:system :app :core :feature:settings
on the VM; both new tests fail with the fix taken out. On the emulator
against session-lab: with the switch off an address link shows the
error; with it on, `opencode://session/<id>?server=http://10.0.2.2:4152/`
and `opencode://server/<b64>/session/<id>` open the session from a new
session; an unsaved address shows the error.
Let links name a saved server by its address (experimental)
Tarquinen and others added 5 commits November 16, 2026 14:41
Agent Selection leaves Experimental: it is on by default, with a switch
under Return Key Sends in Settings › Sessions (SharedKeys.agentSelection).
The old experiment's stored value is cleared with the other retired ones.

To keep the composer row uncrowded, the model chip drops its effort level
while the agent chip is beside it, and the agent's name is capped at 96 dp
so the model's name isn't the first to truncate.

Also fixes the agent chip not updating after a pick in an existing
session: the pick only changes the shared sessionAgents, which the
store's states don't follow, so the chip now follows that value too.

Verified: scripts/check.sh on the VM (all modules) passes. On the
emulator against session-lab: the chip shows by default, a pick in an
existing session updates it at once, and the switch off hides the chip
and brings the effort level back.
Beside the agent chip, the model chip is now just its name and a chevron
(no provider logo), and the agent's name uses the text colour, so the two
read as the same kind of control. They sit 8 dp further apart so the
agent's chevron doesn't read as belonging to the model.

Verified: scripts/check.sh on the VM (all modules) passes; on the
emulator against session-lab the row shows "Build ⌄  model ⌄" and a pick
updates the agent chip.
Ports iOS #343 (5ccc2db3). A pairing QR payload and deep link can carry
an optional `name`, which names the server instead of the device name
the computer reports. A name the user gave the server still wins when
pairing again.

Before this, a deep link with `name=` didn't pair at all: the parser
rejects any parameter it doesn't know. A repeated `name` and other
unknown parameters are still rejected.

Verified: scripts/check.sh :server :app :feature:settings on the VM.
Three of the four ported PairingLinkNameTests fail with the parsing and
redemption changes reverted.
The model chip is a name and a chevron whether or not the agent chip is
beside it (CHIP_SHOWS_LOGO off, CHIP_SHOWS_CHEVRON on); beside the agent
chip it still leaves its effort level off.

Verified: scripts/check.sh on the VM (all modules) passes; on the
emulator against session-lab, with Agent Selection on the row shows
"Build ⌄  model ⌄" and with it off "model Default ⌄".
Show the agent in the composer by default
Name a paired server from its pairing link
Tarquinen and others added 2 commits November 16, 2026 16:37
Quoting text from the transcript put a Markdown "> " blockquote into the
text field, which looked rough and didn't match desktop. Desktop adds a
quote card to the attachment row, lets you comment on it, and sends the
quote as a block in the prompt plus a {"type":"quote"} entry in
metadata.comments.

- Every Quote action (text selection, rendered Markdown and the TalkBack
  action) adds a quote card after the images and files in the attachment
  row. The keyboard stays up, the field keeps focus, several quotes can
  be added and x removes one.
- The card is desktop's compact card, sized from attachment-card.css:
  168dp wide, 8dp padding, a 6dp gap, one line of quote in medium 12sp
  over a muted 12sp "Add Comment" line, or the comment over "quote glyph
  + quote". It sits at the top of the row beside the image tiles, with
  the file chip's fill and radius, and widens a little at large font
  sizes so its second line still reads.
- Tapping a card opens desktop's comment panel (line-comment.css,
  compact) above the composer with the agent menu's motion: up to four
  muted lines of quote beside a thin bar, then the comment field and a
  check. The panel is drawn in the session's own window, not a popup, so
  the keyboard stays up and nothing moves as focus goes from the
  composer's field to the panel's and back. Check, Done or Enter saves
  (empty clears), Back drops the edit, an outside tap closes it only when
  nothing changed, and the composer's field gets focus back with its
  text and cursor.
- Adding a card scrolls the row to its end, x included, unless that would
  push the new card off the start, and a row at its end stays there as
  the composer narrows.
- Quotes and comments are saved with the draft and pending prompts, and
  travel with Send, Steer, Queue and Retry.
- The prompt matches desktop's request.ts: typed text, file references,
  then each quote as "The user quoted the following from earlier in the
  conversation:" plus its lines prefixed with "> " and, when commented,
  "The user made the following comment regarding this quote: ...", with
  metadata displayText and comments [{type:"quote", text, comment}].
- Sent and pending messages read the quotes back from metadata.comments
  and show them as the same cards above the bubble, so desktop's quotes
  show on Android too.
- While a question or permission is being answered, Quote still inserts
  Markdown, because the answer is sent as plain text.

Verified: scripts/check.sh on the VM, session tests updated (including
quoteCommented), and on the emulator against session-lab in light and
dark at 1x and 2x font: quotes with 1-3 images, a file chip, several
quotes with images and a file, an overflowing row, the keyboard closing,
a long draft, sent/pending/queued messages, Send with a comment and
Steer and Queue (lab promptPosts match desktop's text and metadata), the
quote and comment read back after a relaunch, killing the app with a
commented quote in the draft, the marked-up image slide into its
thumbnail with quote cards in the row, and frame by frame at 1x and
0.25x time scale that Check, Done, Back and an outside tap close the
panel with the keyboard up and the composer still.
Quote transcript text as a card in the composer, as desktop does
Tarquinen and others added 2 commits November 16, 2026 17:48
Holding the side button opens a small bar over the current app and starts
a voice call to an OpenCode session, which can act on the phone through 40
phone tools over OpenCode's client-MCP channel. Calls, texts, replies,
risky notification buttons and reading private data ask first with a
card. It's all behind Settings › Experimental › Assistant, off by default.

This is feat/assistant (80 commits up to d258ba5, 16 of them merges with
hand-resolved conflicts) replayed onto dev 809f3dd as one commit. Its
change set is line-for-line the same as d258ba5's against its old base;
the seven conflicts were only where dev's string resources and comment
trim met assistant additions, and they keep both.

Verified: scripts/check.sh passes.
Digital assistant: hold the side button to talk to OpenCode (Experimental)
Tarquinen and others added 2 commits November 16, 2026 18:02
This reverts commit 536c032, reversing
changes made to 99cfef3.
Revert "hold the side button to talk to OpenCode" (#31)
@Tarquinen
Tarquinen merged commit 8207924 into main Nov 16, 2026
1 check passed

This branch was previously deployed

1 inactive deployment
release — 97661b19 Deployed Nov 16, 2026 by Tarquinen via check #376
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants