fix: PromptManager stage save/create/delete give no visible confirmation - #6108
Merged
atomantic merged 1 commit intoSep 3, 2026
Merged
Conversation
…ion (atomantic#6022) saveStage, createStage, and confirmDeleteStage all mutated the stage and silently reloaded, with no toast telling the user the save/create/delete actually happened. createStage also never deep-linked to the stage it just created, leaving the user looking at whatever stage happened to be selected before. All three now toast success, and createStage selects the new stage by name so the URL and the visible editor point at what was just made. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
atomantic
approved these changes
Sep 3, 2026
atomantic
left a comment
Owner
There was a problem hiding this comment.
Reviewed — change is correct, focused, and covered by tests. Approving.
5 tasks
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
saveStage,createStage, andconfirmDeleteStageinPromptManager.jsxmutated the stage and silently reloaded — no toast ever confirmed the save/create/delete happened.createStagealso never selected the stage it just created, so the user was left looking at whatever stage was selected before, with no visible confirmation their new stage exists.toast.success(...);createStageadditionally callssetSelectedStage(payload.stageName)so the URL and editor deep-link to the stage just made.Test plan
client/src/pages/PromptManager.test.jsx— 53/53, including a newdescribeblock covering all three actions' feedback🤖 Generated with Claude Code