anomalyco / anomalyco/opencode

【BUG】Desktop renderer becomes unresponsive when Home preloads very large markdown sessions

Open
#39,478 2 comments 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Jul 29, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

I hit an intermittent Desktop UI freeze (renderer unresponsive) on Windows when opening the Home page.

Observed on OpenCode 1.18.7 (Windows x64).
In exported debug logs (opencode-debug-20260729T072406.zip), the hot stack repeatedly points to markdown preloading/parsing:

  • RegExp.exec
  • marked lexer
  • preloadMarkdown (oc://renderer/assets/main-*.js)

This appears to block the renderer main thread during Home preloading.

Local data scale that can trigger it:

  • Total sessions: 109
  • Total text parts: 3615
  • Largest single text block: 1,653,459 chars
  • One heavy recent session has 801 text parts (max block 91,041 chars)
Plugins

No response

OpenCode version

1.18.7

Steps to reproduce
  1. Use Desktop app on Windows.
  2. Have recent sessions containing very large markdown content (or one session with hundreds of text parts).
  3. Open the Home page (which preloads recent sessions).
  4. Wait a few seconds; UI may become unresponsive.
  5. Export logs and check window.log for repeated renderer unresponsive samples pointing to preloadMarkdown / marked lexer.
Screenshot and/or share link

No response

Operating System

Windows 10 (10.0.19045) x64

Terminal

Windows Terminal (not relevant for this Desktop UI freeze)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.