Repository navigation
QA: fixes from the Android QA rounds (54 branches, ~85 bugs) - #7
Merged
Merged
Conversation
…unfocuses the composer QA A-01. On a New Session, tapping the folded project row while composing did nothing, with the keyboard up or down, and after Back hid the keyboard the field stayed focused, so the list stayed folded. Root causes: - DraftProjectFade blocked touches on hidden rows with a disabled clickable overlay. Folded, the hidden last row (All Projects) sits in the chosen row's slot above it in z-order, and Compose ends the hit search at any pointer node it hits, so the overlay took the tap. The row now drops its clickable while hidden (iOS `.allowsHitTesting(!isHidden)`), so taps pass through to the chosen row, which opens the Project sheet as iOS DraftProjects.swift:95 does. The overlay is removed. - On iOS a hidden keyboard is a resigned field. Android's Back hides the IME and keeps focus. ComposerTextInput now dismisses through onDismissKeyboard when the IME leaves on its own, except while the drawer holds the keys, when another window has focus, or when the activity isn't resumed. Verified on emulator-5560 against the QA server (playground): before, a tap on the folded row with the keyboard up or down did nothing, and the field stayed focused after Back. After, the tap opens the Project sheet with the keyboard up, and with text typed and the keyboard down. Back unfocuses the field and the list unfolds. Home and return keeps focus and the keyboard. Drawer open and close with the keyboard up sends the keys away and brings them back. Evidence is in opencode-android-qa-runs/fixes/A-01. scripts/check.sh :feature:composer :feature:session passed.
…B-01) Opened tool groups, tools, compactions, Show More and link lists all collapsed when the system switched dark/light mode. MainActivity handles orientation/size changes itself but not uiMode, so an appearance switch recreates the activity; the transcript list's `remember`ed controller is rebuilt with a fresh TranscriptDisclosureState. iOS keeps this state in the list and only redraws on a trait change. The session-keyed list (key(sessionID, historyGeneration)) now holds TranscriptDisclosureState in rememberSaveable (new TranscriptDisclosureState.Saver) and passes it into TranscriptListController. This covers every recreation (uiMode, font scale, locale, process death) rather than only uiMode, and keeps per-session scoping: each session's list has its own saved entry, and leaving a session still drops it. Replaced behaviour: TranscriptListController.disclosure is now a constructor val instead of a var replaced on session change. resetForSessionChange clears it in place, except on the list's first configuration (no snapshot yet), which keeps what was restored. Opting out of uiMode recreation in the manifest was not chosen: it would cover only appearance, and enableEdgeToEdge's status bar style and other resource reads would then need manual refreshes. Verified on emulator-5562 (session-lab typography-session, "Used 5 tools"): before, the opened group collapsed on night no and stayed closed; after, it stays open across dark -> light -> dark, a rotation round trip, and process death (am kill + relaunch); switching to another session and back still closes it. scripts/check.sh :feature:transcript and :app pass. Parity row (TranscriptBandMotion.swift) updated.
…e, B-03) The iOS splice treats disjoint cached rows as older history, even when the server explicitly reports there is no older page. Preserve the wire cursor object so only an explicit end sets the complete flag. Replace the durable prefix and exhaust paging for these reads, including empty pages, without losing optimistic sends or protected live parts. Partial pages and missing cursor metadata retain the existing splice and paging heuristics. Verified scripts/check.sh :server :feature:session :feature:drawer. The original disjoint-window test is unchanged. On emulator 5566 with session-lab 4112, reproduced both stale cold-launch snapshots on the baseline; after the fix history → days matched 24 server messages and tool-groups → tool-completed matched four, including their on-disk order. Scrolled past the initial 30 history messages and sent a held steering prompt, then released it into server history.
A stalled Android speech-service install kept Stop waiting before the recognizer-only timer could start. Move the ten-second budget to the whole finish operation and cancel the pending load without handing it to the next press. Keep the five-minute install allowance during recording; detach the download listener’s waiter on cancellation and ignore late callbacks. Keep fallback recognition and any partial words. If an install fails and the fallback yields nothing, or an empty press times out, close with the existing language-unavailable error instead of returning silently to the draft. This deadline is an Android-only guard against service ANRs; iOS awaits its asset install without an app deadline. Verified scripts/check.sh :feature:composer (assemble, lint, 279 unit tests), including virtual-time checks of the shared deadline, partial words, empty fallback and late callbacks. Installed the debug APK on emulator 5574; app and System UI ANRs before dictation prevented an end-to-end smoke check.
…er it QA A-02. Opening a sheet with the keyboard up (Switch Model on a run error, or the composer's model chip) hid the composer while the keyboard was still on screen, which left an empty band between the transcript and the keys. Root cause: OpenCodeSheetHost consumed all of WindowInsets.ime for the covered screen as soon as a sheet was presented, to imitate a Dialog window holding the IME. The composer's imePadding dropped to zero in one frame, so the composer sat behind the keys while the IME was still animating out. The covered screen now consumes only the part of the keyboard above the lowest point it has reached since the sheet opened (KeyboardLeavingInsets). A keyboard leaving as the sheet opens is followed to its end, so the composer leaves with it and the sheet rises over them, as on iOS. A keyboard raised later by the sheet's own Search still isn't seen by the covered screen. Replaced behavior: the old full consumption of WindowInsets.ime while covered. Verified on emulator-5560 against the QA server (playground, a real 429 "Usage limit reached" with Switch Model) at 5x animation scale. Before (old build, composer chip): the composer and the draft list vanished while the keyboard was still drawn. After (Switch Model and chip): the composer stays above the keyboard until the keyboard leaves and the sheet rises over it, with no empty band. On close, the sheet slides down onto the composer. The host was heavily loaded (load avg ~55-60), so frame timing needs a devbox retest. Evidence is in opencode-android-qa-runs/fixes/A-02. scripts/check.sh :feature:composer :feature:session passed.
What: the dragged session's LazyColumn item now gets `Modifier.zIndex(1f)` on its root (the item's wrapper Box in DrawerListView), keyed on `DrawerPinDrag.draggingID`, which stays set through the drag, the landing and the post-commit settle until every spring has come to rest. The `zIndex(row.isLifted)` on DrawerListSessionCell's own box is removed. Why: the old zIndex sat inside the item, where the cell is the only child, so it ordered nothing. The LazyColumn draws its items in placement order, so the "Recents" header and every later row painted over the lifted card while it crossed them, and after the drop (liftedID cleared, residual translation still springing) the next row covered it for the settle. iOS lifts the row into a layer above the whole list (DrawerPinDrag.swift, DrawerPinDrag+Geometry.swift); ordering the lazy item itself gives the same result. Motion, springs and timing are unchanged. Verified: scripts/check.sh :feature:drawer passes. Emulator (API 36, port 5570, real server): recorded unpin across "Recents", pin from Recents into Pinned, reorder within Pinned and an unpin with a full landing/settle, before and after the fix. Before: header text and later rows paint over the card. After: the card stays above every header and row in every frame of the crossing, landing and settle. The machine was heavily loaded, so animation timing in those recordings needs a devbox retest; the z-order is what was checked. docs/parity/drawer.md DrawerLiftedRow row updated.
Pass the resolved fallback instead of null on every transcript load. The project-only request builder intentionally declines outside absolute paths; without the fallback both the first attempt and the failed card retry stopped before HTTP. Verified scripts/check.sh :feature:transcript :server, including two parent-scoped GETs across a 404 and retry. Emulator 5580 connected to the files lab, but repeated ANRs before opening the transcript prevented visual and tap verification; needs devbox retest.
When a send landed, the composer's field cleared and started its shrink spring in that same frame, but the captured words sat still for three more frames: land() only queued the flight, the frame loop was a LaunchedEffect keyed on isFlying (one recomposition later), its first tick had dt = 0 and only ran begin(), and the spring took its first step a frame after that. Meanwhile the words hung over the "Message" placeholder and poked above the shrinking composer; under load (each frame 50-300 ms) that was the ~300 ms QA saw, and the first step after the stall jumped the crossfade to p ~0.9, which read as a ghost behind the landed bubble. Now, as on iOS (landSentMessage -> startMotionLink, SendFlight.progress stepping to targetTimestamp): - land() starts the motion link itself, so it ticks on the next frame; - the first step runs one display frame (refresh rate) instead of 0; - a flight whose bubble begin() finds moves on that same frame. Removed: the overlay's LaunchedEffect frame loop (replaced by SessionSendFlights.startMotionLink, cancelled in cancel()). Timing, curve (critical spring, sendFlightOmega) and the crossfade are unchanged. Verified: scripts/check.sh :feature:session :feature:composer :feature:transcript passes. Emulator (real server, keyboard up, 3-line message) with temporary frame logs: before, clear -> 2 unstarted draws -> begin (p 0) -> first motion at the 4th frame; after, clear -> 1 draw at the origin -> next frame begin + p 0.023. Frame-by-frame video under the overloaded host is unreliable; needs a devbox retest.
With the system in light mode and Settings › Appearance › Mode set to Dark, the status bar clock and icons stayed dark over the dark UI (QA A-07), and the reverse with system dark and app Light. enableEdgeToEdge() in onCreate picks the bar style from the system night mode once; nothing applied the app's own appearance to the window. OpenCodeAppTheme (the root theme of every activity: MainActivity, Share, Ask OpenCode, widget configuration, media lab) now sets the activity window's isAppearanceLightStatusBars/NavigationBars from the effective appearance (iOS sets overrideUserInterfaceStyle on the window, which restyles its status bar). It runs only when the appearance changes, so the media viewer's own dark status bar isn't overwritten on recomposition, and it works whether or not the activity is recreated on a uiMode change (isSystemInDarkTheme follows LocalConfiguration either way). Verified: emulator (API 36), Settings › Appearance, live without restart: system light/dark × app System/Light/Dark, all 6 cases show icons that contrast with the background. scripts/check.sh :core :app passes.
…xt (QA B-06) The expanded compaction summary drew its heading, prose and bullets in primary text, so it read like a new assistant reply between the rules. iOS wraps the summary's MarkdownBlocksView in .foregroundStyle(.secondary) with a 16 pt leading inset (TranscriptEntryView.swift:935-944). The Markdown blocks set explicit colours, so the LocalContentColor the row already provided had no effect. Add LocalMarkdownSecondary (markdown/ui MarkdownEnvironment.kt); BlockText draws in secondaryText and presents runs as secondary when it is set. The compaction row provides it around the summary. Code bands and tables are unchanged. Verified: scripts/check.sh :feature:transcript :feature:settings passes; emulator (API 36) against session-lab checkpoint compaction-states: expanded "Context compacted" row shows the Summary heading and bullets muted in light and dark (qa-runs fixes/B-06/*.png).
…its IP (QA A-08) An unnamed server added by IP (http://10.0.2.2:4196) showed "Ip 10 0 2 2" on the Settings card and the server page, while the Servers list and the drawer said "Server 2". The reverse lookup answered ip-10-0-2-2.…, and ServerCardName.machineName(fromReverse:) only rejected all-numeric answers, so the title-cased address won over the friendly name. machineName now also returns null when the first label is all digits or holds four dash/underscore-separated groups of 1-3 digits, each <= 255 (ip-10-0-2-2, 10-0-2-2, ec2-3-89-50-194, host-192-168-1-5, c-73-12-34-56, pool-71-191-23-4, ip10-0-2-2); real names (ryans-macbook, devbox-01) stay. ConnectionMonitor.savedName re-checks names already cached in connection-card-machine-names, so devices that cached such a label recover. This is a deliberate Android divergence: iOS has the same logic (ConnectionHealth.swift:357-376); documented in docs/parity/settings.md, upstream note filed in the QA runs folder. Verified: scripts/check.sh :feature:transcript :feature:settings passes (ConnectionHealthTests 30/30, new reverseLabelsThatSpellOutTheAddressAre NotMachineNames); emulator (API 36), server http://10.0.2.2:4197 with no name: Settings card, server page title, Servers list and drawer all read "Server 2" (qa-runs fixes/A-08/*.png).
…an import (QA A-04) SessionView copied `importer.isLoadingImages || importer.isLoadingFiles` into `composerHost.isImportingAttachments` inside a `SideEffect`. Snapshot reads in a SideEffect aren't observed, so when `ComposerFileImporter.active` (or the image importer's job) went back to idle nothing recomposed SessionView and the host kept a stale `true`: the + stayed a disabled spinner until something unrelated recomposed the screen (often never). The value is now read in composition and only assigned in the SideEffect, so an import finishing recomposes SessionView and clears it, as iOS observes `imageImporter.isLoading || fileImporter.isLoading` directly (SessionView+ComposerControls.swift). Verified: - scripts/check.sh :feature:session :feature:composer: BUILD SUCCESSFUL. - Emulator (API 36, playground on the QA server), before the fix: the first Files import already left "Adding attachment" disabled for 90 s+, typing didn't clear it. - After: Files, Files, Files: the + was enabled again within one UI dump (about 3 s) of each pick, 3 thumbnails. Photos (in-app sheet) then Files: same, 2 thumbnails. Evidence in opencode-android-qa-runs/fixes/A-04/.
…d-send Retry (B-08) With the keyboard up, a failed send's "Couldn't send · Retry" line sits just above the composer, under the floating jump-to-latest slot (TopEnd, 48 dp). That slot carried the caller's passesDragsToTranscript pointer input even with no pill mounted, so it won the hit test and swallowed the inline Retry tap: no request was sent. The menu's Retry worked because "Couldn't send" lies left of the slot. With the keyboard down the line is far from the composer, so the bug only showed in the QA flow (type, Send, tap Retry). JumpToLatestPill now applies `modifier` to an inner box that wraps only the pill. The 48 dp slot itself takes no touches, matching iOS, where an empty SwiftUI frame isn't hit-testable (`ComposerViews.swift` at ae029f85). A drag that started on the pill keeps its node while the pill leaves, so the borrowed drag still runs to release. Nothing in the transcript changed: its Retry already had its click handler and 48 dp rowHitTarget. Verified on emulator 5586 with session-lab, :4120 checkpoint intro, one armed 400 failure: - Repro before the fix: keyboard up, Retry node at 893,1108 126x126, tap 956,1171 sent nothing. - After the fix, the same tap gave promptPosts msg_1b6c0743b00155SA0l6dbPWPy7 failed then admitted (same ID). The failure line cleared and the reply streamed in. - The menu's Retry still works (msg_1b6bb897d001qZ8mLH5cYTCDI6 failed then admitted). - Jump-to-latest: a tap scrolls to the end, and a drag starting on the pill scrolls the transcript. - scripts/check.sh :feature:session :feature:transcript passes.
… keyboard down (QA A-05) With the keyboard down the + menu's foot sat 12 dp above the screen's bottom edge (iOS `PlusMenuPlacement.foot` at ae029f85: `min(composer.maxY + menuDrop(80), screenBottom - overComposerFloor)`), so on Android the gesture handle drew across the menu's bottom, under Location, and the row's touch area reached into the system gesture zone. iOS's home indicator is drawn over content, so iOS lets the menu hang there; Android keeps that area for system swipes. Android divergence: `PlusMenuPlacement.foot` takes `navigationBarInset` and floors the foot at `screenBottom - max(navigationBarInset, floor)`. `AttachmentMenu` passes the part of `WindowInsets.navigationBars` under the overlay, only while the IME is hidden, so keyboard-up placement is unchanged. Parity row on PlusMenuGlassSurface.swift (composer.md) records why. Verified: - scripts/check.sh :feature:composer: BUILD SUCCESSFUL (PlusMenuPlacementTests unchanged and passing; the new parameter defaults to 0). - Emulator (API 36, New Session in playground): with gesture nav and the keyboard down, the menu's bottom now lines up with the composer's, clear of the handle (before, it hung over the handle). With 3-button nav it ends at the bar's top. With the keyboard up it's in the same place as before the change. Screenshots in opencode-android-qa-runs/fixes/A-05/.
An unnamed session's drawer row read "Untitled session" instead of its first prompt after picking the saved server again from the Servers screen (the QA run did this after a failed Add Server, a few minutes before the dark-mode switch it blamed). Loading Home after a connect rebuilt the state from the server's snapshot alone, which never carries first prompts, and then persisted that over the cached snapshot that had them, so they stayed lost until each session was opened again. The connect path now keeps the first prompts this server's cached list knew (`keepingFirstPrompts`, the rule snapshot refreshes already follow). Activity recreation was not the cause: on the unfixed build, dark/light switches and process death kept the previews; only the reconnect dropped them. iOS main has no first-prompt titles (draft PR feat/session-title-fallback), and the draft's homeResponse has the same gap; noted in the AppFeature parity row. Verified on emulator-5582 against the 4197 test server with two unnamed sessions (one pinned): before, Add Server with a bogus address -> Cancel -> pick 10.0.2.2:4197 turned both rows into "Untitled session"; after, the same steps keep "Explain todo.js in one paragraph." and "List the files in this project in one line.", and they survive night yes/no and am kill + relaunch. scripts/check.sh :app passes.
…hort windows (A-10)
In landscape with the keyboard up (about 125 dp of room) the composer kept
its full height. Its layouts ignored the height they were offered, so Compose
centred the overflow: the attachment strip slid under the status bar and the
control row (+, agent, model, mic, Send) went behind the keyboard. You
couldn't send without closing the keyboard.
This extends iOS's request-panel rule ("The composer never grows past the
header", docs/composer.md, `requestPanelMaxHeight`, synced iOS ae029f85) to
the plain composer, because Android phones rotate and run in short windows.
iOS phones are portrait-only, so iOS has no such cap.
- SessionView: the composer column's height is capped at the room between
the status bar and the keyboard. The header gives way first: the composer
stands over it.
- ComposerLayout: offered less height, the field drops below its six-line
cap down to one line and scrolls. Past that floor it reaches above the
layout's top (ComposerOverflowTop), never the control row below.
- ComposerFoldLayout: the field and controls get what the attachments and
status lines leave them. When the field is at its floor, the column's top
(the attachment strip) is clipped, down to none.
- ComposerTextInput: caret-follow uses the field's real viewport, not its
line cap, so a squeezed field keeps the caret in view.
With room to spare the constraints never bind, so nothing moves.
Verified on emulator-5584 (Pixel 8 API 36) against the QA server:
- Landscape with the keyboard up: no attachments; 2 attachments; 2
attachments plus 6 lines; no attachments plus 6 lines. The control row is
fully above the keyboard, Send is enabled with content, and tapping the
model chip opens the model sheet.
- A short window (wm size 1080x1400), portrait, keyboard up, 6 lines: the
field scrolls and the row stays visible.
- Portrait, same state on the pre-fix and fixed APKs: pixel diff shows only
the clock, the caret blink and the caret handle (draft with 2 attachments
and 6 lines, keyboard up and down; request panel).
- Request panel (approvals bash permission): landscape with the keyboard up
is identical to the pre-fix build in the session pane; it still follows
its own cap.
- scripts/check.sh :feature:session :feature:composer passes.
…creation (A-09)
A reader who had scrolled up was thrown back to the latest message when
the system switched dark/light mode (also font size, locale, process
death). The activity is recreated, and the transcript list's `remember`ed
LazyListState and TranscriptScrollBehavior were rebuilt: the list started
at its bottom index, the first configuration sent SessionChanged
(following) and the first layout landed on the last row. iOS's list only
redraws on a trait change.
Following the B-01 pattern, the session-keyed list
(key(sessionID, historyGeneration)) now holds both in rememberSaveable:
the LazyListState through a small saver that keeps the list's cache
window (first row + offset), and the behavior through the new
TranscriptScrollBehavior.Saver (browsing or following). When the
restored behavior is browsing, the list's first configuration replays
UserLeftBottom (shows Jump to latest, tells the session it's browsing)
instead of SessionChanged, and the first layout skips landOnLastItem.
A following reader and every newly opened session still open on the
bottom; leaving a session drops its saved entry as before.
Replaced behaviour: TranscriptListController.behavior is a constructor
val (default unchanged) instead of being created inside the controller.
Verified on emulator-5582 against the 4197 test server ("Long reply
scroll test", 40 + 30 numbered facts): before, scrolled up to item 18,
night no -> jumped to item 30 at the bottom, no jump button; after, items
25/27/28 stay exactly in place with the jump button across night
yes/no, font scale 1.3 and back keeps browsing (index+offset, so the
same row moves a little at a new size), am kill + relaunch keeps
browsing near the same rows; at the bottom a mode switch stays at the
bottom; switching to another session and back opens at the bottom;
Scroll to latest still works; a sent prompt's streaming reply is
followed to its end (recording). scripts/check.sh :feature:transcript
and :app pass. Parity row (TranscriptScrollBehavior.swift) updated.
…clipping it (A-11)
With Agent Selection on, a New Session draft's control row is short of space and the
chip's level word was hard-clipped at the row edge ("Haiku 5.5 Defaul"): the Row measured
the name first and the word got whatever was left, with Compose's default Clip overflow.
The level word's roll is now measured last (weight(1f, fill = false)) and tail-ellipsizes,
so the quieter word gives way before the name ("Haiku 5.5 Defa…"); the name still
ellipsizes on its own when it alone doesn't fit ("Haiku…" at font scale 2.0).
Deviation from iOS (OnePickerChip.swift:84-93 fixes the level word with .fixedSize and
tail-truncates the name): a literal port squeezed the name to nothing at font scale 2.0
(chip read only "Default"). Noted in docs/parity/composer.md.
Verified: scripts/check.sh :feature:composer passes; emulator-5590 against the live server,
Haiku 5.5, Agent Selection + One Picker on, New Session draft, light and dark at font scale
1.0 and 2.0 (fixes/A-11/*.png in the QA runs folder).
…e (F-02)
Pressing "Switch Model" (or any run-error line's action) drew a hard-edged grey rectangle:
the ripple filled the unclipped row-half hit target that rowHitTarget grows around the label.
The target is now clipped to OpenCodeShape.capsule before clickable, so the press reads as
a Material text-button ripple around the glyph and title. The control stays chromeless
at rest, as iOS presents it (RunErrorRow.swift:74-86, a .plain button in secondary). Hit
target, semantics and the hold menu are unchanged.
Verified: scripts/check.sh :feature:transcript passes; emulator-5590 on session-lab
checkpoint run-error-no-route ("This model isn't available" · Switch Model), held press
captured in light and dark, a tap still opens the model picker (fixes/F-02/*.png).
…closes QA F-01. With the keyboard up, tapping the composer's model chip put the keyboard away for the Model sheet, and closing the sheet (Cancel, a pick, a tap on the scrim) left it down. iOS hands it back. Root cause: Android ported the chip's dismissal (iOS 07b2f5f8) but not iOS openModelPickerFromChip's sheetRestoresFocus flag (SessionView+ComposerControls.swift:94-110) or the sheet's onDismiss that reads it (SessionView.swift:385-386). The chip now records whether the field had the keyboard on SessionModelPanels.sheetRestoresFocus, and SessionSheets' dismissal (the existing port of that onDismiss) clears it and calls restoreFocusAfterModelList. As on iOS only the chip sets the flag: Switch Model on a run error, and a chip tap with the keyboard down, leave the keyboard down. Verified on emulator-5588 against session-lab (Session rendering lab): keyboard up -> chip -> Cancel, -> pick Fixture Pro, -> scrim tap: the field is focused with the keyboard and the "Message" placeholder. Keyboard down -> chip -> Cancel or pick: stays collapsed and unfocused. Switch Model (run-error-no-route) with the keyboard up or down -> Cancel: keyboard stays down. The A-01 cases (Photos, Files, drawer close by Back and scrim, Home/return, Back unfocuses) are unchanged. Evidence in opencode-android-qa-runs/fixes/F-01. scripts/check.sh :feature:composer :feature:session passed.
QA C-01. A tap on the message field shows the blue caret drop handle for a few seconds; opening the + menu or the drawer within that time left it drawn over the menu's Location row and the drawer's New Session pill (and a selection's handles and toolbar the same way). It also took taps meant for what it covered. Root cause: Compose draws the handles and the text toolbar in popup windows above the activity's window, and only hides them when the field or its window loses focus. The + menu and the drawer are drawn in the app's window while the field keeps its focus (iOS keeps the responder and keyboard under the menu), so nothing hid them. ComposerTextInput takes isCovered (the session passes isAttachmentMenuOpen, which includes the photo sheet) and, with the drawer's existing keyboard hold, gives its BasicTextField a LocalWindowInfo whose window isn't focused while covered. Compose then cancels its handle and toolbar observer: the handles and toolbar hide, and the caret hides until the cover goes, as with any focused Android popup. Element focus, the input session and the keyboard are untouched. A hidden caret handle stays hidden until the next tap; a selection's handles come back with the selection when the menu closes. Verified on emulator-5588 against session-lab: typed text, tapped in it (handle showing), then within 0.5 s opened + (handle gone, keyboard up, field focused), and separately the drawer (no handle at any frame of the slide; keys back on close). A long-press selection's handles and toolbar hide under + and return when it closes. Evidence in opencode-android-qa-runs/fixes/C-01. scripts/check.sh :feature:composer :feature:session passed.
# Conflicts: # docs/parity/session.md
Session-link chips drew a full-width text underline under the glyph, the title and the trailing padding (QA C-02). The chip's LinkAnnotation.Clickable was built with styles = null, and Material3's Text (createTextWithLinkStyles, material3 1.5) replaces null link styles with Material's default link style, which underlines. Plain links pass their own TextLinkStyles, so they were never affected. The chip now passes an empty TextLinkStyles(): Material leaves it alone and foundation adds no span, so the chip is only its own drawn rounded rect, glyph and title, as iOS SessionChipRenderer draws it. Press feedback is unchanged (drawn by the chip renderer / LinkMenu, not the link style). Verified: scripts/check.sh :feature:transcript passes. Emulator (API 36) against session-lab session-links: no underline on HOME, OPENCODE, the subagent chip or the unknown-ID chip in light and dark; a press darkens the chip, a hold opens the HOME menu, tapping HOME opens the linked session. link-icons checkpoint: plain links unchanged (link tint, no underline).
Pressing "Undo" on the "Reverted from here" line drew the same hard-edged grey rectangle F-02 fixed for the run-error action: the ripple filled the unclipped row-half hit target that rowHitTarget grows around the label. The target is now clipped to OpenCodeShape.capsule before clickable, as in RunErrorAction (4286300). At rest it stays chromeless like iOS's .plain button (RunErrorRow.swift:128-137, UndoneRow). Hit target, semantics and the redo action are unchanged. Verified on emulator-5594 against session-lab (checkpoint run-error-content-filter, Edit stages the undo): held press shows a capsule in light and dark; a tap still restores the reverted messages. Evidence in opencode-android-qa-runs/fixes/F-15. scripts/check.sh :feature:transcript :feature:media :feature:session passed.
…r (F-07) The media viewer's StatusBarEffect remembered the window's status bar style when it opened and put that back when it closed. If the app's appearance changed while the viewer was up, closing it restored the old style: e.g. dark clock and icons over the now-dark session. It now takes the app's effective appearance (the same rememberAppAppearance + system night mode OpenCodeAppTheme uses since A-07, 9bcb25e): off the dark room and on close the bar is light or dark for the current appearance, and an appearance change while the viewer is up re-applies the viewer's own style. iOS gets this from `.default` (MediaPresentation.swift:416), which follows the window's overrideUserInterfaceStyle (Theme.swift:675-679). Replaced: the remembered `originalLight`. Verified on emulator-5594 against session-lab (tool-image). The trigger isn't reachable through the UI (Settings is under the viewer; a system night-mode change recreates the activity and closes the viewer), so a temporary, uncommitted hook flipped Mode to Dark 4 s after the viewer opened. Before: closing left dark icons on the dark session. After: light icons on black while open (before and after the flip) and light icons on the dark session after closing. Without the hook, opening and closing in Light is unchanged. Evidence in opencode-android-qa-runs/fixes/F-07. scripts/check.sh :feature:transcript :feature:media :feature:session passed.
In landscape with the keyboard up, or a short split-screen window, the draft's recent-projects overlay (DraftProjectsOverlay) stood above the composer with nothing to stop it, so it floated under the status bar and over the session header (pre-existing; seen in fixes/A-10/after-land-kb-noatt.png). The overlay now measures where its top lands in the window. While that would be above the header's bottom (status bar + header row), it fades out and stops taking touches and TalkBack focus, through the same HiddenUnderComposerPanel it already uses under a panel. It comes back as soon as there's room (keyboard down, portrait). This follows the A-10 rule that the header gives way to the composer in short windows. iOS has no equivalent rule: its phones are portrait-only and SessionView+Composer.swift:86-116 just stands the list on the area's top; this is a documented Android extension (docs/parity/session.md). Verified on emulator-5594 against session-lab, new draft: - landscape, keyboard up: list hidden, composer over the header as A-10; - landscape, unfocused: the full list doesn't fit under the header, hidden; focused with the keyboard down, the folded chosen-project pill shows; - wm size 1080x1400, keyboard up: pill hidden instead of overlapping the header title; keyboard down: full list shows below the header; - portrait, keyboard up and down: list and pill unchanged. Evidence in opencode-android-qa-runs/fixes/F-12. scripts/check.sh to follow in the batch run.
The integration build skipped the W-06/AB-01/AC/AH-01 branch on an ArrivingText.kt conflict git couldn't align: M-02 (27bf1f5, via aa01-link-actions) wrapped the reply Text in CompositionLocalProvider(LocalViewConfiguration provides touchTargets) and re-indented it, while AH-01 (a5b8d9f) replaced the Text's graphicsLayer { compositingStrategy } with a drawWithContent that records chunk fades into a rememberGraphicsLayer, and put the Quote action on the Text's own semantics. Resolution: M-02's wrapper and its link-gesture pointerInput are kept as they are; inside it, the graphicsLayer modifier is dropped and the drawWithContent body is AH-01's, re-indented; the Text's semantics keep the link hint and add AH-01's Quote action. The link-actions Box (AA-01's 32-action cap) is a separate node, so the Quote action doesn't count toward it. Verified: vm.sh check :feature:transcript :feature:media :feature:session passes on the merge. Streaming visuals, link taps (M-02/I-01) and AA-01 with TalkBack go to the next retest.
…ed rows (QA AI-01) After process death with the reader scrolled up, the jump pill showed over the hidden list (V-01) for 0.3-0.5 s, faded, and came back 5-9 frames after the rows (3/3, round 15). Root causes: 1. F-38's saved pill state (SessionScrollEdgeBridge, rememberSaveable) survived process death and seeded the screen's pill on the first frame, before the list decided to hide and held it back. 2. When V-01's hide ended, the list asked for the pill from a SideEffect, so the pill composed a frame later as newly shown and played its intro spring, while the rows showed in that frame's draw. Now: - The bridge saves the pill state with the process (pid + start time, as AG-01 does for the caret) and restores it only in the same process, so a dark/light switch still starts the pill shown (F-38), and process death never does. - While the list hides, its jump-button changes still go out, and a new TranscriptList onHidesChanged tells the screen to veil the pill (SessionComposerHost.veilsJumpButton): composed and at rest but not drawn, touched, dragged or read out. The veil is read when the pill is drawn, so it lifts in the same frame the list's alpha does. This replaces e1b04be's holding back of the pill state in RestoreHide.jump. Verified on VM FX_1 (lab 4194, history, 30 fps): process death while scrolled up (rows 209-225): no pill while the list is hidden, pill at rest on the rows' first frame (frames 134, 130, 135; 3/3). Dark/light while scrolled up: pill at rest on every recreated frame, rows unchanged (3/3). Reader at the bottom: no pill after dark, light or process death. vm.sh check :feature:transcript :feature:session passes. Evidence: ~/qa/runs/fixes/AI-01/pd{1,2,3}-strip.png, dl-strips.png, pd-bottom-strip.png (videos alongside).
…cus a moment later (QA AJ-01)
Round 15 saw it 2 times in 84 with Gboard docked: after Home and back, the
keyboard and focus came back and then left on their own. Reproduced 1 in
72 on FX_2 (docked, Home -> return after 0.3 s by the icon) with temporary
logging (not committed): the hide of the keys that went down with Home
reached the composition only after the return, with the window focused and
resumed again. AG-02's guards (window focus / RESUMED before the wait, and
a wait spanning ON_PAUSE dropped) both passed, because the pause came
before the wait. A-01 ("keys leaving on their own unfocus the field")
fired 250 ms later and released the focus, while the system was restoring
the IME (SHOW_RESTORE_IME_VISIBILITY); the keys then came up for nothing
and went, as in the tester's frames.
A-01 now remembers how many pauses had happened when the keys were last
seen coming up: keys last seen up before the app left went with the
background, so their hide doesn't count as the reader dismissing them. Once
the keys come up again after the return, Back unfocuses as before. iOS keeps
the text view first responder across the background (it resigns only in
dismissKeyboard, ComposerTextInput.swift:802-805).
Verified on FX_2 (docked unless noted):
- instrumented: 1/72 before, 72/72 after (icon and Recents, return after
0.3 s, 1 s and 3 s).
- clean build: 40/40 (icon 0.3/1/3 s 6/7/7, Recents 6/7/7).
- F-69: 10 dark/light at 1 s 10/10, then Back unfocuses.
- Gboard floating: Home and return 10/10.
- AF-02 with TalkBack 3/3: TalkBack Back says only "keyboard hidden", the
field unfocuses, swipe right goes to "Add attachment".
- vm.sh check :feature:composer passes.
Evidence on the VM: ~/qa/runs/fixes/AJ-01/.
Parity row updated: ComposerTextInput.swift.
AH-01 (a5b8d9f) moved the block's Quote action onto ArrivingText's Text; merged with AA-01/F-73 (6c9e46b) that made the Text actionable, so TalkBack stopped on it and never reached the LinkMenu box holding the links' actions: a 7-link paragraph offered only Quote (0 of 28 link actions) and a 40-link one lost More Links. LinkMenu now takes trailingActions from its caller. ArrivingText passes Quote there when the paragraph has menu links and leaves the Text without actions; a paragraph without links keeps Quote on the Text as AH-01 has it. The links' plan reserves Quote's slot, so links + More Links + Quote stay within 32 (withinNodeLimit still guards). Order: link actions, More Links, then Quote, as on iOS where linkMenu's actions sit on the text (ArrivingText.swift:119, LinkMenu.swift:241-246) and Quote is added on the block around it (MarkdownBlockView.swift:50, MarkdownQuoteSelection.swift:17-24). The box's actions and its semantics lambda are remembered, keyed on the links, so streaming chunks don't invalidate its semantics (no per-block wrapper node and no per-chunk lambda, keeping AH-01's gain). Also fixes a crash from AH-01's AgentImageGrowthHoldNode: reading `density` inside GraphicsLayer.record recursed into itself (StackOverflowError at MarkdownBlocksView.kt:166, on FX_1 when a sighted reply grew, and again on the unfixed build later); the soft-edge px is now read before record. Verified on FX_1, real 4197 server (Haiku), TalkBack 16, evidence in ~/qa/runs/fixes/AL-01/ on the VM: - 7 links on example.net: the text's actions are "Open example.net/n-1 in Browser" ... "Share Link to example.net/n-7" (28) then "Quote"; the 13th, Open example.net/n-4 in Browser, opened example.net/n-4. - 40 links: 28 link actions, "More Links", "Quote"; More Links -> example.net/n-12 -> Open in Browser opened n-12. uiautomator dumps with TalkBack off, on screen and over 5 scrolls: same pid, no crash. - No-link paragraph: actions "Quote", which quoted it into the composer. - TalkBack event rate (AH-01's analyzer): 1500-word essay 6.49/s overall, ~4.0/s after the send burst (AH-01: 4.05-7.39, 3.9/s); 10 link paragraphs 8.31/s overall, 3.6/s after the send burst, vs 10.68/s and 4.8/s on the unfixed merge 6c9e46b. - Sighted (TalkBack off): taps off a link's glyphs open nothing, a tap on example.net/b-9 opens it, holding b-10 opens its menu. - vm.sh check :feature:media :feature:transcript :feature:session passes, including LinkMenuTests.quoteJoinsTheLinksActionsWithinTheNodeLimit (50 links + Quote <= 32 with More Links; 7 same-host links + Quote = 29 distinct).
# Conflicts: # docs/parity/session.md
# Conflicts: # docs/parity/session.md
# Conflicts: # docs/parity/drawer.md # docs/parity/session.md
# Conflicts: # docs/parity/transcript.md
# Conflicts: # docs/parity/app.md # docs/parity/drawer.md # docs/parity/session.md
# Conflicts: # docs/parity/media.md
# Conflicts: # docs/parity/drawer.md # docs/parity/media.md # docs/parity/session.md # docs/parity/transcript.md
ComposerIdentityTests.activityRecreationDoesNotRestartSessionTaskOrDropVisibility (K-01) failed about half the time in the full :feature:session suite with "expected:<1> but was:<0>" (Action.Task never sent). The cause is test-only. Cause: AgentSelectionComposerTests.switchingServersFromADraftListsTheNewServersAgents (F-24) destroys its activity and returns without idling the main looper. The composition's teardown leaves 54 tasks queued on Compose's process-wide AndroidUiDispatcher.Main with scheduledTrampolineDispatch and scheduledFrameDispatch both true. Robolectric then discards the main looper's pending messages between tests, so the dispatcher's posted message and frame callback never run. Its flags stay set, so it never posts again. In the next test in the same JVM, no AndroidUiDispatcher work runs, including SessionLifecycle's LaunchedEffect, so Task is never sent. A reflection probe confirmed it: K-01 started with trampoline=true frame=true queue=54 after F-24 and with all clear otherwise. It isn't a product bug. The retained store behind `retain` is LifecycleRetainedValuesStoreOwner, a ViewModel on the activity's own store. It's fresh per activity and only keeps exited values between ON_STOP and resume, so it doesn't carry startedTaskIdentity across tests. A real app's looper never drops posted messages. SessionViewLifecycle.kt is unchanged. Fix: idle the main looper in F-24's finally, after destroy and store.close(), as K-01's own teardown already does. Assertions are unchanged. Verified on the VM: - Before the fix, a JUnit suite forcing F-24 then K-01 failed. K-01 then F-24 passed. - With the fix, both forced orders passed 10/10 (temporary suites, not committed). - The full :feature:session suite (--rerun) passed 10 times in a row (779 tests, 0 failures each). - vm.sh check :feature:session passed.
Tarquinen
added a commit
that referenced
this pull request
Nov 9, 2026
…83 sync Brings in the release workflow (Play uploads only on v* tags), the Play photo policy change, the QA fixes and the navigation-bar spacing for the + menu. Resolutions: - Photos follow main: no READ_MEDIA permissions, the live PhotoLibraryClient reports Unavailable and + → Photos opens the system picker. The photo sheet code stays, unreachable. PhotoRequestGate stays replaced by OneShotRequestGate. - The + menu's navigation-bar inset moved onto AttachmentMenuMeasure (the overlay it was on is gone) and into PlusMenuPlacement.foot. - LocalDrawerVisible (main) folded into LocalDrawerHidden (ours); the activity ring keeps main's TalkBack check on the ambient clock. - Catch Up finish keeps main's modal drawer handling on our motion roles (swap enter/exit). - Transcript row exits (main) keep RowEntrance.EXIT_DURATION alongside the role-driven entrances; LiveTranscript records the cursor as main does and keeps the parse cache. - Title rolls, the draft list exit and the composer swipe/edit paths keep both sides. - ServerLinkTests.expectTimeout keeps stepping the clock until the stream ends (up to 100 s): the watchdog wakes on another thread and can sleep from a clock read taken before a jump. Parity docs merged row by row; test totals recounted. Verified: full scripts/check.sh passes; ios-sync.py check 0 errors.
Tarquinen
added a commit
that referenced
this pull request
Nov 9, 2026
…UI work Brings Ryan's #3, #4, #6 and #7 into the Material 3 branch through PR #5. Conflicts kept both sides: main's TalkBack, touch and focus fixes with this branch's Material styling (Jump to Latest as a small FAB on main's touch tracking, the Export submenu in main's non-focusable menu, the level word ellipsizing inside the outlined model chip, the Catch Up swipe glyph on its tone colour, the transcript's row exits with the soft bottom edge). Verified: scripts/check.sh passes for every module; ios-sync check 0 errors; parity test totals match Gradle.
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.
Two days of hands-on QA of the Android app on emulators (every flow recorded, iOS
ae029f85as the reference), with each fix verified on a device before it was counted. This PR merges all 54 QA fix branches. The app code is identical to QA build #17 (f623b8da), which passed the final retest round on both QA devices (sighted and TalkBack); the only other differences aremain's release tooling (#3, #6) and merged parity-doc notes.About 85 bugs were filed and fixed. Highlights by area:
Crashes
TalkBack (P-01…P-07, U-01…U-03, W-01…W-06, AB-01/02, AD-01/02, AF-01/02, AH-01)
:core(AccessibilityFocus.kt).Keyboard and focus (A-01, I-03, Y-04, F-69, AG-01, AG-02, AJ-01, T-02, F-70, L-04, AI-02)
Transcript and restore (B-01…B-08, I-02, K-01, K-02, T-01, V-01, F-72, AI-01, M-02, I-01)
Composer, attachments, share (A-04, A-05, A-10, C-01…C-03, J-02, L-01…L-03, M-03, N-01, N-02, S-01)
Locale (Y-01…Y-03, F-67)
Catch Up and drawer (AC-01, AC-02, A-03, A-09, D-01…D-03)
Android divergences recorded in
docs/parity(each approved or forced by the platform): RTL off while there are no translations (Y-01); the server card doesn't speak the live ms (U-01); typed keys with nothing focused are dropped (T-02); while TalkBack is on, Catch Up's starfield, activity glyphs and drawer ring hold still and a streaming reply grows in one step with text every 1.5 s (W-06, AB-01, AH-01; still open for Ryan: F-71).Verified: every fix on a device (QA rounds 7–17 on the Linux QA VM), and
scripts/check.shper touched module on each branch; this PR's CI runs the full check.