Prevent malformed Markdown fences from freezing the Webview - #12
Merged
Conversation
SivanCola
force-pushed
the
codex/fix-long-chat-webview
branch
from
August 3, 2026 15:56
39e0550 to
fe2a248
Compare
SivanCola
marked this pull request as ready for review
August 3, 2026 16:04
SivanCola
force-pushed
the
codex/fix-long-chat-webview
branch
from
August 3, 2026 16:06
fe2a248 to
d1f188e
Compare
SivanCola
force-pushed
the
codex/fix-long-chat-webview
branch
from
August 3, 2026 16:10
d1f188e to
517436f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Root cause
The Webview Markdown loop did not advance when a line began with a fence marker but failed the strict opening-fence regular expression, such as a C# fence with attributes or a four-backtick fence. The paragraph branch rejected the same line, so the loop repeatedly appended empty paragraphs without advancing and could freeze the Webview.
Conflict resolution
This branch is rebased onto the overlapping long-chat fix in PR #13, the Windows launcher changes in PR #14, and the Webview theme adaptation in PR #11. Duplicate long-chat synchronization changes were removed. The combined test entry list retains the launcher, theme, and Markdown suites, while both Windows configured/PATH modes and the macOS VS Code executable fallback remain intact.
Validation
Closes #8