Repository navigation
Android: open a big chat without crashing (paged, light transcript) - #376
Open
default-cybe wants to merge 1 commit into
Open
default-cybe wants to merge 1 commit into
default-cybe wants to merge 1 commit into
Conversation
The app read GET /api/sessions/:id/messages whole, so a 1234-message chat with 89 MB of inline screenshots came as one JSON body, and every image was decoded at full size. It now reads the newest 200 messages with trim=1 (the paged API the web uses since #247), reads older pages with beforeSeq when the list reaches the top, and reads a picture or document the page left out from its block route only when it shows or Edit/Retry sends it again. Chat images decode at about the size they show. Committed-by: Conclave (cliproxy/personal-claude/claude-opus-5-5)
This branch has not been 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.
GET /api/sessions/:id/messageswhole (ConclaveClient.messages), so the 1234-message chat with 89.5 MB of inline screenshots came as one JSON body.InlineImagealso decoded every picture at full size.limit=200&trim=1, the paged API the web uses since perf(hub): stall attribution, timing logs, paged web transcripts (items 1-3 of 6) #247, and reads older pages withbeforeSeqwhen the reversed list reaches the top (OlderOnTop). This applies to both the session screen and the Chat tab.conclave-block:ref (logic/Trimmed.kt). It is read fromGET .../messages/:msgId/blocks/:indexonly when it shows, or when Edit/Retry sends it again. Retry reads it before the rewind drops the message.decodeScaled, inSampleSize) instead of full size.client/src/test/.../PagingTest.kt, covering query params, ref marking, block reads and paging back to the start.