Skip to content

test(paths): fix main: remount Markdown in the failed-lookup retry test (#1475) - #1485

Merged
currentbits merged 1 commit into
mainfrom
fix/pathlink-retry-test
Oct 6, 2026
Merged

currentbits merged 1 commit into
mainfrom
fix/pathlink-retry-test

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Main has been red on all three platforms since #1483 and #1484 both merged. Only one test fails: PathLinkProvider batching > does not cache a failed lookup.

Cause: #1483 made Markdown's components map a stable module-level constant. A rerender with the same path now keeps the mounted link and its settled lookup. The old per-render map remounted it, and that remount is the only reason the test saw a second resolver call.

Fix: remount Markdown with key={text} in that one test. What the test checks is unchanged: the provider must not cache a failed lookup.

  • Changing the provider so it does cache failures still makes this test fail (checked).
  • The renderer suite passes 2731 of 2731.

Product behaviour: same as before both PRs. A failed lookup has only ever been retried when the link remounts.

🤖 Generated with Claude Code

#1483 made Markdown's components map stable, so a same-path rerender
keeps the mounted link and its settled lookup; the old per-render map
remounted it, which is the only reason the second resolver call happened.
Main went red on all three OSes once #1483 and #1484 both landed. The
provider contract under test (a failed lookup is not cached) is unchanged:
keyed remount, and a mutation that caches failures still fails the test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@currentbits
currentbits merged commit aa7d4fb into main Oct 6, 2026
6 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