Skip to content

fix(timeline): stabilize ChatGPT jumps and table layout - #1121

Merged
Nagi-ovo merged 3 commits into
voyager-crew:mainfrom
madoka-chann:codex/fix-chatgpt-timeline-jump
Nov 27, 2026
Merged

Nagi-ovo merged 3 commits into
voyager-crew:mainfrom
madoka-chann:codex/fix-chatgpt-timeline-jump

Conversation

@madoka-chann

@madoka-chann madoka-chann commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Why the change

ChatGPT timeline jumps can revisit the same virtualized window or lose the chosen turn after mounting. The table container can also change width repeatedly during a jump or a manual scroll.

Special things to note

  • Older messages can still require a ChatGPT history page to load.
  • Manual wheel or touch input inside the transcript cancels an ongoing jump.
  • The ChatGPT timeline plugin applies the table sizing rule using the packaged scroll-container selector. The table remains horizontally scrollable.

Change outline

- Repeat the same navigation probe when the rendered window misses the target
+ Use measurements on both sides to refine the landing window
+ Track the selected turn by its stable ChatGPT key
+ Cancel automatic movement on manual input
+ Bound the table wrapper to the transcript width

Related Issue or Discussion

Follow-up to #1116, which was resolved in v2.3.6.

Visual Proof

On the earlier combined development build in Edge, the affected table alternated between 768 and 1013 CSS px before the change. With the sizing rule it stayed at 768 px through rapid upward scrolling and still scrolled horizontally. Redacted light and dark crops are available locally. Attaching them and capturing the isolated commit remain pending.

Browser Testing

Tested commit for automated checks: 4953f3953302b0483058c91110d772776ec90b84

  • Earlier combined build: Edge 158.0.4370.33 exercised timeline jumps, wheel takeover and table sizing.
  • The isolated development build succeeded. Exact-commit Edge, Chrome, Firefox and Safari checks remain pending. Contributor: @madoka-chann.
  • bun run typecheck, bun run lint:check and bun run plugin:check passed. The locator-contract and site-knowledge scans passed after normalizing Windows paths.
  • bun run test:changed: 3,450 passed. One unchanged catalog test fails on Windows because it expects forward slashes in an error path.
  • Production builds and the full verify:pr sequence are pending. CI covers production builds and broader tests.

Checklist

  • Focused bug fix
  • Regression coverage for repeated probes, remounting, attachment-only anchors, and wheel cancellation
  • Test by myself for 15min in browser for GPT and Gemini
  • Exact-commit browser evidence and contributor verification

Follow up on voyager-crew#1116 with regressions for missed turns, retained selection, and manual scrolling during a jump.

Co-authored-by: Codex <codex@users.noreply.github.com>
madoka-chann and others added 2 commits November 26, 2026 17:18
Co-authored-by: Codex <codex@users.noreply.github.com>
Co-authored-by: Codex <codex@users.noreply.github.com>
@madoka-chann

madoka-chann commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

验证,加载完历史对话后的跳转速度得到了极大提升;来回跳转不会再出现闪烁、卡顿的问题

17.36.35.2026-11-26-trimmed-compressed.mp4

@Nagi-ovo

Copy link
Copy Markdown
Member

非常感谢你提供视频证据,这节省了我很多时间!

我在 Chrome 上把这个 PR 合到最新 main 后,用一个 106 轮、含图片消息的对话实测,依次跳到第 4 / 61 / 21 / 91 / 6 / 46 轮,和 main 对比:

main 本 PR
第一轮跳转(未缓存)总耗时 33–35 秒 24 秒
第一轮画面反向跳动 81–86 次 45 次
第二轮跳转(已缓存)总耗时 17 秒 13 秒
第二轮画面反向跳动 60 次 28 次,全部落在目标上
跳到图片消息 7.8 秒、来回 30 次、高亮错条 1.4 秒、一次到位

还有两点:

  1. 冷启动时直接跳到最前面几轮(第 4 轮),两边都没能落到目标上(本 PR 9.9 秒,main 12.7–20 秒),这块可以之后再看。
  2. 表格宽度:我这边 ChatGPT 的表格结构是 TableFrame / TableViewport,没有 TableContainer / TableScroller,所以这条样式规则在我这里匹配不到元素,表格宽度也一直稳定在 860px,没复现到来回变化。可能是 ChatGPT 的 A/B 版本不同;规则本身无害,可以考虑兼容两种结构。

另外 #1122 已合并。它和这个 PR 都改了 historyLoader / historySources,我本地合并没有冲突,合并后的 3452 个测试、typecheck 和 lint 都通过了。

@Nagi-ovo
Nagi-ovo marked this pull request as ready for review November 27, 2026 00:39
@Nagi-ovo
Nagi-ovo merged commit 78422b5 into voyager-crew:main Nov 27, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants