Skip to content

fix: drive media queue and checkpoints from socket events - #8580

Merged
atomantic merged 3 commits into
mainfrom
claim/issue-8533
Sep 26, 2026
Merged

atomantic merged 3 commits into
mainfrom
claim/issue-8533

Conversation

@atomantic

@atomantic atomantic commented Sep 26, 2026 •

Copy link
Copy Markdown
Owner

The media queue and training checkpoint rows now refresh from server events instead of recurring 3-second and 5-second API reads. Queue mutations emit a bounded invalidation after persistence settles; training emits a run-scoped event after checkpoint/sample persistence. Checkpoint promotion and delayed preview writes also invalidate the affected run. Both events have declared socket contracts.

The views reuse useSocketResource for initial reads, single-flight invalidation, stale-response protection, reconnect recovery, tab-show recovery, and immediate local mutation updates.

Validation: 37 rendered client tests; 159 focused server tests; npm run pregate (353 guard tests and client lint). The component regression advances fake time past the old polling intervals, drives both events, checks run filtering, and verifies one read per reconnect/tab show.

CI also exposed an existing retention-input test race. The test now waits for the controlled clear-to-zero state before typing, preserving its saved-value assertion; all 13 tests in that suite pass. Focused checkpoint/socket validation passes 86 tests.

Refs #8533

Remaining

The other render lifecycles in #8533 remain: MusicGenPanel, useImageGenPageRuntime, useSpritePendingRenders, TrackWorkflow, WalkWorkflow, Media3D, Media3DDetail, ThreejsModelDetail, LoraDatasetDetail, CodeAnimation render jobs, and CharacterReferenceSheetPanel. This PR completes the MediaJobsQueue list and checkpoint rows only.

@atomantic
atomantic merged commit 50aa35b into main Sep 26, 2026
12 checks passed
@atomantic
atomantic deleted the claim/issue-8533 branch September 26, 2026 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant