Repository navigation
Conversation
…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
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)
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
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
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)
Revert "hold the side button to talk to OpenCode" (#31)
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Releases everything on
devsince 0.7.0.Languages
Chat
>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 bothFull-screen viewer
Links
Fixes
Speed and battery
Behind the scenes
strings.xml.scripts/translate.pytranslates new strings, and CI checks every language is completePRs: #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