Repository navigation
test(browser): the shortcuts sheet's ask is waited for, not read once - #1415
Conversation
Acceptance: PASS with notesChecked No issue closes this PR, so the claim checked is its What changed: the test used to race the stand-in shell's record of the ask, and now waits for it, with the same assertion. Done means
Failure rate, the repo's config (headless shell), only this test# main (b9dc456b), which differs from the head only in this spec, so the head's build is reused
PATCHY_TIER1_SKIP_BUILD=1 pnpm exec playwright test -c playwright.tier1.config.ts --project=chromium \
test/browser-tier1/hotkeys.spec.ts -g "the sheet's row asks Patchy" --repeat-each=20 --max-failures=0All 9 failures are at line 1673. The machine was under load from other suites, which likely explains why this rate is higher than the PR's 3 of 20. # head (18f6fbc9), global setup builds the server
pnpm exec playwright test -c playwright.tier1.config.ts --project=chromium \
test/browser-tier1/hotkeys.spec.ts -g "the sheet's row asks Patchy" --repeat-each=20 --max-failures=0Desktop Chromium, through a throwaway config outside the worktree, never committed
// <tmp>/desktop.config.mjs, beside a package.json of {"type":"module"}
import { defineConfig, devices } from "<worktree>/node_modules/@playwright/test/index.mjs";
import base from "<worktree>/playwright.tier1.config.ts";
export default defineConfig({
...base,
testDir: "<worktree>/test/browser-tier1",
globalSetup: "<worktree>/test/browser-tier1/setup.ts",
outputDir: "<tmp>/results",
projects: [{ name: "desktop-chromium", use: { ...devices["Desktop Chrome"], channel: "chromium" } }]
});PATCHY_TIER1_SKIP_BUILD=1 pnpm exec playwright test -c <tmp>/desktop.config.mjs hotkeys.spec.ts \
-g "the sheet's row asks Patchy" --repeat-each=20 --max-failures=0Review
Golden journeys: none touched. This is a test-only change. Rollback answers: they match the diff. A revert leaves nothing behind but the race, and no CI: every required check passed on Not run
Notes
|
|
The acceptance note's optional suggestion was to check the ask list once more at the end, to catch a late duplicate. I'm leaving it out. Main has the same gap, one click sends exactly one ask, and the SDK never retries it, so it would guard a path the code doesn't have. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
18f6fbc to
a577e25
Compare
…ey shortcuts (#1421) ## What changed This adds release 42's What's new entry, written from `1cd6d12`. It covers everything merged since release 41's `through` (`a25a9c5`), and sets the `patchy` release to `0.42.0` in `packages/patchy/package.json` and `CURRENT_RELEASE`. | Change | PRs | | --- | --- | | New: Tell Patchy what it's missing | #1217, #1218, #1219, #1227, #1228 | | New: Turn off single-key shortcuts | #1276, #1279, #1301 | | Fixed: Typing reaches the patch again | #1407, #1412 | | Fixed: Dialogs in patches keep your place | #1420, #1255 | | Behind the scenes: plainer facts for agents building patches | #1249, #1256, #1297, #1418 | | Behind the scenes: Patchy stores teams and audiences ahead of teams | #1416 | | Patch changes: Mod+/ and `client.close()` in patchy/hotkeys; single-key shortcuts can be off; Tab wraps in plain modal dialogs | #1279, #1301, #1420 | #1376 is release 41's own entry. #1400, #1406, #1414, #1415, #1302, #1413 and #1419 are test, CI and dev tooling and need no line. The teams bridge (#1416) ships alone in this release so teams (#1417) can follow in the next one with a release to roll back to that reads its data closed. ## Look at - **The entry**, at the top of `releases` in `packages/core/src/whatsNew.ts`. - **Rollback safety, from the live commit `7f93b91` (release 41) to this PR's merge.** No PR in the range is labelled `one-way`, and every Release impact answer says release 41 still works: - **#1217** adds migration `0037_feedback`, a schema release 41 never reads. **#1227** and **#1228** write into it. - **#1276** adds migration `0038_single_key_shortcuts`, a column with a default that release 41 never selects. - **#1416** adds migrations `0039_company_teams` to `0041_connection_audiences`, which hold tables that stay empty until teams ship, and widens one scope check. Its CI rehearsal ran `7f93b91 → head → 7f93b91 → head` on one set of data, and all four steps passed. - **#1279**, **#1301**, **#1255** and **#1420** change the SDK and the shell. Patches built on this release carry a `shortcutSetting` manifest field that release 41 reads without refusing, and its shell names no frame, so every shortcut stays on. - **#1218** and **#1219** add CLI commands and an optional `feedbackHint` in `--json` failures. A CLI from this release refuses to publish to an older instance before sending anything, as any mismatched release does. - Everything else is skill text, docs, tests and CI. If this release misbehaves, roll back to `7f93b91` (release 41). Written by Claude Opus 5.5 in Claude Code, through T3 Code. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
What changed
A tier 1 test of the shortcuts sheet failed on CI now and then: "the sheet's row asks Patchy, waits past the reply deadline, then comes back on its row with the answer", in
test/browser-tier1/hotkeys.spec.ts. It failed on #1412'sbrowserjob, which doesn't touch the sheet or its stand-in shell:The sheet asks over a
MessagePort, so the stand-in shell records the ask when the message arrives. That can be after the sheet has hidden. The test read the stand-in's list once, straight aftertoBeHidden(). Now it polls the list until the ask is there.No issue was filed for it. It's a test-only fix.
Look at
The change at
hotkeys.spec.ts:1673. The assertion is the same; it now waits for the message instead of racing it.How it was verified
Locally, in the repo's config (headless shell), running only this test:
oxlintandbun fmt --checkare clean on the file. CI runs the rest.Hit every surface: none apply. It's a test-only change.
Release impact
Tick exactly one.
Breaking — requires action from anyone already running this
Not breaking — no action required. Test only.
What does a revert leave behind? Nothing; the test goes back to racing the message.
Does the release before it still work with that? Yes.
Built by Claude Opus 5.5 (
claude-opus-5-5) in Claude Code, through T3 Code.