You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
【BUG】Desktop renderer becomes unresponsive when Home preloads very large markdown sessions #39478
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
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.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)
Activity
github-actions commentedon Jul 29, 2026
This issue might be a duplicate of existing issues. Please check:
xu-xiaofei commentedon Jul 29, 2026
Rebased onto latest dev, ready for review.
github-actions commentedon Sep 29, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.