feat(sandbox): resume JJ sandboxes at persisted WIP revisions - #84
Draft
MingweiSamuel wants to merge 1 commit into
Draft
feat(sandbox): resume JJ sandboxes at persisted WIP revisions#84MingweiSamuel wants to merge 1 commit into
MingweiSamuel wants to merge 1 commit into
Conversation
Deploying infinity with
|
| Latest commit: |
0ee7ec4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5a76829e.infinity-dc7.pages.dev |
| Branch Preview URL: | https://sandbox-1e0800f7-f9f8-4200-a.infinity-dc7.pages.dev |
MingweiSamuel
added a commit
that referenced
this pull request
Jul 24, 2026
Persist the absolute JJ working-copy change ID after successful sandbox pushes and use it to initialize a replacement workspace after suspension, rather than recreating from immutable starting provenance or depending on the sandbox bookmark. The existing `starting_revision` remains the fallback for legacy state without a resume revision. Add an end-to-end local JJ restart test: it moves the actual temporary workspace with `jj split`, deletes that workspace and the visible bookmark, gracefully shuts down the RAP server, then starts a fresh server and verifies it restores both the WIP file and exact change ID. Add shutdown-capable test-server support so the test proves restoration is not served from an in-memory backend cache. Update provider/backend push interfaces to return an optional durable WIP revision; Git retains its current behavior and does not yet record one. Co-authored-by: Infinity 🤖 <infinity@hydro.run> PR: #84
MingweiSamuel
force-pushed
the
sandbox-1e0800f7-f9f8-4200-a376-b5b86fb9bdba
branch
from
July 24, 2026 22:51
daf84af to
1db59a3
Compare
Persist the absolute JJ working-copy change ID after successful sandbox pushes and use it to initialize a replacement workspace after suspension, rather than recreating from immutable starting provenance or depending on the sandbox bookmark. The existing `starting_revision` remains the fallback for legacy state without a resume revision. Add an end-to-end local JJ restart test: it moves the actual temporary workspace with `jj split`, deletes that workspace and the visible bookmark, gracefully shuts down the RAP server, then starts a fresh server and verifies it restores both the WIP file and exact change ID. Add shutdown-capable test-server support so the test proves restoration is not served from an in-memory backend cache. Update provider/backend push interfaces to return an optional durable WIP revision; Git retains its current behavior and does not yet record one. Co-authored-by: Infinity 🤖 <infinity@hydro.run> PR: #84
MingweiSamuel
force-pushed
the
sandbox-1e0800f7-f9f8-4200-a376-b5b86fb9bdba
branch
from
July 24, 2026 22:52
1db59a3 to
0ee7ec4
Compare
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.
Persist the absolute JJ working-copy change ID after successful sandbox pushes and use it to initialize a replacement workspace after suspension, rather than recreating from immutable starting provenance or depending on the sandbox bookmark. The existing
starting_revisionremains the fallback for legacy state without a resume revision.Add an end-to-end local JJ restart test: it moves the actual temporary workspace with
jj split, deletes that workspace and the visible bookmark, gracefully shuts down the RAP server, then starts a fresh server and verifies it restores both the WIP file and exact change ID. Add shutdown-capable test-server support so the test proves restoration is not served from an in-memory backend cache. Update provider/backend push interfaces to return an optional durable WIP revision; Git retains its current behavior and does not yet record one.