Repository navigation
Fix black box under a long collapsed user message - #25
Merged
Merged
Conversation
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
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
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.
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.
Emulator, dark theme, a long prompt collapsed while the reply streams.