Repository navigation
Profiles tab: keep showing a running save after switching VMs - #131
Merged
Merged
Conversation
VmDetail is keyed by the VM name, so selecting another VM and coming back mounted a fresh Profiles tab with busy = null while a save was still running. Save, Launch, Edit and Delete were enabled again and the hint said the VM was off so it would save the disk only. VmDetail now gets the work kind instead of its label and hands it to the Profiles tab. Every button waits while there is work, the Save button says Saving... for a save started before the tab was shown, and the hint says what is running. The list also reloads when work ends, since a disk-only save doesn't change the status.
A21-devs
commented
Dec 2, 2026
A21-devs
left a comment
Owner
Author
There was a problem hiding this comment.
Read the whole diff and tried the switch-and-come-back case in dev:web.
heldcovers every control that starts a profile call: the name and note fields, Save (and its Enter key path throughcanTake), Launch, Edit and Delete.- While the tab's own save runs,
busyandworkare both set, so nothing changes for the normal case. When it ends there can be a moment wherebusyis cleared before thenullwork event arrives, and the hint reads "Saving profile on Kali" for that moment. That's still true at that point, fine. - Adding
workto the load effect reloads once more when work starts. Cheap, and it's what makes a disk-only save show up.
No changes needed here. While checking whether Edit really has to wait, I found that the backend's Profiles.edit isn't exclusive and can lose a write to meta.json against a running save or delete. The UI can't reach it after this PR, so I filed it as #132 instead of growing this one.
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.
Closes #127
The Profiles tab kept its own
busystate, andVmDetailis keyed by the VM name. Selecting another VM and coming back mounted a fresh tab withbusy = nullwhile the save was still running in the backend: Save, Launch, Edit and Delete were enabled again (and failed with "is still busy with another profile"), and while the VM was off mid-save the hint said it would save the disk only.VmDetailnow gets the work kind (VmWork) from App instead of the label, works out the label itself for the status and the Hardware lock, and passes the kind to the Profiles tab.Testing
npm run typecheck,npm test(143 passed),npm run build