Repository navigation
fix(web): reading position survives a panel resize right after a thread opens - #42915
Merged
Merged
Conversation
โฆad opens preserveReadingPosition only learned the scroller's width from its ResizeObserver's first report. A scroll before that report was dropped, and a resize before it became the new baseline, so the reader's line drifted by the full reflow. This flaked the MessagesTimeline width-change test on CI. A scroll now seeds the width from the clientWidth it already reads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
This PR changes the test suite by +1 test cases (browser +1, unit 0, server 0). New browser test files: Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing. |
github-actions Bot
added a commit
to omarcresp/t3code-flake
that referenced
this pull request
Nov 25, 2026
**v0.1.13-nightly.20261125.5258** ยท 69 changes from 19 contributors - **Workflow subjects.** Link workflow runs to an issue or pull request and find them from its view. - **Project drafts.** Add a project from a draftโs picker without leaving your typed draft behind. - **Files panel refresh.** Refresh now checks only visible folders, reducing repeated work in large projects. - **Citation dictation.** Clicking outside a citation comment no longer discards dictation in progress. - **Cursor restart recovery.** Cursor requests interrupted before their first checkpoint are resent after a server restart. ### Plus 62 more bug fixes. <details> <summary>Full changelog</summary> ## What's Changed * fix(web): GB18030 RTF files now preview instead of showing no preview by @only21mil in pingdotgg/t3code#42827 * fix(server): retain unfinished terminal sequences in attach history by @StiensWout in pingdotgg/t3code#42817 * fix(release): preserve the web asset manifest by @usedhonda in pingdotgg/t3code#42806 * fix(web): Changes pane explains a diff of only hidden test files by @juliusmarminge in pingdotgg/t3code#42851 * fix(web): panel resize handle no longer covers the chat scrollbar on touch devices by @juliusmarminge in pingdotgg/t3code#42852 * fix(server): linked workflow steps recover replies from older pages by @SoroushRF in pingdotgg/t3code#42818 * fix(web,mobile): Usage says "1 session", not "1 sessions" by @only21mil in pingdotgg/t3code#42837 * fix(web): clicking outside a citation comment keeps its dictation by @juliusmarminge in pingdotgg/t3code#42856 * fix(client-runtime): feedback trace shows "1 character", not "1 characters" by @only21mil in pingdotgg/t3code#42855 * fix(desktop): WSL-only backend no longer falls back to Windows when reg.exe is blocked by policy by @juliusmarminge in pingdotgg/t3code#42857 * fix(github): count team review requests in the Reviewing filter by @pedrosousa13 in pingdotgg/t3code#42835 * fix(web): timeline minimap no longer covers the Copy button when the chat lane is shifted left by @juliusmarminge in pingdotgg/t3code#42876 * perf(web): Files panel Refresh reads only the folders on screen by @juliusmarminge in pingdotgg/t3code#42870 * fix(web): Restart agent session toast says the conversation is kept by @juliusmarminge in pingdotgg/t3code#42880 * fix(mobile): / menu ranks an exact skill name above description matches by @juliusmarminge in pingdotgg/t3code#42879 * fix(server): EPUB attachment text no longer includes hidden passages by @only21mil in pingdotgg/t3code#42871 * fix(web): reopening a closed pull request tab keeps saved list filters by @AymanKhan9 in pingdotgg/t3code#42875 * fix(web,mobile): mixed add/delete review selections no longer show backwards line ranges by @only21mil in pingdotgg/t3code#42863 * fix(web): reading position survives a panel resize right after a thread opens by @juliusmarminge in pingdotgg/t3code#42915 * fix(web): web search result links follow Open links in by @juliusmarminge in pingdotgg/t3code#42882 * fix(server): preserve split terminal control sequences across scrollback clears by @StiensWout in pingdotgg/t3code#42810 * fix(web): update terminal labels when the language changes by @StiensWout in pingdotgg/t3code#42872 * fix(web): show Labs device preferences read-only for projects by @jsyt in pingdotgg/t3code#42884 * fix(server): t3 connect link says to restart a running server, not start t3 serve by @juliusmarminge in pingdotgg/t3code#42904 * fix(server): extensionless empty ZIP files are detected as application/zip by @only21mil in pingdotgg/t3code#42899 * fix(server): OpenCode /goal length rejection names the limit by @juliusmarminge in pingdotgg/t3code#42905 * fix(web,mobile): adding a project from a draft's picker no longer leaves the draft behind by @nikalezah in pingdotgg/t3code#42889 * fix(web): localize terminal excerpt line ranges by @StiensWout in pingdotgg/t3code#42886 * fix(server): separate nested EPUB list items in attachment text by @Lucenx9 in pingdotgg/t3code#42891 * fix(web): empty files and folders in archive previews show 0 bytes instead of 1 KB by @only21mil in pingdotgg/t3code#42900 * fix(web): Show more in Thread Details keeps every repository listed by @juliusmarminge in pingdotgg/t3code#42919 * test(web): Files panel Refresh test no longer fails on a late tree render by @t3dotgg in pingdotgg/t3code#42935 * fix(terminal): keep line breaks when joining a running terminal by @StiensWout in pingdotgg/t3code#42927 * fix(server): separate ruby readings in EPUB attachment text by @Lucenx9 in pingdotgg/t3code#42911 * fix(web): unsupported file preview no longer calls extensionless filenames a file type by @only21mil in pingdotgg/t3code#42932 * fix(server): Antigravity live sessions no longer overwrite default thinking levels by @jsyt in pingdotgg/t3code#42931 * fix(web): release terminal reply ownership when the drawer closes by @StiensWout in pingdotgg/t3code#42897 * fix(mobile): keep CSV headings below the iPad navigation bar by @xandev641 in pingdotgg/t3code#42928 * fix(web): comment timestamps follow 'Open links in' by @iamshadmantaqi in pingdotgg/t3code#42873 * fix(web): SQLite 1-byte BLOB previews show "[blob: 1 byte]" by @only21mil in pingdotgg/t3code#42950 * fix(server): preserve image descriptions in EPUB attachment text by @Lucenx9 in pingdotgg/t3code#42925 * fix(server): expired buffered signals no longer wake workflows by @SoroushRF in pingdotgg/t3code#42952 * fix(server): DOCX merged table cells no longer shift later columns in attachment text by @only21mil in pingdotgg/t3code#42955 * fix(terminal): keep other input out of large bracketed pastes by @StiensWout in pingdotgg/t3code#42948 * fix(server): resend a Cursor request a restart cut off before its first checkpoint by @grenmango51 in pingdotgg/t3code#42938 * test(scripts): WSL archive fixture works with Git Bash tar on Windows by @pauldupuyjr in pingdotgg/t3code#42962 * fix(server): EPUB attachments keep their table captions for agents by @KyrosHendrix in pingdotgg/t3code#42964 * fix(web): Antigravity settings show only the fields the chosen sign-in method uses by @SunkenInTime in pingdotgg/t3code#40494 * fix(contracts): pull request and issue errors reach clients behind T3 Connect by @juliusmarminge in pingdotgg/t3code#42956 * fix(web): exact 1,024-column CSV and TSV files no longer show the truncated-columns banner by @only21mil in pingdotgg/t3code#42973 * fix(web,mobile): a running Read's image shows a loading frame, not "Image unavailable" by @shivamhwp in pingdotgg/t3code#42921 * fix(shared): usage page says "record was skipped" for one malformed record by @only21mil in pingdotgg/t3code#42974 * fix(antigravity): keep child skills visible under a root SKILL.md by @Lucenx9 in pingdotgg/t3code#42971 * fix(web): PR timeline "Open activity on host" buttons honor 'Open links in' by @AymanKhan9 in pingdotgg/t3code#42914 * fix(server): images on drives Windows' native realpath cannot resolve preview again by @juliusmarminge in pingdotgg/t3code#42981 * fix(server): login-shell re-reads no longer pile up fnm multishell folders in PATH by @juliusmarminge in pingdotgg/t3code#42996 * fix(mobile): an Issues list with nothing more to load no longer spins forever by @juliusmarminge in pingdotgg/t3code#42992 * fix(server): Antigravity sessions no longer mark an unscanned folder's skills as scanned by @juliusmarminge in pingdotgg/t3code#43002 * fix(web): empty ODS sheets show 0 columns instead of 1 by @only21mil in pingdotgg/t3code#42991 * fix(shared): new thread titles no longer end with a space before "..." by @only21mil in pingdotgg/t3code#43014 * fix(server): stop reading Antigravity usage limits from Google's internal APIs by @juliusmarminge in pingdotgg/t3code#43026 * fix(web): recognize composerEmpty in keybinding settings by @v-khanna in pingdotgg/t3code#42986 * fix(terminal): finish shell startup after disconnect by @StiensWout in pingdotgg/t3code#42940 * fix(web): pressing Escape on the Environments map clears selection without closing Settings by @only21mil in pingdotgg/t3code#43017 * feat(workflows): a run can declare its subject and be found by it by @juliusmarminge in pingdotgg/t3code#42517 * fix(server): agents below Full access ask before a push runs repository hooks by @juliusmarminge in pingdotgg/t3code#42535 * fix(server): asset responses pick their sandbox from the type they serve by @juliusmarminge in pingdotgg/t3code#42999 * fix(server): Claude no longer gets MCP app notes again after a server restart by @juliusmarminge in pingdotgg/t3code#43008 ## New Contributors * @usedhonda made their first contribution in pingdotgg/t3code#42806 * @pedrosousa13 made their first contribution in pingdotgg/t3code#42835 * @jsyt made their first contribution in pingdotgg/t3code#42884 * @xandev641 made their first contribution in pingdotgg/t3code#42928 * @grenmango51 made their first contribution in pingdotgg/t3code#42938 * @v-khanna made their first contribution in pingdotgg/t3code#42986 **Full Changelog**: pingdotgg/t3code@v0.1.13-nightly.20261125.5245...v0.1.13-nightly.20261125.5258 </details> Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.13-nightly.20261125.5258
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
A panel opening or the chat narrowing right after a thread loaded could move the text being read out of view: the reading-position keeper ignored scrolls and resizes that came before the browser's first resize report. A scroll now records the starting width itself, so an early resize is still corrected. This also stops the flaky
MessagesTimelinewidth-change test that turned main red.Reproduction on main
Run the failing check on main.
Evidence
The checks on this pull request are the proof: it changes what main's checks run, not what the app does.
Tests
vp test run src/components/chat/MessagesTimeline.browser.test.tsx -t "keeps the visible sentence"on unmodified origin/main: 5 passed, plus 6 passed under full CPU load (the failure did not reproduce this way)vp test run src/lib/preserveReadingPosition.browser.test.tswithout the fix: failed deterministically (expected 1200 to be less than 2)vp test run src/lib/preserveReadingPosition.browser.test.ts src/components/chat/MessagesTimeline.browser.test.tsx -t "keeps the"with the fix: 20/20 passedvp test run src/lib/preserveReadingPosition.browser.test.ts src/components/chat/MessagesTimeline.browser.test.tsx: 79 passedvp run check:changed: format, lint, knip, typecheck, test and react compiler all passNot in this change
Who did the work
Run by the t3code factory in T3 Code.