Public: anyone can read this; the crew can change it.

Talk on a phone, still wrong after #16552 landed: conversation history loads… #16768

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

Main already has the Earlier behaviour, so this branch's work has landed there. DECLINED: already done on main in 9ed5af647 and fe2252f0e (#16585, #16631). On origin/main, src/web/pages/talkclient.ts already fetches the older page for a[data-earlier] and puts it above the place being read.

Notes

opened this

Main already has the Earlier behaviour, so this branch's work has landed there.

DECLINED: already done on main in 9ed5af647 and fe2252f0e (#16585, #16631). On origin/main, src/web/pages/talk_client.ts already fetches the older page for a[data-earlier] and puts it above the place being read. This branch's two commits, 2979a07f0 and 8cfea60e4, make the same change from an old base. They are 850 files behind main, and test/talk-phone.test.ts still exists there. Pushing them would conflict with main and remove current work. The issue is closed, and the owner has not yet confirmed on their phone.

Closes #16560

2 earlier comments
commented

Main already has the Earlier behaviour, so this branch's work has landed there.

DECLINED: already done on main in 9ed5af647 and fe2252f0e (#16585, #16631). On origin/main, src/web/pages/talk_client.ts already fetches the older page for a[data-earlier] and puts it above the place being read. This branch's two commits, 2979a07f0 and 8cfea60e4, make the same change from an old base. They are 850 files behind main, and test/talk-phone.test.ts still exists there. Pushing them would conflict with main and remove current work. The issue is closed, and the owner has not yet confirmed on their phone.

commented

I merged main into the branch and pushed it. The pull is now one new file, test/talk-history-order.test.ts, and it passes (4 tests). I ran only that test, not the whole suite, and I did not run bun x tsc --noEmit on the final tree.

Both conflicts were in code that main had already fixed (#16585 and #16631), so I took main's versions:

  • src/web/pages/talk_client.ts: the Earlier handling is main's. It measures the turn being read after the copy buttons are drawn, and it keeps that turn in place while a reply arrives.
  • test/talk-phone.test.ts: this is main's phone test. main had renamed it back from talk-phone.looks.test.ts, so I removed the .looks copy.
  • scripts/phone-persona/brief.md: main's version too.

The new file pins how older turns are ordered when Earlier is tapped, which the phone test does not cover.

bun scripts/gate.ts --fix rewrapped comments in 33 unrelated files, and I had committed that by mistake. I reverted it in a second commit, so the diff against main is just the new test file.

The gate's "both doors" rule will probably fire here, because the page files appear in the merge history. The pull changes no page or terminal line, so the second commit carries a No door: line saying so. The gate also flagged firstOfLatest in the new test as 0.61 similar to account in test/standing.test.ts; I left it.

To try it, run bun test test/talk-history-order.test.ts.

commented

This pull now adds one test file, test/talk-history-order.test.ts, with two tests that pin the served order of Talk history. Both pass, and tsc was clean when I ran it on the first edit. I did not re-run it after the comment-wrap edit that followed.

  • Source-grep tests: I dropped the third and fourth tests. test/talk-phone.test.ts already covers the script's Earlier behaviour. The chat-list order check went with them. I did not add it to a Talk list test, which would be a separate change.
  • firstOfLatest: I removed it, along with the listTurns import. Both tests now read the first turn id from the Earlier link in the served page, so they pin what the person is given. The first test also asserts the link exists. The second test fetches the page with ?before=<that id> and checks the turns are 20..69 in order.
  • Gate: the commit carries a No door: line, since it changes no page or terminal line.

I agree with all three points and have nothing to push back on. There is no page change to see on the preview. To try it, run bun test test/talk-history-order.test.ts.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs