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): thread links work after list code blocks by StiensWout · Pull Request #44527 · pingdotgg/t3code Conversation
Contributor
Pasting Markdown with an unclosed code fence inside a list could leave the next prose thread link as plain text or turn a link inside the code into a chip. The shared thread-link parser now honors code fence boundaries in list items and nested GFM footnotes, so it preserves links inside code and converts links in the following prose. Related: #43670 Reproduction on mainCommit b9c1337a84 (main), in the running web app:
The message box shows the words See [Release checklist] followed by the thread address in parentheses, as ordinary text, and it shows no thread chip. Expected: The message box shows a thread chip labeled Release checklist. The address is not written out beside it. The cause is at EvidenceEnvironment: The web app in Chromium on Linux x64, a fresh checkout. Proven: the repro fails at the test commit 8e6838225a and passes on the head 198d1ceccf, both on main 2e2af395f6.
Before the fix, recorded: After the fix, recorded: Outside view: a person sees it in the running web app by following the steps under Reproduction on main. Tests
Not in this change
Who did the work
Made in T3 Code by GPT 6.2 Sol, Claude Opus 5.5, Grok 4.7 and Gemini 4 Neon
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsCo-authored-by: GPT 6.2 Sol <[email protected]> Co-authored-by: GPT 6.2 Sol <[email protected]> Co-authored-by: GPT 6.2 Sol <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: GPT 6.2 Sol <[email protected]>
|
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 |
|---|---|
Fence detection and code boundaries packages/shared/src/threadLinks.ts, packages/shared/src/threadLinks.test.ts |
The scanner recognizes fence markers after footnote definitions and adjusts fence-candidate selection when list items are present. Tests check that links inside fenced content remain literal and that links after the fence are processed. |
Pasted thread link validation scripts/scenarios/thread-link-paste-after-list-code.e2e.ts |
The end-to-end test pastes list-formatted code followed by a thread link and checks that the composer’s context chip displays “Release checklist.” |
Estimated code review effort: 2 (Simple) | ~15 minutes
Change: Bug fix
Possibly related PRs
Suggested labels: bugfix
Suggested reviewers: saphid, macroscopeapp
198d1This fixes thread links after list code fences so they are converted to chips while links inside code stay literal. No actionable merge risk was found.
Explanation
The title "fix(shared): thread links work after list code blocks" names the main change: the shared thread-link parser now handles code fences inside list items. It follows the conventional commit format and is specific enough for a teammate scanning history. It does not cover the footnote handling, which is an acceptable omission.
Explanation
The description follows the template. It gives the problem and the fix, links the related issue #43670, and includes a reproduction with steps. It has a detailed Verification section with before/after evidence, failing and passing test commits, and a note on what was not checked (desktop and mobile not separately tested). The Scope section does not explain why no issue is needed beyond the related link, but the related issue is linked. The title is not repeated as a conventional commit in the description, but the template's comment only asks for it as guidance. Overall the description is mostly complete.
437f0005-dd68-462d-b780-cdb4148a9d93packages/shared/src/threadLinks.test.tspackages/shared/src/threadLinks.tsscripts/scenarios/thread-link-paste-after-list-code.e2e.tsIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
EvidenceSeeded demo with Release checklist and Release notes. Opened Release notes, pasted the control thread link, cleared the composer, then pasted
Scenario source. scenarios:prove exited 0: failed on base with zero chip nodes and passed on head. Not shown:
|
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.