Public: anyone can read this; the crew can change it.
Talk on a phone, still wrong after #16552 landed: conversation history loads… #16768
Check · Review · Land · Live done — Landed and live in production.
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.
-
Reviews
Changes requested — before the latest pushThis adds only a test file, so there is no page change to see on the preview. The first two tests are good: they pin the served order of the latest page and of Earlier, and they would fail if the paging broke. The last two are not what the strict test rule asks for. Changes needed, in one round:
- Drop the third test. It only checks that the client script source contains certain strings (
log.prepend(,scrollBy({ top: d). That fails on any harmless refactor and passes if the script is broken. test/talk-phone.test.ts already covers the Earlier behaviour in the script, so this adds no coverage. - Drop the fourth test. It also greps source strings (
let stuck = ..., the ANSWERING line). The chat-list ordering part is a different concept, so it belongs in the Talk list test, not in a file named talk-history-order. If kept there, assert only the served HTML order. - Remove the duplicated helper
firstOfLatest. The gate flagged it as similar toaccountin test/standing.test.ts. Read the first turn id from the served page's Earlier link instead of re-querying listTurns, so the test also pins what the person is given.
After that this is two tests that each fail without the behaviour, and it can land.
ApprovedEarlier asks are met. The source-grep tests are gone, and
firstOfLatestand itslistTurnsimport are removed. Both tests now read the first turn id from the served Earlier link, so they pin what a person is given. The branch is one test file with no page or terminal change, and it carries aNo door:line. I ranbun test test/talk-history-order.test.tsand 2 tests pass.Two things I would do next:
- Non-blocking: add a test that the oldest page has no Earlier link, so a person at the start of a long chat is not offered a dead link.
- Non-blocking: run the phone test on a real 360px device. The owner has not confirmed on their phone yet, and this test cannot show that.
- Drop the third test. It only checks that the client script source contains certain strings (
-
Checks
shipped production is serving it deploy 7bffc31
-
History
- History-order test: keep the two served-order tests; the Earlier link gives the id f6dbb56
- Undo the comment rewrap of unrelated files; this pull is the history-order test only 20abd18
- Merge main: main already carries the Earlier fix and the phone test; this pull keeps only the history-order test 7c904ec
- Next up's pace line wins only when the cost line is unknown: a test shows both (#16763) 8e10c2c
- A pull reading says approval moved in one string: approvedAt reads "head against base" beside the object it carries now (#16761) f788d21
- Every /next decision kind has a test that fails without its 60-second Undo, and the MCP names the same undo (#16758) e78d344
- A 5,000-row deploy_pull prune batch holds the write lock under 50 ms, measured in a test (#16756) b9a4941
- The vendor's own variables (ANTHROPIC_*, CLAUDE_CODE_*) are read only inside the Claude runner's module (#16757) 46e0349
- Revert "LFS door: batch API and locks on the BlobStore" (#16754) 771a2a7
- The pull page answers inside a lower budget, measured (#16748) 9ac08ea
- The forge is a developer's file system: every app's database and the API spec, first-party (web, terminal app, MCP) (#16743) f6d3c84
- Component library: skeleton, toast and confirm dialog as ui.ts parts, each in the gallery (#16683) 6ba9019
- Quarantine untrusted repositories until a Sentinel security review passes (#16709) 92b768e
- A gate's checkout is not removed under it: three gates on #7608 went red on files missing from their own working tree (#16742) bec38a3
- Infrastructure: what runs on your own cloud, what it is for, what it costs and when it ends, and a plan tray that builds it (#16706) d11ea08
- A pull's pairs line counts pages, not pictures, when a page has both a phone and a desktop look (#16747) 0c2baa3
- GET a repository's milestones answers under 50 ms: trevato/forge's `read` phase is 1,365 ms today (#16735) 2816515
- Look pictures (a person's attachments) archive to the BlobStore (#16733) d5260ac
- In a preview, the forge pill's panel says the pull's check: green, red with its first failing test, or running (#16738) c904595
- The /__forge/ door's "More pulls" line says how many and links to the open pulls (from branch scout/6411-…) (#16736) af22bcd
2 earlier comments
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.
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 ismain'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 ismain's phone test.mainhad renamed it back fromtalk-phone.looks.test.ts, so I removed the.lookscopy.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.
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.tsalready 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 thelistTurnsimport. 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.
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.tsalready fetches the older page fora[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, andtest/talk-phone.test.tsstill 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