GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(app): keep loaded history when the transcript is read again by Hona · Pull Request #66035 · anomalyco/opencode Conversation
|
| Reader | dev, old timeline |
dev, new timeline |
This PR, old | This PR, new |
|---|---|---|---|---|
| 10 bursts up | gone 3/3, view moved 11,816 to 13,052 px | gone 3/3, 12,129 to 14,483 px | same rows 3/3, 0 px | same rows 3/3, 0 px |
| 6 bursts up | gone 3/3, 4,312 to 6,714 px | gone 3/3, 3,449 to 8,139 px | same rows 3/3, 0, 0 and 16 px | same rows 3/3, 0 px |
| 3 bursts up | 0, 0 and 238 px | 0, 0 and 147 px | 0 px 3/3 | 0 px 3/3 |
| 0 and 1 bursts up | 0 px 6/6 | 0 px 6/6 | 0 px 6/6 | 0 px 6/6 |
| 6 bursts up, Stop while a tool runs | gone 3/3 | gone 3/3 | same rows 3/3, 0 px | same rows 3/3, 0 px |
| 6 bursts up, a reply streams | gone 3/3 | gone 3/3 | same rows 3/3, 0 px | same rows 3/3, 0 px |
| 1 burst up, a reply streams | 0 px 3/3 | 0 px 3/3 | 0 px 3/3 | 0 px 3/3 |
| 6 bursts up, 60 messages arrived while the stream was down | gone 3/3 | gone 2/3 | same rows 3/3, 0 px | same rows 3/3, 0 px |
| 6 bursts up, 200 messages arrived | not run | not run | same rows 1/1, 0 px | same rows 1/1, 0 px |
| 6 bursts up, 300 messages arrived | not run | not run | replaced 1/1 | replaced 1/1 |
| Following, a reply streams | stays at the end 3/3 | stays at the end 3/3 | stays at the end 3/3 | stays at the end 3/3 |
dev moves the same 16 px for that page without a reconnect.The mock timeline of the new keeper, at the first message of an older page, before and after the reconnect:
| Before the reconnect | After the reconnect | |
|---|---|---|
dev |
![]() |
![]() |
| This PR | ![]() |
![]() |
dev |
This PR | |
|---|---|---|
| Reconnect or Stop, 40 to 100 messages loaded | 1 request | 1 request |
| Same, 280 to 720 messages loaded | 1 request | 1 request |
| Reconnect after 60 missed messages | 1 request | 3 requests, 299 kB |
| Reconnect after 200 or more missed messages | 1 request | 4 requests, 736 kB |
packages/client/test/solid-data.test.ts: the loaded history stays after fewer and after more new messages than a page, and without the messages a revert removed; a page too far ahead replaces it, and the older page that continued it is dropped; a kept running message is read again; an event-built transcript is replaced by its first read, one built since the session's creation keeps its start; a waiting input stays one row, and a delivered one is placed by the server.packages/app/e2e/regression/timeline-history.spec.ts: "a reconnect of the event stream keeps a reader in older history where they were".packages/cli-rs/parity/deviations records it.Added by the opencode bot (AI-generated).
Related: #56725
main.work is −1% (−5% to +2%) after 18 pairs on a busy machine, and strobe calls it underpowered.f25b09005e show +18% and +24% with unrelated heads (base 666 to 673 MB, head 790 to 805 MB), and experiments against other base commits show −1%.e3121174f9. The commits after it change tests, and the sizes of the older pages that a new read fetches, which this bench does not reach.strobe · exp_bdabc7 · packages/app/perf/timeline.bench.ts · generated
Scroll history: Main-thread work per 2.7 s run: no clear change in 18 pairs (medians 424,139 → 425,915 µs); ~75 pairs would settle it; unsteady case: its work grew each run.
Different screens: the builds did not all show the same screen, so part of the difference may be the screen.
Measured in a headless browser (no display): CPU and counters only; compare only with other headless runs.
| Metric | origin/dev@f25b09005e | HEAD@e3121174f9 | Change | Likely range | Verdict |
|---|---|---|---|---|---|
| Main-thread work per run main | 424,139 µs | 425,915 µs | −1% −6,000 µs (warned) |
−5% to +2% −24,000 to +7,000 µs |
inconclusive ~75 pairs warned |
| Main-thread busy time | 15.3% | 15.3% | −0.4% | −4% to +2% | not tested warned |
Likely range: 98.6% confidence for the main metric (checked at 8, 12, 18, 26, 40 pairs, 95% over all of them), 95.2% for the others. Change: the pairs' typical change (Hodges–Lehmann: the median of the averages of every two pairs' changes).
| Pair | Main-thread work per run, origin/dev@f25b09005e → HEAD@e3121174f9 | Change | Other apps' CPU |
|---|---|---|---|
| 1 AB | 419,949 → 426,418 µs | +1.5% | 394% → 322% |
| 2 BA | 424,983 → 406,231 µs | −4.4% | 311% → 187% |
| 3 AB | 443,442 → 425,761 µs | −4.0% | 509% → 136% |
| 4 BA | 424,536 → 426,069 µs | +0.4% | 153% → 190% |
| 5 AB | 436,295 → 406,550 µs | −6.8% | 200% → 178% |
| 6 BA | 423,743 → 427,056 µs | +0.8% | 169% → 126% |
| 7 AB | 431,353 → 432,451 µs | +0.3% | 462% → 421% |
| 8 BA | 471,360 → 420,847 µs | −11% | 374% → 547% |
| 9 AB | 421,174 → 429,798 µs | +2.0% | 77% → 136% |
| 10 BA | 421,911 → 403,408 µs | −4.4% | 42% → 369% |
| 11 AB | 426,436 → 405,520 µs | −4.9% | 129% → 65% |
| 12 BA | 418,907 → 416,822 µs | −0.5% | 205% → 839% |
| 13 AB | 427,515 → 440,653 µs | +3.1% | 141% → 560% |
| 14 BA | 481,993 → 419,053 µs | −13% | 687% → 362% |
| 15 AB | 407,757 → 433,892 µs | +6.4% | 313% → 538% |
| 16 BA | 423,385 → 442,440 µs | +4.5% | 602% → 663% |
| 17 AB | 421,359 → 426,492 µs | +1.2% | 537% → 452% |
| 18 BA | 420,302 → 424,131 µs | +0.9% | 307% → 313% |
Each pair launched both builds fresh, in alternating order (AB or BA). Change: the main metric. Other apps' CPU: other processes on the measured CPUs, % of one core, bold from 25%; 4 other processes ≥ 5%, busiest 301% of a core.
origin/dev@f25b09005e, feat(app): move the file tree to the right from its context menuHEAD@e3121174f9, fix(app): keep loaded history when the transcript is read again| Metric | origin/dev@f25b09005e | HEAD@e3121174f9 | Change | Likely range |
|---|---|---|---|---|
| JavaScript time per run | 83,432 µs | 82,031 µs | −1% −1,000 µs (warned) |
−9% to +2% −9,000 to +2,000 µs |
| Layout time per run | 16,350 µs | 16,634 µs | +0.01% | −9% to +6% |
| Style time per run | 77,104 µs | 76,028 µs | −1% −1,000 µs (warned) |
−11% to +2% −8,000 to +2,000 µs |
| Layouts per run | 75 | 75 | −0.5 | −4.5 to +0.5 |
| Style recalculations per run | 517 | 516 | −1 | −26.5 to 0 |
| Run time | 2,734,191 µs | 2,733,211 µs | +0.01% 0 µs (warned) |
−0.3% to +0.1% −7,000 to +3,000 µs |
| GPU memory | 128 MB | 128 MB | −0.2% 0 MB |
−2.0% to +1.0% −3 to +1 MB |
| Shared GPU memory | 2.40 MB | 2.42 MB | +3% +0.1 MB |
−9% to +17% −0.2 to +0.4 MB |
| App memory | 670 MB | 791 MB | +16% +110 MB |
+11% to +21% +80 to +140 MB |
| JavaScript heap | 34.5 MB | 29.6 MB | −8% −3 MB |
−13% to −2% −5 to −0.3 MB |
| DOM nodes | 973 | 973 | 0 | 0 to +42.5 |
strobe bench packages/app/perf/timeline.bench.ts \ --base origin/dev \ --head HEAD \ --filter "scroll history" \ --headless # to settle Scroll history (~75 pairs), add: --filter "scroll history" --pairs 75
strobe report experiment exp_bdabc7 --openrec_f569e0 (origin/dev@f25b09005e, pair 1), rec_3dcfda (HEAD@e3121174f9, pair 1)strobe · exp_bdabc7 · end of generated report
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The change looks sound and I have no blocking concerns.
How I checked it: the new solid-data.test.ts cases fail on the base source: 9 tests, covering the kept history, the dropped stale older page, the re-read running message, the anchored transcripts and the waiting inputs. All 48 tests pass with this change, and tsc --noEmit on packages/client is clean. I didn't run the e2e spec (no Playwright browsers here) or drive the TUI or app by hand. I also read through the revert, the gap of more than one page and the gap past the 10-page limit, and none of them can skip messages. The new early return in loadMore is safe for its callers: the jump dialog and the TUI history prepend both loop on more()/get().
Public API: no signatures, endpoints, events or config change. The only difference callers see is that session.message.loadMore can now return without publishing a page when a newer read replaced the transcript.
Related: #56725
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The new commit only adds a blank line to the e2e spec to satisfy the spacing lint. It changes no behaviour and I have no new concerns. The public API is still unchanged.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The new commit updates the three TUI tests that relied on a resync throwing away loaded history. The previous version of session-dialog-resync.test.tsx fails both its tests against this PR's code, and the updated session-dialog-resync.test.tsx and app-lifecycle.test.tsx pass (45/45). The dialog tests still cover the crash they guard against, now by having the server move further ahead than the reconnect reads back. The footer test now expects the prepended history to stay. I have no new concerns, and the public API is still unchanged.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
# Conflicts: # packages/app/AGENTS.md # packages/app/e2e/regression/timeline-history.spec.ts
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The new commit is a merge of dev, and the PR's own changes are the same as before. On the merged head, the client tests (48/48), the client type check and the affected TUI tests (45/45) all pass. I have no new concerns, and the public API is still unchanged.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The new commit swaps the ten 20-message read-back pages for three older pages of 20, 40 and 140 messages. That reaches the same 200 older messages with at most 4 requests instead of 11. The read still stops once it meets the loaded history and still never joins a page to messages it doesn't adjoin. The updated client test pins the request sequence, and the TUI resync test follows the new last page. At this head the client tests (48/48), the client type check and the affected TUI tests (45/45) all pass. I have no new concerns, and the public API is still unchanged.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.