GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — fix(session-ui): reuse parsed DOM for live markdown by Dante-dan · Pull Request #55480 · anomalyco/opencode Conversation
|
|
The following comment was made by an LLM, it may be inaccurate: |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I ran the issue's reproduction on the base and on this branch under happy-dom. On the base, every live-block delta serializes the whole block with innerHTML; with this branch that no longer happens. For a block with several session links, the node tree built from the DOM is identical to the one the old serialize-and-parse path produced, so keys and reconcile behave the same. The markdown tests in packages/session-ui (116) and the package typecheck pass. I did not measure in Chromium or the desktop app.
Public API: unchanged. createMarkdownRenderer now takes a DOM element instead of an HTML string, but it is internal to session-ui and has a single caller.
One optional suggestion: a small test that spies on the innerHTML getter while a live block is updated would stop the round-trip from creeping back in.
Related: #54305
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Related but non-overlapping: #55857 (V2 port of #48432) optimizes the worker-side markdown projection in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
app: a streaming delta re-parses the whole markdown block, and the DOM round-trip around it dominates the visible cost
There was an error while loading. Please reload this page.