GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(shared): thread links work after list code blocks by StiensWout · Pull Request #44527 · pingdotgg/t3code

Conversation

@StiensWout

@StiensWout StiensWout commented Nov 27, 2026

Copy link
Copy Markdown
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 main

Commit b9c1337a84 (main), in the running web app:

  1. Open the web app.
  2. Create a thread and name it Release checklist.
  3. Open that thread's menu and choose Copy thread.
  4. In a plain text editor, type a line that is a hyphen, a space, three backticks, and the word text. On the next line type two spaces and the word example. Leave one blank line. On the next line type See, a space, then an opening bracket, Release checklist, a closing bracket, an opening parenthesis, the copied address, and a closing parenthesis.
  5. Select all of that text and copy it.
  6. Back in the web app, open a thread and click the message box.
  7. Paste.

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 packages/shared/src/threadLinks.ts:39. Ran pnpm scenarios:prove scripts/scenarios/thread-link-paste-after-list-code.e2e.ts --target web with the repro scenario added: it failed in 2 of 2 runs on a clean checkout, with expect.toHaveText failed in the output.

Evidence

Environment: 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 After
Commit 8e6838225a 198d1ceccf
Result ASSERTION_FAILED: expect.toHaveText failed passed
pasted thread link Before: pasted thread link After: pasted thread link
failure Before: failure

Before the fix, recorded:

https://pub-b182a4071edc4521829926b34990540b.r2.dev/files/6c59819c-4a8d-47f7-8432-67faa1511480/before-recording.webm

After the fix, recorded:

https://pub-b182a4071edc4521829926b34990540b.r2.dev/files/7e8f24d0-dbb1-4073-abde-ab909736f32e/after-recording.webm

Outside view: a person sees it in the running web app by following the steps under Reproduction on main.

Tests

  • 8e6838225a adds the failing test, alone, before the fix.
  • pnpm exec vp run check:changed 2e2af395f6268c3b840b4a0995fcf6c7e0771dfa passed on head.

Not in this change

  • Thread title lookup and chip rendering are outside this parsing change.
  • Desktop and mobile use the same shared parser. The end-to-end paste test covers the web composer.

Who did the work

  • Repro written by GPT 6.2 Sol, in Codex
  • Outside view by Grok 4.7, in Grok
  • Duplicate check judged by Claude Opus 5.5, in Claude Code
  • Written by GPT 6.2 Sol, in Codex
  • Trimmed by Claude Opus 5.5, in Claude Code
  • Reviewed by Claude Opus 5.5, in Claude Code, and by GPT 6.2 Sol, in Codex, and by Gemini 4 Neon, in Antigravity
  • Reproduction, checks and proof run by a program on base and head, not by an agent

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 reactions
StiensWout and others added 5 commits November 28, 2026 00:22
@StiensWout @codex
test(web): reproduce a missed thread chip after list code
8e68382
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(shared): thread links work after list code blocks
016b24a
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(shared): recognize list code fences in footnotes
e8fa34c
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @claude
refactor(shared): one return for a markdown with no parse-worthy fence
e4beb28
Co-authored-by: Claude Opus 5.5 <[email protected]>
@StiensWout @codex
fix(shared): detect code fences in nested footnotes
198d1ce
Co-authored-by: GPT 6.2 Sol <[email protected]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 27, 2026
@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 0941856
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3836a83d-230f-4e4a-a977-f46ca36f96da
Commits

Reviewing files that changed from the base of the PR and between 198d1ce and 2680d5a.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

The Markdown scanner now handles fence-like lines in list items and footnote definitions. Unit and end-to-end tests check that links after fenced content are recognized, including when pasted into the composer.

Changes: Thread link parsing

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

  • pingdotgg/t3code#43817: Addresses related thread-link recognition behavior after code fences in list context.

Suggested labels: bugfix

Suggested reviewers: saphid, macroscopeapp

Merge Risk: Minimal · previous review 198d1

This 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.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed 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 for…
Description check Passed 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…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

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.

Full details: Description check

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.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: af70189
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 437f0005-dd68-462d-b780-cdb4148a9d93
Commits

Reviewing files that changed from the base of the PR and between af70189 and 198d1ce.

Files selected for processing: 3

  • packages/shared/src/threadLinks.test.ts
  • packages/shared/src/threadLinks.ts
  • scripts/scenarios/thread-link-paste-after-list-code.e2e.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 27, 2026
@juliusmarminge
Merge remote-tracking branch 'origin/main' into wf/find-605825012def0…
2680d5a
…74e35173998
@juliusmarminge

juliusmarminge commented Nov 28, 2026

Copy link
Copy Markdown
Member

Evidence

Seeded demo with Release checklist and Release notes. Opened Release notes, pasted the control thread link, cleared the composer, then pasted - ```text, example, a blank line, and the unindented Markdown thread link. Both runs used fresh state, a 1280×800 viewport and light theme.

Evidence Before: 09418562d6 After: 2680d5ae02
Control Before: control creates thread chip After: control creates thread chip
List-fence paste Before: prose link remains literal, zero chips After: prose link becomes Release checklist chip
Recording Before interaction After interaction

Scenario source. scenarios:prove exited 0: failed on base with zero chip nodes and passed on head.

Not shown:

  • Footnote fence boundaries and links inside code were not exercised; this scenario follows the supplied four-line list reproduction.
  • Mobile and desktop-shell behavior were not exercised; proof covers the real web composer.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 28, 2026
@juliusmarminge
juliusmarminge merged commit 2338c6f into pingdotgg:main Nov 28, 2026
60 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 28, 2026
@StiensWout
StiensWout deleted the wf/find-605825012def074e35173998 branch November 28, 2026 07:31
@omegent-app omegent-app Bot mentioned this pull request Nov 28, 2026
Merge upstream main through 0f78747290a1 patroza/t3code#688
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@StiensWout @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.