anomalyco / anomalyco/opencode
【BUG】Desktop renderer becomes unresponsive when Home preloads very large markdown sessions
Open
@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.execmarked lexerpreloadMarkdown (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,459chars - One heavy recent session has
801text parts (max block91,041chars)
Plugins
No response
OpenCode version
1.18.7
Steps to reproduce
- Use Desktop app on Windows.
- Have recent sessions containing very large markdown content (or one session with hundreds of text parts).
- Open the Home page (which preloads recent sessions).
- Wait a few seconds; UI may become unresponsive.
- Export logs and check
window.logfor repeatedrenderer unresponsivesamples pointing topreloadMarkdown/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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.