Skip to content

Say how much changed since the version the user last saw, and let v mark it - #5388

Merged
max-sixty merged 6 commits into
mainfrom
detail-dial
Nov 4, 2026
Merged

max-sixty merged 6 commits into
mainfrom
detail-dial

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

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. v marks 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.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, so a browser standing beside the terminal the user types into sees nothing land. The tab posts seen as the user leaves and hands the revision to a reload.
  • The version the user last saw is the newest stamped one at or before the newest revision they saw, found at their arrival. The server never stopped reading seen (read_state.seen_revision); the Python side changes only the prose that said no tab posts one.
  • A return to a draft the user watched land says nothing, though it differs from the version, since nothing in it is news.

Counting 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 runs after the document is presented, and starts again if a revision lands while it runs.

Startup

since-seen.js loads with the runtime, one more source module (about 9 KB) before the page presents, because v and the record of the first presentation have to be there when it does. The count's /api/view request 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

  • Coming back after a stamp and a revision says "2 changes since v1 — v shows them" 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 v marks it.
  • A return to a draft the user watched land makes no count request, while a revision landing when they are away gets one and its notice.

Each fails with its rule taken out (focus ignored, v ignoring 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 in test_changes_in_place.py pass. 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.

This was written by Claude Code on behalf of max-sixty

… 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`.
@max-sixty
max-sixty merged commit 5fae1a4 into main Nov 4, 2026
4 checks passed
@max-sixty
max-sixty deleted the detail-dial branch November 4, 2026 19:06
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_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants