Skip to content

Fix black box under a long collapsed user message - #25

Merged
Tarquinen merged 1 commit into
mainfrom
fix/show-more-black-box
Nov 10, 2026
Merged

Tarquinen merged 1 commit into
mainfrom
fix/show-more-black-box

Conversation

@Tarquinen

@Tarquinen Tarquinen commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

A very long user message could draw a black rectangle from its fade down to the composer. The fade's layer was as tall as the whole message, and when that's taller than the GPU allows, Android drops the layer and the fade erases the window behind it. The fade now only covers the folded part, so it looks the same and the layer stays small.

Affects every release since v0.2.2.

Before After
before after

Emulator, dark theme, a long prompt collapsed while the reply streams.

The collapsed bubble's fade masked an offscreen graphicsLayer with
BlendMode.DstIn. The layer was as tall as the whole measured text, not the
folded height. For a long prompt (about 8k px of text) the layer is larger
than the GPU's maximum texture size, and HWUI's RenderNode::pushLayerUpdate
then draws the node without its layer. DstIn then erased the window itself:
a black rectangle as wide as the text column, from the fade down past the
bubble to the composer, with later items drawn over it.

Mask a saveLayer bounded and clipped to the folded height instead, so the
layer stays small whatever the text length. The look, the fold, Show More
and Show Less are unchanged.

Verified: scripts/check.sh :feature:transcript on the Android VM. On the VM
emulator (API 36) with a session-lab prompt of 60 bullets (8.9k chars), the
unfixed build drew the black box in light and dark while a reply streamed.
The fixed build shows none in light or dark: while streaming, collapsed,
3 rounds of Show More / Show Less, scrolling, drawer open/close, and back
from the background. A short folded prompt (12 bullets) looks as before.
@Tarquinen
Tarquinen merged commit b1c62c0 into main Nov 10, 2026
1 check passed
Tarquinen added a commit that referenced this pull request Nov 10, 2026
…show-more fix

Brings in #24 (a pushed page leaves a rightward swipe to a horizontal
scroller that can still scroll back) and #25 (no black box under a long
collapsed user message). Both merged cleanly in code; docs/parity/session.md
keeps #5's iOS 01eef583 line counts and notes and adds main's scrollerClaims
note to the SessionPageStack row.

Verified: python3 scripts/ios-sync.py check (854 rows, 0 errors);
scripts/check.sh :feature:transcript :feature:session on the Android VM.

This branch was previously deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant