Skip to content

Large snapshot diffs can hang session loading #29873

@Yoshi-OOF

Description

@Yoshi-OOF

Description

Opening a session with a very large edit diff can consume excessive memory or hang the TUI. In my repro, a formatter changed thousands of lines and continuing the session stalled while loading the diff-heavy turn.

Plugins

N/A

OpenCode version

1.15.12

Steps to reproduce

  1. Create a session with a tool result that changes thousands of lines in a tracked file.
  2. Continue or reopen the session.
  3. Open the diff-heavy turn in the TUI or web UI.

Screenshot and/or share link

N/A

Operating System

Windows 11

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions