Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: involvex/opencode-android
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: dev
Choose a base ref
...
head repository: anomalyco/opencode-android
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dev
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 9 commits
  • 503 files changed
  • 3 contributors

Commits on Nov 27, 2026

  1. feat(session): slide the background work popover into its pill as one…

    … outline (anomalyco#332)
    
    * feat(session): slide the background work popover into its pill as one outline
    
    Closing the popover faded and shrank it above the pill, and the two kept
    separate borders and shadows. Now it slides down into the pill, narrowing
    to the pill's width, and a pull moves it the same way and keeps its speed
    when let go. While it is open the popover and the pill share one fill,
    border and shadow: two outlines at rest, one once they touch, with the
    corners between them closing up and the step between their widths
    rounding. Rows fade as they reach the pill.
    
    Rows are 40 dp tall instead of 48 dp, so the Stop button's target is
    44 x 40 dp, under the 48 dp rule.
    
    Reduce Motion keeps the popover as its own surface with the short fade.
    BackgroundWorkMotion.presentScale is removed.
    
    Verified with scripts/check.sh :feature:session on the VM, and on the VM
    emulator against session-lab: open, close on the pill, pull to close,
    closing while still opening, rows arriving while open, a twelve-row list
    and Reduce Motion. motion-check at 5x slow motion flagged no jump or
    stall in open, tap close or pull close, 3 of 3 repeats.
    
    * feat(session): tighten the background work rows and stop with an X
    
    The popover's rows were 40 dp tall because each held a 28 dp outlined
    stop button. Rows are now 32 dp and Stop is the desktop's plain X, so
    the list reads as a list instead of a column of buttons. The Stop
    target is 34 x 32 dp, under the 48 dp rule.
    
    Verified with scripts/check.sh :feature:session and on the VM emulator
    against session-lab: light and dark, six rows, and the X ending a shell.
    Tarquinen authored Nov 27, 2026
    Configuration menu
    Copy the full SHA
    fa303f1 View commit details
    Browse the repository at this point in the history
  2. fix(session): keep the background work capsule's height from going ne…

    …gative (anomalyco#335)
    
    * fix(session): keep the background work capsule's height from going negative
    
    The capsule's height is its place's height minus 5dp top and bottom. A place under 10dp tall made it negative, and the next layout threw IllegalArgumentException from Constraints.fixed. That happens when a short window squeezes the composer's pill row, or when a clip cuts the place. The height now stops at zero.
    
    Fixes anomalyco#334
    
    * test(session): drop the capsule layout test
    
    The fix is a one-line clamp; the Robolectric test isn't needed.
    Tarquinen authored Nov 27, 2026
    Configuration menu
    Copy the full SHA
    349707b View commit details
    Browse the repository at this point in the history
  3. feat(session): dip the background work pill as its popover lands (ano…

    …malyco#336)
    
    The popover slid into its pill and the pill didn't react, so the close
    felt stiff. As the last of the popover lands, the pill now dips about
    2.5 dp and returns on Motion.microIn. There is no dip under Reduce
    Motion, or when the popover is closed before it has risen.
    
    The moment is occasional: it plays when someone closes the popover.
    
    Verified with scripts/check.sh :feature:session and on the VM emulator
    against session-lab: close on the pill, pull to close, a quick double
    tap and Reduce Motion. The motion check at 5x slow flagged nothing in
    open, close on the pill or pull to close.
    Tarquinen authored Nov 27, 2026
    Configuration menu
    Copy the full SHA
    189c8f4 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2026

  1. chore(drawer): remove the unreachable In-App Notices (anomalyco#300)

    Remove In-App Notices: the drawer button's "Done" / "Needs your input"
    label for other sessions, its mode and Settings row, its sounds, haptic
    and TalkBack announcement, and its strings in every language.
    
    Nobody could turn it on. The mode (experimental-in-app-notices) defaults
    to off, and its only writer is the In-App Notices row on the Notifications
    settings page. That page only shows when push notifications are
    available, which needs a Firebase configuration no released build has.
    
    Behaviour stays as it is with the mode off:
    - System notifications still post as a heads-up banner for every session
      but the visible one, so NotificationPresentation.ListOnly and the
      drawer-label and mode readers on SessionNotificationsClient are gone.
    - The drawer button, its unread/attention dot, delivered-notification
      removal, the app badge, Catch Up and its sounds are unchanged.
    
    Tests that only covered notices are removed; the system test keeps its
    needs-input case. Parity rows now say In-App Notices is not in the app.
    
    Verified: python3 scripts/translations.py all, scripts/check.sh for
    :core :feature:session :feature:settings :feature:system :feature:drawer,
    then the full scripts/check.sh (all on the Android dev VM), all passing.
    Tarquinen authored Nov 28, 2026
    Configuration menu
    Copy the full SHA
    0efffc7 View commit details
    Browse the repository at this point in the history
  2. chore(core): update OpenMono to 1.001 (anomalyco#338)

    Refreshes openmono_regular.ttf and openmono_bold.ttf from the OpenMono 1.001
    app build (build 2026-11-27) with scripts/update-openmono.py.
    
    What 1.001 changes in these files:
    - U+2717 (the ballot x) is a cross with two unequal strokes, so it no longer
      reads as a capital X at code size.
    - U+26A0 (the warning sign) is as tall as a capital.
    - U+10C0DE is new: the OpenCode logo, one colour, one cell wide. The fonts
      have no colour tables.
    - U+055F (Armenian abbreviation mark) takes its own cell instead of sitting
      over the letter before it.
    Every other glyph is the same as 1.000. The licence text is unchanged.
    
    The refresh script no longer lets U+055F be zero-width, because the font no
    longer needs the exception.
    
    Sizes: openmono_regular.ttf 1,126,148 -> 1,126,140 bytes, openmono_bold.ttf
    1,109,980 -> 1,109,976 bytes.
    
    Verified: the script passes its checks before and after the script change and
    writes the same bytes both times; a glyph-by-glyph comparison with the 1.000
    files shows only the four characters above differ; `python3
    scripts/translations.py all` passes. Not built locally (this Mac has no JDK or
    Android SDK); CI runs scripts/check.sh.
    iamdavidhill authored Nov 28, 2026
    Configuration menu
    Copy the full SHA
    a99673e View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2026

  1. feat(system): replace the notify plugin with the server's push notifi…

    …cations (anomalyco#337)
    
    * feat(system): show OpenCode's push messages as notifications
    
    OpenCode now sends push messages itself (specs/v2/push.md in the opencode
    repo): permission requests, questions, finished and failed turns, and clears.
    The phone registers with PUT /api/experimental/push/device/<ref> instead of
    pairing through the notify plugin, and shows each message as its own
    notification:
    
    - Permission: the commands or paths in a code block with Deny, Always Allow
      and Allow. A request that was cut only offers Open.
    - Question: up to three option rows that answer on tap, plus Reply for a typed
      answer. Long questions, several questions and multi-selects only offer Open.
    - Finished and failed: the end of the answer or the error, with Reply.
    - Clears remove a notification, ordered by time as the spec asks.
    
    Replaces OpenCodeClient.pairNotificationPreview with registerPushDevice and
    drops the "previews need HTTPS" error. Boxes in the old payload format still
    go through the old path.
    
    Verified: scripts/check.sh on the Android VM (assemble, lint, unit tests),
    translations.py all.
    
    * chore(app): let the lab launch hook take a server password
    
    The debug-only lab-server-url extra saved the server with an empty password, so a
    test server with a password answered 401. lab-server-password sets it.
    
    Verified: a debug build launched with both extras connected to a password-protected
    server on the emulator.
    
    * fix(system): push notification fixes from emulator testing
    
    - A question answered by typing into the notification stayed in the shade:
      Android refuses an app's cancel of a notification that was replied to
      inline. It is now posted again with a short timeout, and later clears leave
      it alone while it goes.
    - The launcher's badge count was the unread count times the number of
      notifications, because each one carried the whole count. Each push
      notification now counts as one.
    - A finished turn shows the end of the answer as plain text (Markdown marks
      dropped), cut to the lines that fit, instead of the first lines of the last
      500 characters.
    - A long question's collapsed line is its last line, which is the one that
      asks.
    - "Wants to run a command" instead of "Wants to run 1 command".
    
    Verified on the Android VM emulator (API 36) against an OpenCode dev server:
    typed answer removes the question and the Finished notification replaces it;
    scripts/check.sh :feature:system; translations.py all.
    
    * chore(system): log push registration and describe push delivery as it is now
    
    The parity doc still described the relay work FCM needed; the relay has it,
    and OpenCode sends the pushes itself.
    
    Verified: scripts/check.sh :feature:system on the Android VM.
    
    * test(system): cover the push messages, and ship the Firebase configuration
    
    PushNotificationTests reads messages in the server's format and checks what
    each becomes: the permission's commands and buttons, question rows, the end of
    a finished answer, failure text, unknown messages, and the ledger's ordering
    of messages and clears.
    
    firebase.xml holds the Firebase app's four string resources, which FCM needs
    to give the app a token. Without it no push can arrive.
    
    Verified: scripts/check.sh :feature:system on the Android VM (14 new tests pass).
    
    * fix(system): handle push messages cut down to their ids, and review fixes
    
    A permission request the server cut down to its ids has no action. It was
    shown as a generic notification; it is now a permission notification that
    only offers Open. A clear with a version this app doesn't know does nothing.
    Typed replies ask for the phone to be unlocked, as Allow does.
    
    Also drops an unused parameter, updates two comments and the parity rows
    that still described the notify plugin's pairing call.
    
    Verified: scripts/check.sh :server :feature:system on the VM (PushNotificationTests 14 passed).
    
    * fix(system): give every push notification the same icon colour
    
    The icon was orange, green or red by kind. It now has the system's own
    colour, as the app's other notifications do.
    
    Verified: scripts/check.sh :feature:system on the VM.
    
    * fix(system): only offer Open for a permission request too long to show
    
    A long command, or many of them, was cut at four lines while Allow and
    Always Allow stayed, so the part being approved could be hidden. The code
    block now shows up to eight lines, and a request that doesn't fit in them
    only offers Open, like one the server had to cut. Whether it fits is
    estimated from the screen width and font size, erring towards Open.
    
    Shell commands start with "$ " so a wrapped command reads as one.
    
    Verified: scripts/check.sh :feature:system on the VM (PushNotificationTests
    15 passed); on an API 36 emulator a 300-character pipeline, eight chained
    commands and a heredoc script each showed Open only, and two short commands
    kept Deny, Always Allow and Allow.
    
    * fix(system): drop the "Always Allow covers" line from permission notifications
    
    The line listed every saved pattern under the commands and ran to two
    clipped lines for a request with several commands. A permission
    notification is now the commands and the buttons; the patterns Always
    Allow would save are no longer read from the message.
    
    Verified: scripts/check.sh :feature:system on the VM (PushNotificationTests
    15 passed); a two-command request on an API 36 emulator shows the commands
    and Deny, Always Allow, Allow with nothing between.
    
    * fix(system): keep Android's suggested actions off push notifications
    
    A permission for a file such as README.md got a system "Open link" chip,
    because the name looks like a web address.
    
    Verified: scripts/check.sh :feature:system on the VM; an edit request for
    README.md on an API 36 emulator shows only Deny, Always Allow and Allow.
    
    * feat(system): replace the notify plugin with the server's push system
    
    The app still carried the old notification system next to the new one: the
    notify plugin check and its setup prompt, the callback address sent with
    every prompt and share, Always Notify, and the old payload format.
    
    Now there is one path. The phone registers with the server's push API when
    it connects, and Settings > Notifications controls only this phone:
    
    - Notifications: on or off for this server. Off deletes the device on the
      server, and so does removing the server from the app.
    - Notify About: Everything, or Only When It Needs Me.
    - Sound and banners: rows that open Android's settings for each channel.
    - A server without the push API shows the switch disabled.
    
    Removed: OpenCodeClient.notifyPluginStatus and setAlwaysNotify,
    PromptContext.notificationCallbackURL, the callback in ShareCredentials,
    the Always Notify card, the old payload path in SessionPushNotifications,
    NotificationContent and NotificationCrypto, and the What's New entries for
    Always Notify, notify plugin setup and encrypted notification previews.
    A server older than 2.4.2 no longer notifies this app.
    
    Verified: scripts/check.sh (all modules) on the VM. On an API 36 emulator
    against a server run from OpenCode dev: registration on connect, each
    level, off and on, Android's permission never asked and denied, a real
    push through the relay and FCM, removing a server (its device is deleted),
    and a 2.4.1 server (switch disabled).
    
    * fix(settings): drop the footer under Sound and banners
    
    The line under the three rows ("Opens Android settings, where each kind can
    pop up, make a sound or be turned off.") read oddly and the rows explain
    themselves, so it is removed along with its string and translations.
    
    Verified: scripts/check.sh :feature:settings on the VM, and the page on an
    API 36 emulator in light and dark.
    
    * fix(settings): remove the Sound and banners rows
    
    The page listed Needs You, Finished and Failed with a way into each
    channel's Android settings. The app decides how each kind arrives instead
    (permissions, questions and failures pop up with a sound; a finished
    session only makes a sound), so the rows, the code that read the channels'
    importance and their strings are removed.
    
    Verified: scripts/check.sh (all modules) on the VM, and the page on an API
    36 emulator in light and dark.
    
    * feat(drawer): ask to notify after the first send
    
    Android's notification prompt only appeared from the switch in Settings or
    a first voice call, so most people would never be asked and never get a
    notification.
    
    Now an accepted send shows the prompt while Android has never asked. That
    happens once per install: a refusal is remembered and the Settings page
    then points at Android's settings. Allowing registers the phone.
    
    Verified: scripts/check.sh (all modules) on the VM. On an API 36 emulator
    with a fresh install: the first send shows the prompt, Allow registers the
    device on the server, and after Don't allow a second send does not ask.
    
    * fix(notifications): clear stale notifications, and open a tap over Settings
    
    - Opening the app removes this server's notifications for sessions that are
      read or archived and for requests already answered. The server's clear push
      normally does this, but it can be lost.
    - Tapping a notification closes Settings and the drawer so the session shows.
    - Removing a server from the app removes its notifications; a tap on one did
      nothing before.
    - Notifications no longer carry CATEGORY_MESSAGE, which is for messages between
      people and can pass Do Not Disturb.
    
    Verified with scripts/check.sh and on an API 36 emulator: stale notifications
    removed on reopening after lost clears (unread ones kept), a tap with Settings
    open, removing a server with a notification showing, and no category in
    dumpsys notification.
    
    * refactor(notifications): remove the icon badge chain and dead push code
    
    Cleanup after review of the push rebuild.
    
    - The app no longer keeps its own launcher count. AppIconBadge, AppBadgeLedger,
      Home's badge publishing, the ledger block in the push handler and the
      "Badge on the App Icon" What's New entry are gone: every push already counted
      as one, so the saved count was computed and never shown. The launcher badge
      is the notifications that are showing.
    - Removed members nothing called: SessionNotifications.onOpen,
      pendingDestination, includeBadges, PushTokenProvider.inert; the
      NotificationPresentation enum is now isOnScreen(sessionID).
    - A device id is no longer made up on read: the stale sweep, turning
      notifications off and removing a server use savedRef, and no DELETE is sent
      to a server this phone never registered with.
    - A notification choice is saved only after the server accepts it, instead of
      saved first and rolled back.
    - The three push requests are OpenCodeClient values with live and test
      implementations, like every other request.
    - Every removal goes through PushNotifications.cancel, so a notification that
      was answered inline is removed the same way everywhere.
    - HomeNotificationsFeature loads the settings in one helper.
    - Stale comments, a test name and the parity rows updated.
    
    Verified: vm.sh check (build, lint, unit tests) passes. On the emulator against
    the push rig: Finished and question pushes arrive and group; answering a
    question from the notification removes it; opening a session clears its
    notification; the Notifications switch deletes and re-registers the device;
    offline the switch stays on with "Couldn't change notifications. Try again.";
    with the device deleted on the server, reopening the app removes a viewed
    session's notification and keeps an unread one.
    Tarquinen authored Nov 29, 2026
    Configuration menu
    Copy the full SHA
    1f07515 View commit details
    Browse the repository at this point in the history
  2. fix(composer): keep the autocomplete panel's height from going negati…

    …ve (anomalyco#356)
    
    A close spring tuned to bounce (Tuning, Developer Mode) undershoots the
    panel's height below zero as it folds. Measuring with a negative height
    throws in Constraints.copy, and the composer surface clipped the top of
    its bar by the undershoot. The height now stops at zero where it's
    animated and where the panel lays out.
    
    Reproduced on the emulator with motion.springs.panelClose.bounce = 0.4
    (crash on close on dev, none with the fix; in slow motion the bar's top
    edge no longer dips below its rest). The new test fails on dev with the
    same exception. scripts/check.sh passes.
    
    Fixes anomalyco#352
    Tarquinen authored Nov 29, 2026
    Configuration menu
    Copy the full SHA
    f123397 View commit details
    Browse the repository at this point in the history
  3. fix(drawer): skip the hold wait when the long-press timeout is 80 ms …

    …or less (anomalyco#355)
    
    Holding a drawer row crashed with "Already resumed" when the platform
    long-press timeout was 80 ms or less: the second awaitTouch got a timeout
    of 0 or below, and Compose's withTimeout then resumes the pointer awaiter
    the first timeout already resumed. The hold wait is now skipped when no
    time is left, so the hold starts at the 80 ms press delay.
    
    Verified: reproduced on dev on the emulator with long_press_timeout 80
    (same stack as Play's); with the fix a hold selects the row and a tap
    opens it, at 80 ms and at the default 400 ms. scripts/check.sh passes.
    
    Fixes anomalyco#351
    Tarquinen authored Nov 29, 2026
    Configuration menu
    Copy the full SHA
    9f6abb5 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2026

  1. Configuration menu
    Copy the full SHA
    a0dba96 View commit details
    Browse the repository at this point in the history
Loading