mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #1703] [Issue]: Agent Save & close closes after failed save #844
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#844
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cha1latte on GitHub (May 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/1703
Originally assigned to: @Xelvanis on GitHub.
Summary
The Agent editor's "Save & close" path closes the editor even when the async save fails. This hides the user's unsaved edits immediately after showing the save failure state.
Expected behavior
If the agent save fails, the editor should stay open with the user's unsaved edits visible and a clear error message.
Actual behavior
handleSavecatches the failedupdateAgent.mutateAsynccall and setssaveError, but the "Save & close" click handler callscloseAgentDetail()afterward anyway. That unmounts the editor despite the failed save.Steps to reproduce
updateAgent.mutateAsyncfails.Impact area
Environment
upstream/refactorat9f5ec8c4Logs, screenshots, or video
Scout proof was captured locally in the scout worktree, not attached to this issue:
C:\tmp\ME-refactor-scout-b3-save-close-20260531\scratch\save-close-agent-editor-failure-repro.mjsC:\tmp\ME-refactor-scout-b3-save-close-20260531\scratch\save-close-agent-editor-failure-repro.jsonThe repro recorded these events:
updateAgent.mutateAsync,setSaveError:simulated storage write failure, and thencloseAgentDetail. The scout also included a negative control showingToolEditordoes not close on the same simulated failure.Regression notes
Not specified.
Additional context
Suspected owner file:
src/features/catalog/agents/components/AgentEditor.tsxThis is related to #1701, but it is a separate agent-editor owner path rather than the preset editor.
Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: