Repository navigation
Say how much changed since the version the user last saw, and let v mark it - #5388
Merged
Merged
Conversation
… mark it
Coming back to a page the agent revised while the user was away, the
panel now says how much changed since the version they last saw ("3
changes since v12") and offers `v` (Show), and the page still arrives
unmarked. `v` marks those changes, and once the user has seen
everything, it marks what changed since the newest older version, as
before. The user chose on 3 November to call the marks up with a key
rather than find them waiting; on 4 November they took up being told on
return that there is something to call up (#34 on the design page).
`since-seen.js` comes back from before #5014 to record what the user saw
and owns `v`, which moves out of `version.js` (its command id is now
`changes.toggle`):
- A revision counts as seen only while the tab is visible, its window
focused and its reading continuous, and the tab posts `seen` as the
user leaves, as the decisions of 31 October set. The server never
stopped reading `seen` (`read_state.seen_revision`), so nothing changes
on the Python side but the prose that said no tab posts one.
- The version the user last saw is the newest stamped one at or before
the newest revision they saw, found at their arrival.
- The notice is a notice offering a press, so it stands until the
user's next input, and only while nothing is marked and `v` still
compares with that version.
To count without marking, `applyDiff` splits into `diffWith`, which
reads a comparison and touches nothing, and `commitDiff`, which puts it
on the page; `loadBase` takes the fetch out of `showComparison`, and
`changesSince` counts. The count waits until the document is presented,
so its comparison stays off the path to first showing the page.
Tests: coming back after a stamp and a revision says "2 changes since
v1" and marks nothing, and `v` marks both changes, not only the one
since v2; a version that lands while the window lacks focus counts on
return, and the notice's Show marks it. Each fails with its rule taken
out (focus ignored; `v` ignoring the version last seen).
A fresh review in Firefox found three ways the return notice could say something false: - A page at a draft after its last version gave "1 change since v7" on every return to the window, though the user had watched the draft land. The notice now needs a revision newer than any the user saw; it still counts from the version. - A revision landing while the notice stood left its count stale. The notice now stands only while the revision it counted is the one being read. - A revision landing while the count ran dropped the notice. The count now starts again. `notifications.js` and `floating-panel.js` said a notice's press is only the undo of the user's own gesture; they now name the return's Show too, chosen on 4 November. Tests: a return to a draft the user watched land makes no count request, and a revision landing while they are away still gets one and its notice; the test fails with the rule taken out.
A return with nothing new started no count, so a count from an earlier return could still give its notice after it. The arrival token now advances on every arrival, as the fresh review of the return notice pointed out.
# Conflicts: # browser/runtime/version.js
On 4 November the user chose that the notice saying how much changed since the version they last saw go after a notice's time, as a version's arrival does, rather than stand until their next input with a Show press. It now reads "2 changes since v1 — v shows them", naming its key as "Draft kept — g i resumes writing" does, and waits behind the user's own commands as other news does. The leaf's menu keeps Show changes as the lasting route. A notice's one press is again only the undo of the user's own gesture, so the notifications.js and floating-panel.js headers say so again, as on main. Tests: the return tests read the new words, and the one that pressed the notice's Show presses `v`.
leaf-agent
approved these changes
Nov 4, 2026
max-sixty
added a commit
that referenced
this pull request
Nov 23, 2026
…and v there compares it (#6788) `g V v` now shows what changed since the user last looked, and the bare `v` page key is gone. Versions opens on the version the user last saw, named **(last seen)** while the page has changed since it, else on the newest version older than the one shown, and `v` there presses the Compare of the version the user stands on. The same keys take the marks off again. The return notice keeps Show changes, now wearing `g V v`; the Annotations list loses its Show changes row, and Compare on the last-seen row is a finger's route. Max asked for this in a Leaf thread on 22 Nov ("why isn't changes integrated into versions? I think that would be better than having it separate. So it could be something like `g V v`?") and picked the option that moves Show changes into Versions. It reverses the one-key toggle #5290 and #5388 chose; the `since-seen.js` header states the new decision. Since 1 Oct the toggle ran 8 times, all in one session. Worth weighing: a notice's press now carries a `keys` getter in place of a command id, since `g V v` belongs to no single command, and `throughVersions` (version.js) composes Versions' keys for both Show changes and Open latest, offering none while Versions stands open, where `g V` would close it. A deeper fix would teach `pressNow` (control-keys.js) to reach a panel view's keys through the command that opens the view, and delete `throughVersions`. After `v`, Versions closes onto the panel's leaf, as every Versions press does, where bare `v` left focus on the page. Tab now enters a list at the row the list declares it opens at, so Tab and `v` agree in a Versions opened by a pointer; in Threads that is the first thread rather than a draft above it. Tests: `pnpm run test:runtime`, `pnpm run check`, pre-commit, and the changed browser and journey tests by node id; `g V v` probed in Chromium and Firefox. An independent code review and a fresh look at the captures ran, and their findings are fixed here. > _This was written by Claude Code on behalf of max-sixty_
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.
Coming back to a page the agent revised while the user was away, the panel now says how much changed since the version they last saw, as "3 changes since v12 — v shows them", and the page still arrives unmarked.
vmarks those changes; once the user has seen everything, it marks what changed since the newest older version, as #5290 made it. The user chose on 3 November to call the marks up with a key rather than find them waiting, and on 4 November took up being told on return that there is something to call up, in a notice that passes after a notice's time like a version's arrival.What counts as seen
since-seen.jscomes back from before #5014 to record what the user saw, and ownsv, which moves out ofversion.js(its command id is nowchanges.toggle).seenas the user leaves and hands the revision to a reload.seen(read_state.seen_revision); the Python side changes only the prose that said no tab posts one.Counting without marking
applyDiffsplits intodiffWith, which reads a comparison and touches nothing, andcommitDiff, which puts it on the page;loadBasetakes the fetch out ofshowComparison, andchangesSincecounts. The count runs after the document is presented, and starts again if a revision lands while it runs.Startup
since-seen.jsloads with the runtime, one more source module (about 9 KB) before the page presents, becausevand the record of the first presentation have to be there when it does. The count's/api/viewrequest waits until after presentation. A base/head probe of the startup path didn't finish on a host at load 50, so the request and byte comparison above is read from the module graph rather than measured.Tests
vmarks both changes, not only the one since v2.vmarks it.Each fails with its rule taken out (focus ignored,
vignoring the version last seen, the unseen rule removed).pnpm run test:runtime(813),pnpm run check:browser, pre-commit and the change and comparison tests intest_changes_in_place.pypass. A fresh reviewer used the return in Firefox; its three findings (a notice repeating on a watched draft, a stale count, a dropped notice) are fixed here.