Repository navigation
Wait for chat HTML fences before previewing - #49574
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
stablyai#49637 gave the file explorer one search field for file names and text. Its 11 strings had no Korean, so the Korean UI showed them in English: the field's placeholder (and "Search {{path}}" in a sparse checkout), the Files and Text section headers (and "Files in {{path}}" and "Text in workspace" in a sparse checkout), Show all, No results, the row for too many matches, the "Not available here" row, and the scope popover's line on what search covers. stablyai#49574 also added a screen reader note for the chat HTML view's disabled Preview toggle, with no Korean. Add the 12 keys in en.json's order, using the catalog's existing wording where it has one: 검색, 파일, 텍스트, 결과 없음, 미리보기, 스파스 체크아웃, "{{value0}}에서 검색" for Search {{value0}}, and "…개 모두 표시" for Show all. Fixes stablyai#49908
…9909) #49637 gave the file explorer one search field for file names and text. Its 11 strings had no Korean, so the Korean UI showed them in English: the field's placeholder (and "Search {{path}}" in a sparse checkout), the Files and Text section headers (and "Files in {{path}}" and "Text in workspace" in a sparse checkout), Show all, No results, the row for too many matches, the "Not available here" row, and the scope popover's line on what search covers. #49574 also added a screen reader note for the chat HTML view's disabled Preview toggle, with no Korean. Add the 12 keys in en.json's order, using the catalog's existing wording where it has one: 검색, 파일, 텍스트, 결과 없음, 미리보기, 스파스 체크아웃, "{{value0}}에서 검색" for Search {{value0}}, and "…개 모두 표시" for Show all. Fixes #49908
ELI5
Preview could redraw every time more HTML arrived. Code, Copy, and Wrap stay available as the page arrives. Preview becomes available when the page finishes, even if the reply is still writing below it. If the reply stops early, you can still preview the HTML that arrived.
What Changed
Why
A partial page could trigger repeated whole-page sanitization and syntax highlighting while its code was hidden. Waiting for the closing fence lets the page render once while any later prose continues.
Linked Issue
STA-18540, introduced in #49288.
Visual Proof
Testing
Performance
With 10 and 100 appends to a growing page, the previous behavior requested 11 and 101 sanitizations. Both now request zero while the fence is open and one when Preview is selected after closure. Later prose leaves the frame in place, and selecting Preview cancels hidden highlighting.
Risk
Level: Low. Fence detection could mistime the Preview control. A revert restores the previous timing. Preview continues to use the opaque, script-free sandbox and the existing content security policy.
AI Disclosure
Review
Check when Preview becomes available and how Copy behaves while Preview is selected.
Agent skill upstream boundary
Notes
The change is confined to desktop and web Markdown rendering shared by chat and items.
Checklist