Public: anyone can read this; the crew can change it.
Talk: "Allow it" does nothing when pressed; every button on a held action answers at once #18261
Merged 6h 31m ago, live in production
This change makes the buttons on a held action in Talk answer at once and report the result on the row. I did not reproduce the bug on production, which was the issue's first box.
-
Reviews
Changes requested — before the latest pushThe direction is right and the pull reuses data-now and flashOrJson, which is the one-component answer. But two things are not met. First fix: Undo's refusal never reaches the row in words (see the talk.ts comment). Second: box 4 asks for a test that presses Allow after a reload and after a streamed message and finds the pressed state, the request and the result. The new tests only check strings and indexOf order in the client script, so they would pass with a broken click. Add a DOM-level test (the repo's existing page harness) that renders /talk, presses Allow it and Do it, after a fresh load and after a streamed turn is inserted, and asserts the pressed word, the POST, and the result text on the row. Also: the issue's box 1 reproduction (production, 1280 and 390, Apple app) was not done, and the pull says so. Smaller: after Allow it succeeds, Send it back stays pressable until a live swap; disable the sibling form once one answer succeeds, so a person cannot send back a merged pull. On the 409 path in answerConfirm the button says Done even when the answer was an already-answered refusal; say the server's words there.
ApprovedEarlier asks: (1) the test the issue names, pressing Allow after a fresh load and after a streamed turn and finding the pressed word, the request and the result on the row, is now in test/talk-page.test.ts and is met. (2) Do it and an already-answered Do it now say the pressed word and the server's own words on the row, met. (3) Wall buttons lock the sibling after success, so a second press cannot run it twice, met. Wording is plain, the no-JS path still posts and redirects, and the page does not shift because the label is swapped in place.
Next two things: (a) Non-blocking: Do it and Not now run on their own client path in talk_client.ts while Allow it and Undo use act_now, so 'one component' is only true in behaviour; fold the confirm buttons into data-now when you next touch it. (b) Non-blocking: ACT_NOW_BUDGET went from 3000 to 3300 for one attribute; look for something in act_now.ts to remove rather than raising the cap again. The 100 ms measurement and the Apple app's Allow (#18012) are still unmeasured; open an issue for them.
-
Checks
shipped production is serving it deploy f698c54
-
History
- Direction: the DOM test waits on the row, not a timer, and builds a real work line (#18251) 4cee8fc
- Direction: Undo's refusal, a spent Allow it and an already-answered Do it say their words on the row, proved against a DOM (#18251) af2c406
- Try: open /talk on the preview, ask Talk for something it holds, press Do it; the button says Doing it… at once and the row says the result Looks: /talk ef167d7
- Direction: Allow it, Do it, Not now and Undo answer at once, in place, with the result or the reason on the row (#18251) e9e7659
- Access 5b: at sign-up or sign-in a person is shown what this visitor made and chooses to bring it, with a receipt and an undo window (#18217) a338207
- The games page shows a profile natively: flame graph, slowest ticks, per-mod time, linked findings (#18178) 1df6f9e
- An app made in the tab forge can be published as a read-only link on the forge, with no login (#18219) 7a7184b
- The spark page shows the slowest ticks and the time per mod, from the decoded profile (#18237) 281fd2f
- Crash reports, part 2: a private app's testers can report (a report key), in the shape the app sends, through one door (#18202) fbb3da4
- Sentinel: shared:01m23vygyffx5hg2f5vm8r74sr:f4rzrnk9yv is past its budget: trevato/forge: "the survival performance set > the terminal shows the set as the page does, and s previews it" failed o… (#18236) 6bd5128
- Full suite red: test/data-browser.test.ts (#18235) 6eb8475
- Full suite red: test/security-floor-routes.test.ts (#18234) ecc8b8c
- Sentinel: The lane has stopped: nothing has merged and nothing said so (#18233) b716c9e
- Crash reports: the route accepts the Apple app's body (os, device, at, previousRun, findings) (#18226) 24247ac
- Games: spark profile call tree and flame graph on the forge (#18211) 5ce50ab
- Stop and Delete a cloud machine or volume from the cost row, each confirmed only by typing its name (#18187) bcce730
- Access 5c: a linked game player mints the visitor principal (#18209) d46f453
- A changes-requested review with only a body is invisible: the pull's API, its reviews list and a repeat review request all say nothing (#18184) 1b94cba
- Full suite red: 3 files in check run 01m90cxa10vb1wxr16pmrhnt09 (#18225) 831c98f
- Game door: plain questions go to Talk at once, and continue until /forge clear (#18055) b5161cb
6 earlier comments
This change makes the buttons on a held action in Talk answer at once and report the result on the row. I did not reproduce the bug on production, which was the issue's first box. I have no signed-in owner session and cannot drive a browser from here, so I never measured the "under 100 ms at p95, five tries each at 1280 and 390" bar. The tests I added check the markup, the client script text and the server's JSON answers; none of them presses a button in a browser or measures time. The bun tests I ran pass, and tsc and the design lint are clean.
Cause, from the code, not a recording. "Allow it" on the access wall was a plain form post to /talk/wall. That means:
- The only feedback was the generic "Working…" after a timeout.
- The answer came back as a redirect to
/talk#endwith a toast, not on the row. - The work line is only swapped by its live events.
The held-action buttons ("Do it", "Not now") disabled themselves but changed no words.
What changed:
- Wall buttons: "Allow it" and "Send it back" use the forge's existing
data-nowbehaviour. The pressed button reads "Allowed" or "Sent back" at once, and the request goes in the background. The row then shows "Allowed and merged #N." or the refusal in words. A second press is ignored. - Server:
/talk/walland/talk/undo/:turnnow answer JSON when the client asks (flashOrJson). Without script they still redirect with a toast. - Held actions: "Do it" now reads "Doing it…" and "Not now" reads "Dropping…" the moment they are pressed. If refused, the label comes back and the reason appears on the row.
- Undo: a receipt's Undo uses the same
data-nowpath and reads "Undone". - Docs:
docs/features/talk-wall.mddescribes the new behaviour.
New tests:
test/talk-wall-says.test.tschecks the markup, a JSON Allow that merges and says so, and a second press that says why in words (HTTP 422).test/conversation-talk.test.tschecks that the pressed text is set before the request is sent and restored on refusal.
Not done:
- Reproduction and the 100 ms measurement on production.
- The Apple app's Allow (#18012).
- Hiding "Send it back" after "Allow it" succeeds; it stays until the live work-line swap.
- A test that presses Allow after a reload or a streamed update. That needs a browser harness I could not run here.
Reused: data-now (src/web/act_now.ts) and flashOrJson (src/web/layout.ts); no new function or dependency.
Doors: commit says "No door"; the terminal already answers the wall and held actions with a confirm.
Try it: open /talk on the preview and ask Talk for something it holds. Press "Do it" and the button reads "Doing it…" at once, then the row shows the result. For the wall, a pull the wall holds gives "Allow it" under its receipt, which reads "Allowed" and then "Allowed and merged #N."
This pull needed no further change. Each rule the check listed already passes on ef167d7, and I pushed nothing.
- both doors: passes. The commit line says
No door: the terminal already answers the wall and held actions with a confirm; this is only how the page's buttons respond. - name the issue: passes. The commit reads
Direction: … (#18251). - dead code (unused exports): passes. This change adds no export.
- no process-wide state: passes. This change adds no module-level
Map,Setor array. - comment width: only a note.
bun scripts/gate.ts --fixchanged nothing, and the gate says the nightly rewrap handles those lines on main. - Look pages: the gate's "look pages (named)" note counts the
Looks: /talkline as satisfied.
I ran bun scripts/gate.ts --explain. It reports 39 rules read, 0 failing, 2 noted. bun x tsc --noEmit is clean and bun scripts/design-lint.ts is clean. test/conversation-talk.test.ts, test/talk-wall-says.test.ts, test/module-state.test.ts and test/unused-exports.test.ts give 49 passing, 0 failing. scripts/fast.ts called the change too broad (2751 files, over the 5-minute budget), so I ran only those four files. The forge runs the full check on push.
What the pull does
On /talk, Allow it, Do it, Not now and Undo now answer at once and in place. The button shows "Doing it…", and the row then shows the result or the reason it failed. The change is in src/web/pages/talk.ts, src/web/pages/talk_client.ts and src/web/talk_lines.ts. It adds tests in test/talk-wall-says.test.ts and test/conversation-talk.test.ts, and updates docs/features/talk-wall.md.
I did not change the terminal side, because its confirm already answers.
To try it
Open /talk on the preview and ask Talk for something it holds. Press Do it. The button should read "Doing it…" immediately, and the row should then say the result.
[
{"go": "/talk", "look": "ask Talk for something it holds, then press Do it", "expect": "button reads Doing it… at once; the row then shows the result with no reload"},
{"go": "/talk", "look": "press Allow it on a held action, then Undo", "expect": "each answers in place on the row with the result or the reason"},
{"go": "/talk", "look": "press Not now on a held action", "expect": "the row answers at once and the page does not shift"}
]That message is only the gate's look-pages note for 4cee8fc. It lists /talk, which my commit already names, so there is nothing new to fix and I pushed nothing.
The pull description in my previous message stands as written. One correction to it: the Undo test presses Undo once on an unknown turn, not twice as juniper asked.
Left #18251 open: 1 unticked item remain (Reproduce it headless on production, signed in as an owner, in a browser at 1280 and at 390: ask Talk for something it holds, press "Allow it", and record what the page and the network do. Say which it is: the click is not wired after a refresh or a streamed update, the request fails and the error is swallowed, the request succeeds and the page never shows it, or the action is allowed and nothing says so. Check the Apple app's Allow as well (#18012).).
This change makes the buttons on a held action in Talk answer at once and report the result on the row. I did not reproduce the bug on production, which was the issue's first box. I have no signed-in owner session and cannot drive a browser from here, so I never measured the "under 100 ms at p95, five tries each at 1280 and 390" bar. The tests I added check the markup, the client script text and the server's JSON answers; none of them presses a button in a browser or measures time. The bun tests I ran pass, and
tscand the design lint are clean.Cause, from the code, not a recording. "Allow it" on the access wall was a plain form post to
/talk/wall. That means:/talk#endwith a toast, not on the row.The held-action buttons ("Do it", "Not now") disabled themselves but changed no words.
What changed:
data-nowbehaviour. The pressed button reads "Allowed" or "Sent back" at once, and the request goes in the background. The row then shows "Allowed and merged #N." or the refusal in words. A second press is ignored./talk/walland/talk/undo/:turnnow answer JSON when the client asks (flashOrJson). Without script they still redirect with a toast.data-nowpath and reads "Undone".docs/features/talk-wall.mddescribes the new behaviour.New tests:
test/talk-wall-says.test.tschecks the markup, a JSON Allow that merges and says so, and a second press that says why in words (HTTP 422).test/conversation-talk.test.tschecks that the pressed text is set before the request is sent and restored on refusal.Not done:
Reused:
data-now(src/web/act_now.ts) andflashOrJson(src/web/layout.ts); no new function or dependency.Doors: commit says "No door"; the terminal already answers the wall and held actions with a confirm.
Try it: open
/talkon the preview and ask Talk for something it holds. Press "Do it" and the button reads "Doing it…" at once, then the row shows the result. For the wall, a pull the wall holds gives "Allow it" under its receipt, which reads "Allowed" and then "Allowed and merged #N."Closes #18251