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(shared): preserve literal ampersands in composer file links by armancharan · Pull Request #41342 · pingdotgg/t3code Conversation
Contributor
ProblemMentioning ChangeEscape ampersands in the Markdown label and encode them as ScopeThis fixes newly inserted composer file mentions. I found the case while testing #41270 and reported the reproduction on that PR. VerificationThe regression test serializes the mention, parses it with the project's Markdown parser, and checks both the text node and the resolved workspace path. Before the fix the label was All 205 tests across the composer trigger, inline token, and Markdown link suites passed locally. The repository's Model and harness: GPT-6 via Codex.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
armancharan
marked this pull request as ready for review
|
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Escape and encode ampersands in file links packages/shared/src/composerTrigger.ts, packages/shared/src/composerTrigger.test.ts |
Label escaping now handles ampersands, and destination encoding converts them to %26. The test checks that a parsed label retains © and that its destination resolves under /workspace. |
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Possibly related PRs
Suggested labels: bugfix
Suggested reviewers: matyasrathonyi, macroscopeapp, amv146
b6927Composer file mentions for paths containing a literal ampersand, such as docs/R©.md, now keep the literal name and resolve to the selected file. No merge-blocking risk remains.
Explanation
The title "fix(shared): preserve literal ampersands in composer file links" matches the main change: the raw summary and PR objectives say Markdown labels and destinations now escape or encode ampersands so composer file links keep literal filenames such as docs/R©.md. It follows the conventional commit style and is specific enough for a teammate to identify the primary change.
Explanation
The description follows the template sections. Problem describes the bug (composer mention of docs/R©.md decodes to R©.md and can open a different file). Change explains the escaping of ampersands in the label and %26 encoding in the destination. Scope states this fixes newly inserted composer mentions and links the reproduction on PR #41270, though it does not link a dedicated bug issue or explain why no issue exists. Verification gives focused regression test results with before and after values and test counts. The model and harness are named at the end, as the template asks. The only gap is the Scope section, which does not explicitly state why no issue is linked, so the check passes with a minor note.
14f01b2b-4deb-48fa-aa52-0463fa5c3502packages/shared/src/composerTrigger.test.tspackages/shared/src/composerTrigger.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
EvidenceReal web app, Replay (dev), fresh synthetic data, 1280×800, light theme on both sides. Type Proven: base changes the label to
Scenario source. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
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.
There was an error while loading. Please reload this page.