You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
Use Find in Thread to jump to a match far back in a long conversation.
Choose Load skipped turns during a temporary history request failure.
Wait for the environment to be reachable again.
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.
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
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.
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: 4
Check name
Status
Explanation
Title check
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
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
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: 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
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
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.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
No deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:XS0-9 changed lines (additions + deletions).takeover:in-progressA takeover lead is working on this PRvouch:trustedAuthor is trusted by repo permissions or the VOUCHED list.
2 participants
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.
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.
The cause is at
apps/web/src/components/chat/useThreadFindNavigation.ts:277. Rancd apps/web && pnpm exec vp test run src/components/chat/MessagesTimeline.browser.test.tsxwith the repro test added: it failed in 2 of 2 runs on a clean boat.dev VM, withexpected null to be 'Needle in the skipped turn' // Object.is equalityin 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.
Not shown: the bug in the running web app.
No visual shows the change.
Tests
pnpm exec vp run check:changed f5689ae8ee0d672bc0ec2a88dc4f70dc43cc3653passed on head.Not in this change
Who did the work
Made in T3 Code by GPT 6.2 Sol and Claude Opus 5.5