Repository navigation
Keep Images refreshing a job that reaches approval before the submit reply - #266
Merged
Merged
Conversation
…reply The Images live-update subscription depended on the expanded job id. Submitting a job sets that id, so React tore the subscription down and cleared its pending 100 ms refresh. When main took the new job from queued to waiting-for-approval before React committed that render, every change event had already been folded into the cleared refresh. No further event comes while a job waits for approval, so the list kept the "queued" it read right after submitting, and the open transcript kept the previous job's items with no Approve button, until the window regained focus. The job queue is not involved. The two failing CI runs (38856460357 for #255 and 38850091541 for #263) show the same snapshot: the revision job "queued" with the first job's transcript, "Decision: yes", under it. A stale transcript means no refresh fired after the job id changed in the 15 s wait. Their traces show the first job succeeding about 110 ms after Approve and the revision click 250 ms later, so CI was not slow. Probe logs locally: the effect re-ran 7-33 ms after the submit, and main reached approval 90-330 ms after it because each store write fsyncs on a busy disk. With fsync stubbed in main, as on a fast CI disk, main reached approval in 5-9 ms, before React's effect at 11-16 ms. The existing spec then failed 8 of 10 runs with the CI snapshot. With this change it passed 10 of 10. The subscription now lives for as long as Images is shown. It reads the current refresh and job id from refs when it fires. Submitting points it at the new job immediately and clears the old transcript. Showing Images again reloads the open job's transcript, because events are not observed while it is hidden. New e2e test: it pauses the renderer through CDP right after it sends the submission and resumes once jobs.json says waiting-for-approval. The new job's Approve button must then appear without reopening Execution details. It failed 3 of 3 runs before the change and passes after it. Coven-Harness: Claude Code / claude-opus-5-5
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Oct 16, 2026
BunsDev
added a commit
that referenced
this pull request
Oct 19, 2026
… and the routines spec (#310) v0.2.0 was published on 2026-10-18 (23:14Z) from the signed tag on 01b1b8a. This follows Val's status layout (#290): - Shipped gains a v0.2.0 row linking its release and its review. - The 13 "On main, unreleased" items move unchanged to a new "Status summary" at the end of the v0.2.0 review, along with the old In flight entry. Each one was introduced by a commit in the tag (#248, #253, #254, #257 to #261, #263, #264, #266, #267, #269). The CF slices and #283's Markdown parser came after the tag, so they stay. - In flight keeps a short follow-ups entry for the gates no receipt records yet: the independent download checks, the banner upgrade on the release Mac, and the Companion 0.2.0 (7) TestFlight upload. - The routines spec and the README now say Phase 1, and most of Phase 0, ship from v0.2.0. Unchanged: the website's static fallback (apps/site/release.json) and the release evidence, which stay with the release owner. Claimed on #290. Coven-Harness: Claude Code / claude-opus-5-5
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes the
images-plugins.spec.ts:91flake ("Plugins binds an offline image skill…"). It failed at line 151 in CI runs 38856460357 (#255) and 38850091541 (#263).Cause
This is a product bug in the Images renderer. The job queue is fine.
ImagesView's live-update effect depended onjobId, andsubmit()setsjobIdto the new job. React therefore tore down the subscription and cleared its pending 100 ms refresh. If main took the job from queued to waiting-for-approval before React committed that render, every change event had already been folded into the cleared refresh. A job waiting for approval sends no further events. The list kept the "queued" it had read right after submitting, and the open transcript kept the previous job's items, with no Approve button. Only a window focus change recovered it.Evidence
jobIdchanged during the 15 s wait. The traces show CI was not slow: job 1 succeeded about 110 ms after Approve, and Generate revision was clicked about 250 ms later.fs.fsyncSyncin main to mimic a fast CI disk. Main then reached approval in 5–9 ms, ahead of React's effect at 11–16 ms. The existing spec failed in 8 of 10 runs with the exact CI snapshot. With this change it passed 10 of 10.Change
[active]). When it fires, it reads the currentrefreshandjobIdfrom refs.debugger). It resumes oncejobs.jsonsays waiting-for-approval. The new job's Approve must then appear without reopening Execution details. It failed 3 of 3 runs before the fix and passes after.docs/status.md: one bullet under "On main, unreleased".Tests
pnpm build && pnpm test: all packages pass (desktop: 1428 pass, 16 skipped, 0 fail).playwright test e2e/images-plugins.spec.ts --repeat-each 5: 35 passed.playwright test: 312 passed, 3 skipped.Coven-Harness: Claude Code / claude-opus-5-5