Skip to content

fix(session-ui): guard markdown preload to prevent renderer unresponsive - #39476

Open
xu-xiaofei wants to merge 1 commit into
anomalyco:devfrom
xu-xiaofei:dev_xxf_fix
Open

fix(session-ui): guard markdown preload to prevent renderer unresponsive#39476
xu-xiaofei wants to merge 1 commit into
anomalyco:devfrom
xu-xiaofei:dev_xxf_fix

Conversation

@xu-xiaofei

@xu-xiaofei xu-xiaofei commented Jul 29, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #39478

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Fixes intermittent Desktop renderer unresponsiveness on Home page caused by expensive markdown preloading/parsing on the renderer main thread (preloadMarkdown -> marked lexer).

Main changes:

  • add markdown parse guards (size / line-count / long-line thresholds)
  • cap background preload budget
  • fallback render for over-limit markdown blocks
  • add regression tests and incident note

How did you verify your code works?

  • packages/session-ui
    • bun run test passed (79/79)
    • bun typecheck passed
  • local smoke checks
    • backend responds on :4096
    • app starts on :4444

Screenshots / recordings

N/A (stability fix, no UI layout change)

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Jul 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Jul 29, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

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

1 participant