Registry Mirror
Skip to content

Conversation

@StiensWout

Copy link
Copy Markdown
Contributor

After one history request failed in Find in Thread (for example, loading skipped turns while the environment was briefly unreachable), choosing a different match in unloaded history did nothing. The viewport stayed where it was until some other history load cleared the error. Find navigation now asks for history for a newly selected match even when an earlier error is still showing. A page that was already requested is still not asked for again for the same match.

Related: #42799, #46711, #46273

Reproduction on main

Commit e173215d3b (main). The viewport stays on the previous part of the thread until a separate history load clears the error. Expected: Find in Thread loads and reveals the newly selected match.

  1. Use Find in Thread to jump to a match far back in a long conversation.
  2. Choose Load skipped turns during a temporary history request failure.
  3. Wait for the environment to be reachable again.
  4. Select a different search match in the skipped turns.

The cause is at apps/web/src/components/chat/useThreadFindNavigation.ts:277. Ran cd apps/web && pnpm exec vp test run src/components/chat/MessagesTimeline.browser.test.tsx with the repro test added: it failed in 2 of 2 runs on a clean boat.dev VM, with expected null to be 'Needle in the skipped turn' // Object.is equality in the output.

Evidence

Environment: Linux x64 on a boat.dev VM reset before each run, the repository's own tests.

Proven: the repro fails at the test commit dc1a254475 and passes on the head 76928de9d0, both on main f5689ae8ee.

Before After
Commit dc1a254475 76928de9d0
Result failed with "expected null to be 'Needle in the skipped turn' // Object.is equality" passed

Not shown: the bug in the running web app.

No visual shows the change.

Tests

  • dc1a254475 adds the failing test, alone, before the fix.
  • pnpm exec vp run check:changed f5689ae8ee0d672bc0ec2a88dc4f70dc43cc3653 passed on head.

Not in this change

  • The extra test cases added in the previous round (not retrying a failing match on reselect, and checking the recovered match's scroll position) were dropped so the regression test matches the original scenario. They could come back in a follow-up.

Who did the work

  • Repro written by GPT 6.2 Sol, in Codex
  • Duplicate check judged by Claude Opus 5.5, in Claude Code
  • Written 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
  • 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 and Claude Opus 5.5

StiensWout and others added 4 commits December 1, 2026 18:16
…ailed history load

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ory load

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…h's position

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Dec 1, 2026
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

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

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 76928de and 812b0b2.

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

Find navigation can request earlier history after loading skipped turns fails. A browser regression test verifies that advancing to a matching message reveals it.

Changes: Find navigation after load failure

Layer / File(s) Summary
Request and verify earlier history after an error
apps/web/src/components/chat/useThreadFindNavigation.ts, apps/web/src/components/chat/MessagesTimeline.browser.test.tsx
The hook can request an earlier page after a history error when its other request conditions are met. The test verifies that advancing to a matching message reveals it.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: yash-singh1, juliusmarminge

Merge Risk: Minimal · previous review 76928

Find in Thread can now request earlier history after a failed load when the user moves to a new match. The change is small and covered by a regression test. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change: Find in Thread now reaches unloaded matches after a failed history load. The raw summary confirms the hook now requests earlier history after an error, and the test covers …
Description check Passed The description states the problem, the cause (useThreadFindNavigation.ts:277), and the change. It gives reproduction steps and before/after test evidence, and it explains the scope and the dropped ex…
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 names the change: Find in Thread now reaches unloaded matches after a failed history load. The raw summary confirms the hook now requests earlier history after an error, and the test covers that scenario. The title follows the conventional commit format from the template and is specific.

Full details: Description check

Explanation

The description states the problem, the cause (useThreadFindNavigation.ts:277), and the change. It gives reproduction steps and before/after test evidence, and it explains the scope and the dropped extra test cases. It also gives the authorship line. Two template gaps remain: the Scope section does not link a tracked issue for the bug, and the Related references (#42799, #46711, #46273) are not explained. The Verification section reports a repo check and a test run, which meets the template's bar. The description is largely 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

Commits

Reviewing files that changed from the base of the PR and between fc6ba3d and 76928de.

Files selected for processing: 2

  • apps/web/src/components/chat/MessagesTimeline.browser.test.tsx
  • apps/web/src/components/chat/useThreadFindNavigation.ts

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

@macroscopeapp

macroscopeapp Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 76928de

Macroscope's review found this PR approvable — Find in Thread can load an unloaded match after an earlier history request failed. Existing loading and per-match/page deduplication guards keep retries bounded.

You can add or adjust custom eligibility rules. Learn more.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Dec 1, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS 0-9 changed lines (additions + deletions). takeover:in-progress A takeover lead is working on this PR vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants