GeezerVison is showing github.com — fix(clients): render spaced thread URLs as thread links by tlconde · Pull Request #31479 · pingdotgg/t3code
Conversation
tlconde
commented
Nov 5, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
An agent reply containing < t3-thread://v2/environment/thread > displays the raw URL instead of the existing thread chip. Spaces inside the angle brackets make CommonMark treat it as prose; mobile's thread-reference scanner also misses it.
Reproduce by putting that form in an assistant message for an existing thread. The destination should behave like the same URL without the surrounding spaces.
Change
Tokenize valid thread URLs inside spaced angle brackets before Markdown discards escape information, then let the existing link renderer resolve the title and destination. Accept the same spacing in the shared thread-reference matcher so mobile can find and relabel the destination. Preserve encoded identifiers, authored labels, and literal code spans and fences.
Scope and approval
This qualifies for the small, focused obvious-bug exception: an alternate spelling of an existing thread link leaks an internal URL into the conversation. It restores the established thread-link presentation without adding a workflow, setting, or protocol. The four files cover this one parsing defect and its regressions. Related #28473 concerns a different form, [label](<url>), and is not claimed fixed here.
Verification
- Added three regression cases before changing production code. All three failed on
337c5858c33b: the Markdown pipeline retained the raw URL in both line-break modes, and the reference scanner returned no destinations.
vp test run packages/shared/src/threadLinks.test.ts packages/shared/src/markdownPipeline.test.ts: all 38 tests pass after the fix, including title/ref lookup, encoded IDs, authored labels, inline code, and fenced code.
vp run check:changed: formatting, lint, both knip passes, typechecks for 34 affected packages, and all 40 tests across three adjacent test files passed.
- Review follow-up: odd-backslash regressions failed in the renderer and reference matcher before correction. Zero through four backslashes now preserve literal escapes and keep intended links navigable; replacement retains even backslash runs.
- Captured the actual
ChatMarkdown component before and after in Chromium through T3 Code's Browser panel. The captures were taken at the initial fix (f8fbd6a), before the escape-handling follow-up. Both captures use the same synthetic thread text and a seeded thread title. After the fix, the existing chip displays “Independent review” with the explicitly scoped destination. These are component-fixture captures, not a live provider conversation or a native mobile-device test. Native mobile rendering was not exercised.
| Before |
After |
 |
 |
Evidence images are GitHub release assets on the author's fork; no screenshots or temporary fixture files are committed.
Implemented with GPT-6.1-Sol in the Codex harness through T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at f8fbd6a
Macroscope's review found this PR approvable — Spaced angle-bracket thread URLs now render and resolve through the existing thread-link handling. The change is confined to link recognition and presentation, with existing validation retained.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 5, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

No actionable comments were generated in the recent review.
Walkthrough
-
The thread-link matcher now recognizes additional angle-bracketed and bare hosted links. The Markdown pipeline tokenizes spaced thread autolinks in both plugin configurations. Replacement and rendering tests cover backslash escaping, authored labels, and code content.
Changes: Spaced thread autolinks
| Layer / File(s) |
Summary |
Recognize and replace thread links packages/shared/src/threadLinks.ts, packages/shared/src/threadLinks.test.ts |
The matcher recognizes angle-bracketed and bare hosted links and captures preceding backslashes for autolinks. Replacement preserves captured backslashes and retains the original text when parsing or the replacement callback returns no result. Tests cover reference extraction, relabeling, code-span content, and backslash counts. |
Render spaced thread autolinks packages/shared/src/markdownPipeline.ts, packages/shared/src/markdownPipeline.test.ts |
Both Markdown plugin configurations register a tokenizer for valid spaced thread URLs. Tests cover rendered links, authored labels, inline and fenced code, and backslash counts. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix
Possibly related issues
- pingdotgg/t3code#30576: This PR changes the same matcher but does not implement the reported false-match or quadratic-behavior fixes.
Possibly related PRs
Suggested labels: bugfix
Suggested reviewers: juliusmarminge, maria-rcks
Merge Risk: Minimal · up to 7f0db
-
The spaced thread-link change is mergeable after normal checks; no unresolved behavior issue was established.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title clearly summarizes the main change: rendering thread URLs with spaces inside angle brackets as thread links. |
| Description check |
 |
The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the bug and reproduction, the fix, why the focused-bug exception applies, and the test… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Description check
-
Explanation
The description includes the required Problem, Change, Scope and approval, and Verification sections. It explains the bug and reproduction, the fix, why the focused-bug exception applies, and the tests and checks performed, including limitations.
Finishing Touches
-
Generate unit tests (beta)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 7200962 and 7f0db4e.
Files selected for processing: 4
-
packages/shared/src/markdownPipeline.test.ts
packages/shared/src/markdownPipeline.ts
packages/shared/src/threadLinks.test.ts
packages/shared/src/threadLinks.ts
Included 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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Yeah, can confirm the bug is present in the latest nightly
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…olinks
# Conflicts:
# packages/shared/src/markdownPipeline.ts
# packages/shared/src/threadLinks.ts
|
This PR conflicts with main. Rebase it or merge main into it. If it still conflicts after 7 days with no activity, it will be closed automatically.
See the conflict window.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Closing: this PR still conflicts with main and has had no activity for 7 days since the rebase request.
To continue, rebase the branch and open a new PR that links this one. See the conflict window.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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:unvouched
Author is not yet trusted in the VOUCHED list.
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.
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.
|