mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #1707] [MERGED] [codex] Fix agent Save & close failure handling #5223
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#5223
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1707
Author: @Xelvanis
Created: 5/31/2026
Status: ✅ Merged
Merged: 5/31/2026
Merged by: @Xelvanis
Base:
refactor← Head:codex/1703-agent-save-close-failure📝 Commits (3)
33a97f1Fix agent save close failure handlingf68079cFix agent save close failure handling4ad84d8Clarify agent save close retry test📊 Changes
2 files changed (+101 additions, -16 deletions)
View changed files
📝
src/features/catalog/agents/components/AgentEditor.test.tsx(+94 -12)📝
src/features/catalog/agents/components/AgentEditor.tsx(+7 -4)📄 Description
Linked issue
Closes #1703
Why this change
Save & closepath closed the detail view even when the async agent save failed, hiding the user's unsaved edits after showing the save failure.What changed
AgentEditorsave handling to return a success boolean after persistence completes.Save & closeaction so it only closes after a successful save.Refactor impact
Primary owner:
src/features/catalog/agents).Impact areas reviewed:
Boundary notes:
Pressure points touched:
Validation
pnpm checkpasses locallypnpm typecheckpasses locallypnpm buildpasses locallypnpm check:architecturepasses locallypnpm check:docspasses locallycargo check --manifest-path src-tauri/Cargo.toml --workspacepasses locallyManual verification notes
updateAgent.mutateAsynccausedagentDetailIdto becomenull.pnpm exec vitest run src/features/catalog/agents/components/AgentEditor.test.tsx.pnpm typecheck.pnpm smokewithME_REFACTOR_ROOTpointed at this checkout; it built the debug Tauri app, opened the native WebView2 window, and verified React mounted. The mocked failed-save path is covered by the regression test, not by the native smoke.pnpm buildalso ran as part of the native Tauri smoke build path.Docs and release impact
README.mdCONTRIBUTING.mddocs/developer/AGENTS.mdNotes:
CHANGELOG.mdexists in this checkout.UI evidence
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.