Skip to content

Commit c63cb3d

Browse files
committed
🐛 Bugfix: When creating a new Agent, the user is not prompted to save it before debugging
🐛 Bugfix: Agent modification of unsaved prompts can bypass information verification 🐛 Bugfix: When an Agent is selected and another Agent is imported, it will prompt that there are modifications 🐛 Bugfix: Creating agents will inherit tool parameters wrongly from previous selected agent
1 parent 5182770 commit c63cb3d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

frontend/app/[locale]/agents/components/AgentSetupOrchestrator.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -501,11 +501,8 @@ export default function AgentSetupOrchestrator({
501501
const confirmOrRun = useCallback(
502502
(action: PendingAction) => {
503503
// In creation mode, always show save confirmation dialog when clicking debug
504-
if (isCreatingNewAgent && !isEditingAgent) {
505-
setPendingAction(() => action);
506-
setConfirmContext("switch");
507-
setIsSaveConfirmOpen(true);
508-
} else if (hasUnsavedChanges) {
504+
// Also show when there are unsaved changes
505+
if ((isCreatingNewAgent && !isEditingAgent) || hasUnsavedChanges) {
509506
setPendingAction(() => action);
510507
setConfirmContext("switch");
511508
setIsSaveConfirmOpen(true);

0 commit comments

Comments
 (0)