Repository navigation
improve(android): keep chat photos outside text bubbles - #155338
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 22, 2026, 10:47 AM ET / 14:47 UTC (Revision 5). ClawSweeper reviewWhat this changesAndroid chat separates photos from text bubbles, groups adjacent attachments, and adds four-image paging while preserving the existing image viewer. Merge readiness✅ Ready for maintainer review Keep open: the Android improvement remains necessary, and the reviewed head has no blocking correctness findings. Inspected native screenshots and successful exact-head CI support the change; the merged camera work does not supersede it. Priority: P2 Review scores
Verification
How this fits togetherAndroid chat renders transcript content and attachment references received through the Gateway. Its message renderer arranges text and previews, delegates image loading to existing decoders, and opens the existing full-screen viewer. flowchart LR
A[Chat transcript] --> B[Android message renderer]
B --> C[Role and content ordering]
C --> D[Separate text surfaces]
C --> E[Four-image page]
E --> F[Existing image loaders]
F --> G[Photo previews]
G --> H[Full-screen viewer]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +583, Docs 0, Other +125. Total +708 across 9 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep attachment layout and bounded paging in the existing Android renderer, with shared decoding, playback, and viewer ownership preserved. Do we have a high-confidence way to reproduce the issue? Yes, from source: a message containing five images still renders only four on current main and v2026.9.5. The supplied native captures demonstrate the layout difference; this review did not execute the application. Is this the best way to solve the issue? Yes. Extending the existing renderer with a bounded page preserves loader and viewer ownership and avoids retaining an unbounded gallery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 50ea1795fc80. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
Reapply the reviewed source-only gallery delta onto the landed camera change. Preserve both the camera source-specific decoding policy and the compact gallery layout argument. Keep bounded four-image navigation, original assistant ordering, native regression coverage and existing viewer/auth owners. Generated locale output remains owned by the refresh workflow. Co-authored-by: IWhatsskill <[email protected]>
240e9b6 to
163787f
Compare
|
@clawsweeper re-review The previous completed review is now over 12 hours old. Camera landed first as 6005e26. Integrated gallery head: 163787f. The final nine-file source-only gallery delta preserves both source-specific decoding and compact layout; generated locale outputs remain excluded. Fresh full-candidate P0–P2 autoreview completed all three passes without findings. Updated PR evidence distinguishes historical proof from the running exact-head CI: https://github.com/openclaw/openclaw/actions/runs/35738690348. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Before landingIntegrated head: 163787f, based on the already-landed camera commit 6005e26. Camera was landed first, as requested.
Native review artifacts and OPENCLAW_TESTBOX=1 scripts/pr prepare-run 155338 have passed on this exact head, reusing completed hosted evidence without another push. Final pinned-head merge gates remain authoritative. This note is published before merge, not a claim that landing has happened. |
|
Merged via squash.
|
* commit '739e2410702e0b1ad1d17a6dac07ddc0ab6dbebb': (140 commits) fix(ui): pause passive polling in hidden tabs (#155617) improve(android): keep chat photos outside text bubbles (#155338) fix(ui): preserve saved project after discovery failure (#155619) feat: compare Kitchen Sink Gateway resource costs (#155734) test(gateway): arm clock-jump claim after readiness (#155748) chore(ui): refresh control ui locales (#155700) fix(ci): join archive placement fixtures before teardown (#155751) fix(matrix): keep bot discovery off the Gateway thread (#152122) fix(agents): reconcile late requester recovery receipts (#155357) test(gateway): guard embeddings HTTP fixture lifetimes fix: isolate triage fixture acquisition and cleanup (#155736) refactor(sessions): hydrate saved transcripts off thread (#153325) fix: Claude MCP turns abort before tool timeout (#155663) fix(goals): pause terminal failures and clarify goal states (#155694) fix(test): preserve watcher errors when diagnostic capture fails (#155383) ci: move native runtime proofs to release validation (#155606) fix(auth): decouple compaction from profile rotation (#155204) fix(agents): admit compaction outside retired plugin generations (#151232) perf(ui): reduce automatic session list refetches (#155705) test: avoid unused source repos in release input fixtures (#155733) ...
) Reapply the reviewed source-only gallery delta onto the landed camera change. Preserve both the camera source-specific decoding policy and the compact gallery layout argument. Keep bounded four-image navigation, original assistant ordering, native regression coverage and existing viewer/auth owners. Generated locale output remains owned by the refresh workflow. Co-authored-by: IWhatsskill <[email protected]>
What Problem This Solves
Photos stretch Android chat bubbles into tall columns, and attachments beyond the fourth image cannot be opened.
User Impact
Chat photos sit outside the text surface, adjacent photos form compact rows, and every image remains reachable. Short messages fit their text; long user messages keep their existing width limit.
Why This Change Was Made
The message renderer separates passive attachments from text without moving audio/video players out of their existing owner. Your attachments appear above your text; assistant content keeps its authored text/image order. Both roles use the same text inset. The existing image viewer, download/decode limits, source cards, disclosures, and message actions remain in place.
Only four attachment image previews are composed at once. Next images / Previous images replace that window instead of decoding an unbounded gallery; the existing bitmap cache is not treated as a bound on Compose-held references. Single previews fit both dimensions, including extremely tall or wide images.
Native adaptation of the Web design reference by @vyctorbrzezowski—not a desktop CSS port or a claim that the Web galleries both roles. No camera/composer production changes, new dependencies, configuration, or schema changes.
Evidence
Camera-first integration — 163787f
Camera landed first as 6005e26243da4e720fb8495f43cae6971e38050f. This candidate reapplies the previously reviewed final nine-file source-only gallery delta onto that base, without replaying intermediate generated-locale changes.
Historical source-only CI correction (
240e9b6db61b6518ccd79edd4c61ede62087784b): The first hosted preflight failed on mixed source/generated locale output before Android tests ran. The 23 generated Android locale/platform files are now restored to the PR base and absent from the PR diff; source, tests andapps/.i18n/native-source.jsonremain. The serialized locale refresh workflow owns those artifacts. The same whole-PR scope classifier fails before and passes after this correction, without changing its guards.After removal, all 22 native layout/navigation cases across Play and ThirdParty, app Kotlin lint and native i18n source verification pass through the existing untranslated-source fallback (36s wall; Gradle 34s). Fresh independent P0–P2 review of the correction is scoped-clean. Layout source and the matched screenshot evidence are unchanged. This is not a full generated-locale parity claim.
Matched production Android Compose, synthetic content, 360×800 mdpi, Claw dark theme. Isolated Robolectric native graphics—not an emulator, physical-device, or live-Gateway claim.
Before
After
Additional native states
Light/dark appearance, both roles, single and grouped images, portrait/panorama, media-only and captioned turns, five-image navigation, long-text gutters, and tablet wrapping. Gallery tiles are scaled copies of native captures, not UI mocks.
Integration note: the camera change has landed. This PR now builds on it, retaining both source-specific decoding and explicitly named compact layout; gallery and composer coverage coexist on the integrated candidate.
Worked on by: @IWhatsskill
Work sessions
View the OpenClaw team session