Repository navigation
fix(chat): load HTML reports when the filename limit splits an emoji - #42478
jadelike-wine wants to merge 3 commits into
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Problem
Publish an inline HTML report with
html_renderusing a title of 119 ASCII letters followed by 🚀. Chat shows “Unable to load”. The 120-unit filename limit cuts the emoji in half, and the server throwsURIErrorwhen it encodes that filename in the attachment URL.Change
Drop a trailing lone surrogate after truncating the filename stem. A whole emoji that fits stays in the name. The report keeps its original title.
Scope
This is a small, reproducible bug in the shared HTML filename helper used by Web and mobile, so there is no separate issue. Only that helper and its regression test change.
Verification
vp test run packages/shared/src/htmlRender.test.ts: the 119-letter case failed on main and passes with the fix. The 118-letter case preserves the complete rocket before.html. All 26 tests pass.html_rendertool. On main the Web client showed “Unable to load” and the server loggedURIError: URI malformed. With the fix, the same report rendered in chat. I checked its heading both inline and in full screen. Native mobile was not run.vp run check:changed upstream/mainpassed, including typechecking 37 packages and running 28 tests.Model: GPT-6. Harness: Codex Desktop.