Skip to content

#1033 Keep tool output out of Session Chat projection, route keys and cache flushes - #1051

Merged
ivanfenenko merged 9 commits into
mainfrom
fix/1033-session-chat-memory
Nov 16, 2026
Merged

ivanfenenko merged 9 commits into
mainfrom
fix/1033-session-chat-memory

Conversation

@ivanfenenko

@ivanfenenko ivanfenenko commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Two fatal OutOfMemoryErrors in Android Session Chat (#1033). The reproduction on a debug build of main, on an emulator with a 192 MB Java heap, found three causes. This pull request fixes all three on Android and makes the matching changes on iOS where the same cost exists.

1. Eager per-line tool presentation (the biggest consumer)

Cause. toToolCard called ToolResultInspector.fromTool for every tool on every timeline projection. That split each body into one SourceLine per line; for a write, the body is the whole uncapped file. A heap dump showed 416K SourceLines plus 520K small strings, about 70 MB of a 102 MB live heap, held by ToolCard.presentation. One fatal stack ends in ToolResultInspector.nonEmptyLines ← … ← SessionChatTimeline.publishDisplayMessages. settledDetail also copied each output into the card's detailText.

Android change.

  • SessionChatTimelineBlock.ToolCard no longer has presentation. A tool card leaves detailText null (only the compaction summary still sets it) and carries opensToolDetail and detailRevision (lengths of output, error and written content, so the live activity-sheet detail is still rebuilt as a running tool's output grows).
  • opensToolDetail comes from ToolResultInspector.hasResult(tool), which reads the output only up to its first non-blank character, plus a check on the chrome detail that copies nothing.
  • The detail is built on tap by SessionChatTimelineBlocks.toolDetail(tool) from the tool part looked up at that moment (SessionChatToolDetails, reached through LocalSessionChatToolDetailResolver). The Session Chat screen model provides it from the loaded transcript, and the tool group route from the store. The activity sheet builds it only for the open step.
  • A write card's +N now counts newlines instead of splitting the content.

2. Tool-group navigation key carried tool contents (fatal)

Cause. SessionToolGroup held SessionToolGroupMembers, each with detailText (a full output copy) and presentation (all its lines). Navigation3 calls toString() on the key (NavEntryKt.defaultContentKey), and the key is @Serializable saved state. Tapping a 78-tool group needed one 76 MB allocation, which crashed the main thread in SessionToolGroup.toString.

Android change.

  • SessionToolGroup now carries ids only: sessionId, worktree, transcriptWorktree, parentId, blockID, messageId, owningTurnMessageId, memberBlockIDs, and the existing flags. It also keeps the bounded title and subtitle the top bar shows (count labels, or a single path or pattern). SessionToolGroupMember and the SessionToolGroupImages holder are gone.
  • The new SessionToolGroupViewModel observes MessageRepository.observeMessages(sessionId, transcriptWorktree). That is the same shared store flow Session Chat observes, so it adds no load. It projects the members with the same toToolCard the timeline uses.
  • If the live transcript no longer holds the group, the route goes back, the way the activity sheet closes when its card is gone. A cached first frame without the group waits for the live load.
  • Every other navigation key was checked: none carries content of unbounded size.
  • Side effect: the old key dropped isInterrupted, noteText and images for group members. Members resolved from the store now show an interrupted or declined member, its note and its images the way the timeline does, including after process death.

3. Session cache encode

Cause. DefaultSessionCache.flushLocked encoded the whole loaded transcript into one JSON string 3 s after the last update. On device it asked for one contiguous 70 MB char[]; a JVM probe measured 5–8× the payload. The runCatching there caught the OutOfMemoryError and logged it, leaving the heap at its limit.

Android change.

  • SessionCacheCodec.encodeMessages encodes one message at a time, newest first. It keeps the newest messages whose JSON fits MESSAGE_TIMELINE_BUDGET_CHARS (2M chars, about 4 MB as UTF-16; it always keeps the newest message), then splices them into the unchanged envelope. Decode is unchanged.
  • No flush builds a block bigger than one message plus the budget, and the seed decode is bounded the same way.
  • flushLocked, seed and decodeMessages now catch Exception, not Throwable; an Error and cancellation propagate. SessionCacheMessageEncoder is the test seam.
  • Nothing inside a message is trimmed. I first tried trimming large tool payloads. I dropped it because MessageWindowMerge.applyTail keeps seeded messages older than the REST tail, so a trimmed cached part would never be replaced.
  • What changes for a user: in a session whose cached JSON passes about 2 MB, a cold first paint (before the live load) holds only the newest messages that fit. Scrolling above them before REST answers shows less history than before. Once REST loads, nothing differs. Sessions under the budget are cached exactly as before.

iOS: what I found and what changed

  • Fix 1: same cost, changed.
    • SessionChatToolCardBlock replaces the stored presentation with resultRequest: ToolResultRequest?. These are the classifier's inputs, which share the tool part's string storage. presentation is now a computed property, read only when the detail opens.
    • opensDetail gates the tap at render, and SessionChatStepTapActions and the tool group view build the detail inside the tap closure. Before, they built it at render.
    • Projection no longer runs classify or trimmingCharacters on whole outputs. ToolResultInspector.hasResult and isBlankText stop at the first non-blank scalar.
    • The write line count no longer calls components(separatedBy:), and settledDetail returns a single part as is, so it shares storage.
    • I kept detailText and the carried strings: Swift strings share storage, so no copy is made.
  • Fix 2: left. SessionChatToolGroupTarget is @State, hashed on blockID only, not Codable and never printed. With the presentation gone from the cards, its members hold only shared strings. No change.
  • Fix 3: same cost, changed. SessionCacheCodec.encodeMessages built the whole transcript as one Data and then one String. It now uses the same per-message newest-first budget (messageTimelineBudgetBytes, 2 MB of UTF-8). Swift cannot catch an out-of-memory condition, so there was no swallowed Error to fix.

Fixes #1033

Checks

  • Android: ./gradlew :app:assembleDebug :app:assembleDebugAndroidTest passed. The full ./gradlew :app:testDebugUnitTest ran 3384 tests with 0 failures.
  • Android new tests:
    • ToolCardDeferredDetailTest: multi-MB write and shell cards print under 2,000 chars and hold no presentation; the detail built on open equals the old eager fromTool result; hasResult matches fromTool != null over the fixtures; detailRevision follows a growing output.
    • SessionToolGroupRouteTest: toString() and serialized size are identical for 1 KB and 5 MB outputs; the destination resolves the same members; the route goes back when the group leaves.
    • SessionCacheMessageBudgetTest: an 8M-char transcript is encoded one message at a time into a payload within budget, keeping the newest messages whole; an OutOfMemoryError from the encode propagates out of flush(); an encode exception is still logged and skipped.
  • Android updated tests: SessionChatTimelineBlocksTest, SessionChatActivityCardTest and V2LiveTurnTimelineTest now read the tool detail through the on-open path instead of card.detailText.
  • ktlint: no new violations in changed lines.
  • iOS: xcodebuild build and xcodebuild build-for-testing for generic/platform=iOS Simulator both succeed. On a simulator, 590 tests in 13 classes pass, including the new ToolCardDeferredDetailTests and SessionCacheMessageBudgetTests.
  • Device verification (v2 harness server with generated filler; no v1 binary was available). Tables and screenshots: #1033 Keep tool output out of Session Chat projection, route keys and cache flushes #1051 (comment)
    • Android emulator with a 192 MB Java heap, same seeded sessions as the reproduction on main:

      Step main This pull request
      Heavy session (117 messages, 27.9 MB) open, peak / settled 191 / 102 MB 64 / 59 MB
      SourceLine objects after it settles 416K 0
      Tap a 38-tool group about 117 MB 59 MB
      Largest session open, peak / settled 185 / 172–177 MB 86 / 63–64 MB
      Caught encode OutOfMemoryError yes none
      Timeline style change on the largest session crash no crash
      Tap a 78-tool group crash no crash, 69 MB peak
      Tool detail open peaks at 191 MB about +1 MB each
    • iOS simulator, heavy session open: 138 MB on main, 108–109 MB here.

    • Tool details (read, shell, grep, unknown, failed), the tool group screen, restore after process death, the route going back after a revert, and the cached first paint for a small and a heavy session pass on Android; details, the tool group screen and the cached paint pass on iOS.

    • Two defects found on device and fixed: Android cannot read a cache row over 2 MB, so a session cached by an earlier build stayed stuck (0b5de7d92: oversized rows are skipped and replaced, and the budget counts bytes, 1.8 MB); and the tool group screen listed one member of a 78-tool group because members were looked up in one message only (38ef67fb2).

    • The full Android unit suite on the final head: 3,389 tests, 0 failures.

  • No UI change. Timeline rows and the detail views draw the same content. The visible differences are the tool group side effect under fix 2 and the cold-cache case under fix 3.

Risks / Follow-ups

  • An out-of-memory crash is still reachable on a 192 MB heap through code this pull request does not touch. After visiting 10 heavy child sessions (94 MB live, mostly tool input strings kept by the message store), opening the turn's Changes screen and then a 1 MB file in the File Viewer filled the heap. The transcript-release follow-up below and a cap on what Changes and the File Viewer load are the next steps.
  • For a session whose newest messages are each over the budget, the cache keeps only the last message, so a cold offline paint shows one message until the server answers.
  • Not checked: a tool group updating while it is still running; on iOS, a running tool's detail, the running-subagent path, and a cache written by main; a v1 server. The running-subagent check on Android used small child outputs only.

Follow-up, not in this pull request: release a session's transcript from MessageSync / InMemoryMessageStore after its screen closes (about 5 MB per visited child session). Also left out: the 32 MB full-image cache and page sizes.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.


Note

Medium Risk
Large behavioral change across session message caching, navigation/saved state, and tool UI loading paths; regression risk in cold-cache first paint, tool groups, and offline sessions despite broad tests.

Overview
Addresses #1033 OutOfMemoryError crashes in Session Chat by keeping large tool output out of timeline projection, navigation state, and cache writes.

Timeline and tool details (Android + iOS). Tool cards no longer carry eager presentation / per-line inspector bodies or full detailText copies during projection. They expose opensToolDetail (or iOS resultRequest) and build detail on tap via SessionChatToolDetails / LocalSessionChatToolDetailResolver. Projection uses cheap checks like ToolResultInspector.hasResult and newline counting instead of splitting megabyte tool bodies.

Tool group route (Android). SessionToolGroup navigation keys now store only memberBlockIDs (plus metadata), not full SessionToolGroupMember payloads. SessionToolGroupViewModel resolves members from MessageRepository and navigates back when the group disappears; SessionToolGroupImages is removed.

Session cache (Android + iOS). Message timeline encoding is budgeted (encodeMessages keeps newest whole messages under ~1.8–2 MB UTF-8). Cache seed / flush failures (including OutOfMemoryError) are treated as misses without aborting live loads. Room adds meta / setRetainedAt to skip or replace rows exceeding the SQLite cursor window.

Extensive unit tests cover budget encoding, oversized cache rows, deferred tool detail, and the slim tool group route.

Reviewed by Cursor Bugbot for commit 3fd64a7. Bugbot is set up for automated code reviews on this repo. Configure here.

… cache flushes

Session Chat ran out of memory on Android with long sessions. Three causes:

- Every timeline projection built a per-line inspector body for every tool
  card and copied each output into the card. Cards now keep only what the
  collapsed row draws and a flag; the detail (body and inspector) is built
  from the tool part when it opens. A write's +N is counted, not split.
- The tool group navigation key carried every member's output and inspector
  lines, and Navigation3 prints and saves the key. It now names the members
  by block id; the route reads them from the message store.
- The session cache encoded the whole transcript into one string and
  swallowed the OutOfMemoryError. It now encodes one message at a time and
  keeps the newest whole messages within about 2 MB; Errors propagate.

iOS: the tool card keeps the classifier inputs (shared string storage) and
classifies on open; the write line count no longer splits; the cache encode
uses the same per-message budget.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivanfenenko
ivanfenenko marked this pull request as ready for review November 15, 2026 20:09
@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

@cursor review

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: no finding that 2+ of 2 passes agreed on.

1 finding(s) from a single pass, not posted
  • android/app/src/main/java/dev/opencode/mobile/domain/sessioncache/SessionCacheCodec.kt:80 medium: Newest message is always encoded whole, so a single huge message still builds the 70 MB flush allocation the fix targets (deepseek-v4.1-flash)

opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.141 · 1 pass(es) failed

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

ivanfenenko and others added 2 commits November 15, 2026 22:27
Android's cursor window holds 2 MB, so a session cache row larger than
that throws SQLiteBlobTooBigException on read. Earlier builds wrote
whole transcripts (4.3 MB for a heavy session), and commit and retain
read the existing row first, so that row could never be replaced and
the session never painted from cache again.

- commit and retain read only the row's retain time and payload size.
- load skips a row over the window instead of throwing.
- The message timeline budget counts UTF-8 bytes, as SQLite stores
  them and as iOS already does, and stays under the window (1.8 MB).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
OpenCode emits each tool step as its own assistant message, and the
timeline merges a run of them into one group under one message id. The
route looked members up only in that message, so a 78-tool group opened
with one member. Look each member up by block id across the transcript.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

Device verification (#1033)

Real apps against the scenario harness on a v2 server only (opencode 2.2.5; no v1 binary is installed, so v1 was not run). All content is generated filler from the throwaway oom-* reproduction sessions and two throwaway mixed tool-group scenarios.

Android: emulator, API 37, Java heap limit 192 MB, debug build with a local-only heap sampler (500 ms) that is not committed. iOS: simulator, iOS 27.2, footprint.

Head verified: 38ef67fb2 (this PR plus the two fixes below).

Android heap, before and after

Session sizes: oom-m 60+ messages, last 20 = 4.4 MB. oom-l 117 messages, 27.9 MB, 10 children of 4.6 MB each. oom-xl about 35 MB loaded.

Step main (2e81a1a) This PR
Home, fresh process 13–18 MB 11 MB settled (30–35 MB in the first 2 s of launch)
oom-m open 39 MB 58 MB peak, 23 MB live after GC (now also decodes the 1.8 MB cache seed that main could not read, see below)
oom-m tap first tool group ~117 MB 59 MB peak
oom-l open, peak 191 MB 64 MB (57 MB on a cached reopen)
oom-l settled 102 MB live, ~70 MB of it ToolResultPresentation$SourceLine 59 MB sampled, 34 MB live after GC
SourceLine objects after oom-l settles 416K 0
oom-l low point before → after 10 children 104 → 134 MB 47 → 91 MB (94 MB live after GC)
oom-l tool details peaks to 191 MB 5 opens, +1 MB each (38→39, 67→68 MB)
oom-xl open, peak 185 MB 86 MB
oom-xl settled 172–177 MB 63–64 MB
Cache encode OutOfMemoryError (encode messages) yes, one 70 MB char[] none after 30 s
Timeline style change with oom-xl loaded crash in ToolResultInspector.nonEmptyLines no crash (53 MB)
Tap the 78-tool group crash in SessionToolGroup.toString (76 MB allocation) no crash, 69 MB peak

What owns the heap now (dump after oom-l settles, 34 MB live): the message store's own tool parts, mostly the 1 MB write input strings (MessagePart$Tool.input), plus kotlinx-serialization's 4 MB CharArrayPool. After visiting the 10 children, the ~75 MB of those strings across parent and children is the transcript retention this PR lists as a follow-up.

iOS memory, oom-l

main (merge base 5561981) This PR
Home 70 MB 71–78 MB
oom-l, highest in the first 45 s 138 MB 109 MB
oom-l settled 138 MB 108–109 MB

Fixed during verification

  • 0b5de7d92 Android session cache rows over 2 MB could not be read or replaced. Android's cursor window holds 2 MB. main wrote oom-m as a 4.3 MB row, and every read failed with SQLiteBlobTooBigException (retain opened, load messages). So on main, heavy sessions never painted from cache at all. With this PR as first pushed, commit also read the old row first, so the oversized row could never be replaced: no cached paint, ever, for any session cached by an earlier build. Now commit and retain read only the retain time and size, load skips a row over the window, and the budget counts UTF-8 bytes (1.8 MB, as iOS already counts bytes). After upgrading from main, the oom-m row went from 4.34 MB to 1.80 MB and painted offline.
  • 38ef67fb2 Android tool-group screen showed one member of 78. The timeline merges a run of tool-only step messages into one group, but the route looked members up only in the message whose id it carries. It now looks each member up by block id across the transcript.

Screenshots

Android iOS
Read detail
Shell detail
Grep detail —
Unknown tool detail
78-tool group
Group member detail —
Group with image, failed tools, declined shell with note (declared change b)
Group with an interrupted member (declared change b)
Group route after process death —
Group gone after a revert: route goes back —
Cold cached paint, offline (declared change a)
Same session once live

Cold paint: oom-m shows the newest 22 steps offline on Android and 24 tools on iOS, then fills to the full timeline when the server answers. A small session (oom-s) paints in full from cache on both, and from a cache written by main on Android.

Still open (not changed here)

  • A fatal Android OOM remains reachable. After opening the 10 oom-l children (94 MB live in the message store), opening the turn's Changes screen and a 1 MB file in the File Viewer took the heap to 191 MB and the process aborted (JNI DETECTED ERROR … pending exception java.lang.OutOfMemoryError). Tool details were not involved. The cause is the retained child transcripts plus the Changes/File Viewer load, neither touched by this PR.
  • oom-xl caches only its last message: the next-newest message is over 2 MB, so a cold paint before REST answers shows one message.
  • The collapsed timeline group for an interrupted run shows "Stopped" in red, while the member inside shows the gray interrupted style. This is the group's existing worst-status chrome.

Not checked: v1 protocol; the activity card while a subagent runs with large tool outputs (checked with small ones: heap flat at 14–25 MB for 45 s); a running tool's live detail (a running v2 shell carries no output in its tool part, so no detail opens until it settles, by the same rule as main).

ivanfenenko and others added 2 commits November 16, 2026 00:16
A seed is only a first paint, but on Android an OutOfMemoryError from
decoding an oversized legacy timeline row escaped seed() and aborted
observeMessages before the live load ran.

- seed() loads and decodes in a helper and reads any failure, including
  OutOfMemoryError and StackOverflowError, as a miss. The row and the
  decode's allocations are unreachable by the time it logs.
- observeMessages guards seed() the same way, so no cache failure stops
  ensureFresh.
- encodeMessages no longer always keeps the newest message: a message
  whose text alone is over the remaining budget is not encoded at all,
  and when the newest does not fit the timeline keeps none (a seed miss).
  One huge tool output no longer builds its whole JSON string for a row
  Android could not read back.
- iOS: the pipeline characterization test waits longer for the first
  frame and no longer indexes emissions it may not have, so a slow
  runner fails the expectation instead of crashing the test host.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

Behavior change in 31ffdee: the Android message timeline cache no longer always keeps the newest message. If the newest message's JSON is over the 1.8 MB timeline budget, the cache keeps no messages and that session opens without a cached first paint; it still loads live as usual. A message whose text alone is over the remaining budget is skipped without being encoded, so one huge tool output no longer builds its full JSON string during a flush. Seed failures, including OutOfMemoryError, now count as a cache miss and never block the live load.

The iOS DisplayMessagePipelineCharacterizationTests failure on 38ef67f was a timing flake (iOS code was unchanged from 0b5de7d, which passed). The test now waits longer for the first frame and no longer indexes into results it may not have.

@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

/review

@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: 1 finding(s) that 2+ of 2 passes agreed on.

Outside the diff lines:

  • ios/OpenCode Mobile/OpenCode Mobile/Domain/SessionCache/SessionCacheCodec.swift:69 high: iOS always keeps newest message even when over budget
4 finding(s) from a single pass, not posted
  • android/app/src/main/java/dev/opencode/mobile/domain/sessioncache/SessionCacheCodec.kt:128 high: Cache budget floor ignores tool input, huge write still encoded (muse-spark-1.3-contributor)
  • android/app/src/main/java/dev/opencode/mobile/ui/sessionchat/timeline/SessionChatTimelineBlocks.kt:2065 medium: detailRevision uses only lengths, same-length edits are invisible (muse-spark-1.3-contributor)
  • android/app/src/main/java/dev/opencode/mobile/ui/sessionchat/SessionToolGroupViewModel.kt:58 medium: Tool-group route ignores load failures and stays Loading forever (deepseek-v4.1-flash)
  • android/app/src/main/java/dev/opencode/mobile/ui/sessionchat/ToolResultPresentation.kt:270 low: hasResult says a write opens a detail that classify cannot build (deepseek-v4.1-flash)

opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.157 · 1 pass(es) failed

ivanfenenko and others added 2 commits November 16, 2026 01:08
…l group

- The pre-encode size floor counts tool input and metadata, so a large
  write is not encoded just to learn it does not fit.
- iOS matches Android: the same floor before encoding, no always-kept
  newest message, and an empty cached timeline seeds as a miss.
- The tool group route paints from cache only when the cached frame
  holds every member (the cache keeps only the newest messages that
  fit). It settles on what it has once the live load confirms the
  cached frame or fails, instead of loading forever.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

/review

@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stale Bugbot comment from a previous run.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: no finding that 2+ of 1 passes agreed on.

opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.132 · 2 pass(es) failed

ivanfenenko and others added 2 commits November 16, 2026 01:32
A failed live load with none of the group in the cached frame left the route Loading forever on an empty group; it now goes back.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

/review

@ivanfenenko

Copy link
Copy Markdown
Collaborator Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 3fd64a7. Configure here.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Automated review: no finding that 2+ of 3 passes agreed on.

5 finding(s) from a single pass, not posted
  • android/app/src/main/java/dev/opencode/mobile/ui/sessionchat/SessionToolGroupViewModel.kt:73 high: Live window without the group forces Gone and pops the route (muse-spark-1.3-contributor)
  • android/app/src/main/java/dev/opencode/mobile/ChatFlowEntries.kt:213 high: Tool-group ViewModel keyed by session only is reused across groups (muse-spark-1.3-contributor)
  • ios/OpenCode Mobile/OpenCode Mobile/UI/SessionChat/Timeline/SessionChatTimelineBlocks.swift:2964 medium: Patch fallback scans the whole output per card on iOS (muse-spark-1.3-contributor)
  • android/app/src/main/java/dev/opencode/mobile/ui/sessionchat/ToolResultPresentation.kt:270 low: hasResult treats a write with empty content as opening a detail that toolDetail cannot build (deepseek-v4.1-flash)
  • android/app/src/main/java/dev/opencode/mobile/domain/sessioncache/SessionCacheCodec.kt:560 low: Cached timeline is dropped entirely when the newest message is over the budget, so an oversized newest message leaves the session with no cached first paint (deepseek-v4.1-flash)

opencode pr-review · passes: muse-spark-1.3-contributor, glm-5.3-flash, deepseek-v4.1-flash · $0.147 · 2 pass(es) stopped early

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.

Android crash: OutOfMemoryError in Session Chat on 1.4.1 (38) (Crashlytics 310f2754, c56c2830)

1 participant