Repository navigation
0.8.0: a conflict on an Inertia visit is a validation-style error, not JSON - #668
Merged
Merged
Conversation
…k with errors[<code>], never JSON
…the 0.8.0 CHANGELOG
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.
Kit 0.8.0 (minor, breaking), approved by Jasper on 2026-11-06 ("Validation-style, kit 0.8.0").
What changes
stale_write,stale_settings,deliver_stale,connection_*and the rest) now gets a redirect back witherrors[<code>]set to the code's registered message. It goes in the visit's error bag, andX-Inertia-Error-Bagis respected.stale_writecame back as raw JSON, which a plainuseFormshows as Inertia's error modal.useHttp,fetch, the API) and MCP still get the 409 JSON.useSubmitForm,httpSubmit, row autosave and the Workbench layout and reorder endpoints are unchanged.FormActions,FormCardand the Workbench now read the conflict fromform.errors:formFrame:isConflictCode()andformConflict().useFormsave handles conflicts inonError, notonHttpException.Proof
WorkspaceModelCheck, through the real kernel and exception handler:tests/fixtures/stale-write-409.json.stale_writeand withstale_settingsget a 302 back to the Referer, witherrors.<code>holding the registered message. There's no JSON and no error page.X-Inertia-Error-Bag: ticket) is respected.:form(inertia) harness now answers a 409 asonErrorwitherrors.stale_write. Every Workbench:formtest passes (12).composer test:js803/0, the component typecheck, Prettier,test:features,test:host-contract,test:phpstan-stubsand the CHANGELOG check all pass.Upgrading (also in the CHANGELOG): code that caught the stale write on a visit in
onHttpExceptionmoves toonErrorand readserrors.stale_write.Kit #558 (self-hosted fonts) is not bundled with this release.