Skip to content

fix(chat): preserve thread links between unmatched code delimiters - #85

Merged
ScriptedAlchemy merged 2 commits into
mainfrom
fix/fork-audit-thread-link-paragraphs
Nov 9, 2026
Merged

ScriptedAlchemy merged 2 commits into
mainfrom
fix/fork-audit-thread-link-paragraphs

Conversation

@ScriptedAlchemy

Copy link
Copy Markdown
Owner

Regression found in the fork's recent-merge audit

Merged #81 expanded inline-code matching across line breaks. An unmatched backtick in one paragraph and another in a later paragraph then hide every thread link between them from padding normalization, title resolution and reference discovery. Those paragraphs are not a Markdown code span.

Bound inline-code matching at blank paragraph lines, while retaining genuine multiline spans and fenced-code preservation. This is one production-line change in the shared web/mobile link parser; strict destination parsing and persisted messages are unchanged.

Extended the existing code-preservation test with LF/CRLF, empty/whitespace-only blank lines, reference discovery and title substitution, plus multiline/fenced-code controls.

Validation

  • Four isolated Node pattern regressions reproduced the old failure; all four pass with the repair. Four inline/fenced-code controls pass as well.
  • Independently checked the paragraph interpretation with a CommonMark parser.
  • Reviewed GitHub's resulting commit diff: only the shared parser line and 25 added assertions/fixture lines changed.
  • Full vp run check:changed, the actual package test suite and integrated web/mobile verification have not run here. Direct GitHub/npm access fails DNS resolution in this audit environment, so a dependency-equipped checkout could not be installed. Hosted CI remains required; the isolated checks do not substitute for it.

All changes are confined to ScriptedAlchemy/t3code. No upstream writes, release actions or live-data changes.

Model: GPT-6 Astra Pro. Harness: ChatGPT.

Do not let an unmatched inline-code delimiter consume thread links in later
paragraphs. Preserve multiline code spans within a paragraph and fenced code.
Extend the existing link test with LF/CRLF and whitespace-only blank lines.

The four isolated pattern regressions fail before this change and pass after;
four inline/fenced-code controls also pass. Repository check:changed and
integrated client validation remain required; dependencies could not be
installed in this network-isolated audit environment.
@changeset-bot

changeset-bot Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e813a59

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ScriptedAlchemy
ScriptedAlchemy merged commit a33ebee into main Nov 9, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant