Repository navigation
fix(dialogs): keep the create dialogs open until creation succeeds - #314
Open
maxthomas95 wants to merge 2 commits into
Open
maxthomas95 wants to merge 2 commits into
maxthomas95 wants to merge 2 commits into
Conversation
The New Session and New Environment dialogs called onCreate and closed at once. A failed SSH launch, a declined Vault login or a persistence error was reported only by a toast, and everything typed was gone. A worktree created just before a failed launch was left behind. - The App handlers for creating a session and for creating or updating an environment now resolve to true or false. - Both dialogs await that result and close only on success. On failure every field stays as it was. The create buttons are disabled while a submit is pending and a second submit is ignored. - A worktree created for an attempt that then fails is removed, so a retry does not trip over the existing path. If the removal fails the dialog says where the worktree was left. Tests: the shared submit helper; the environment dialog staying open with the typed name on failure and closing on success. Full suite: 2404 passed; the two failures are the known Windows-host real-shell and PTY tests. Co-Authored-By: OpenAI Codex <noreply@openai.com>
|
This branch has not been deployed
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.


Summary
July finding C-3, still open in
docs/REVIEW_2026-11-09.md.The New Session and New Environment dialogs called
onCreateand closed immediately. A failed SSH launch, a declined Vault login or a persistence error was reported only by a toast, and everything typed was gone. A worktree created just before a failed launch was left behind.handleCreateSession,handleCreateEnvironmentandhandleUpdateEnvironmentresolve totrueorfalse. Their existing error toasts are unchanged.sessions.mdandenvironments.mddescribe the behaviour.The four paths in the session dialog that launch a session are covered: plain create, new folder, and the two clone paths.
Test plan
npx tsc --noEmitnpx eslinton touched filesnpx vitest run— 2404 passed; 2 failed, both the known Windows-host real-shell/PTY testsOut of scope
NewSessionDialog(it needs a largeelectronAPIharness; the close-on-success step is covered through the shared helper).🤖 Generated with Claude Code