Repository navigation
GEN-2156: Preserve pending mutation UI and reliably reconcile server state - #203
Merged
Merged
Conversation
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.
Job and settings mutations now show immediate progress, retain pending state across polling rerenders, and block duplicate submissions. Both Run paths share a retained idempotency key, preserve failed prompt drafts, show an explicitly unaccepted pending request, and navigate only after receiving the canonical run ID.
Enable and stop acknowledge their mutation responses immediately. Generation guards discard older reads, and polling queues reconciliation requested while busy. Irreversible settings actions retain items until confirmation; token creation retains server-issued secrets when follow-up reads fail. Kill is available only for starting/running/blocked, matching the existing API, and retains run history without claiming immediate termination.
Scheduler wake remains awaited. No API operations or contracts were added. Rebased on current main, preserving #201 split Run and #202 trace activity changes.
Validation:
npm run check --workspace=factorizepassed (333 tests passed, 38 skipped; generated OpenAPI, API boundaries, auth-email checks, TypeScript, Wrangler dry run). Delayed browser tests cover rerenders, older reads, uncertain responses, idempotent retry, stop states, deletion, token/client/integration actions, and confirmed connection tests. Controlled enable timings: feedback 800→0 ms and confirmation 800→600 ms; injected request/wake delays remain 600/400 ms in both versions. These are synthetic timings, not production latency claims. Details: docs/gen-2156-validation.md.Linear: https://linear.app/generation/issue/GEN-2156/improve-mutation-responsiveness-with-persistent-pending-ui-idempotent