[PR #5340] [CLOSED] fix(agent-flows): save current flow before switching #5414

Closed
opened 2026-06-05 15:21:17 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5340
Author: @haimingZZ
Created: 4/3/2026
Status: Closed

Base: masterHead: fix/save-flow-before-switch-haimingzz


📝 Commits (2)

  • 25c7355 fix(agent-flows): save current flow before switching
  • ff81632 Merge branch 'master' into fix/save-flow-before-switch-haimingzz

📊 Changes

2 files changed (+19 additions, -3 deletions)

View changed files

📝 frontend/src/pages/Admin/AgentBuilder/HeaderMenu/index.jsx (+3 -2)
📝 frontend/src/pages/Admin/AgentBuilder/index.jsx (+16 -1)

📄 Description

Summary

  • save the currently edited agent flow before switching to another flow from the builder dropdown
  • stop the builder from navigating away when the save fails or required flow metadata is still missing
  • keep the existing direct save button behavior unchanged while protecting the flow-switch path that was losing the active/disabled state

Testing

  • git diff --check
  • npm run lint:check -- frontend/src/pages/Admin/AgentBuilder/index.jsx frontend/src/pages/Admin/AgentBuilder/HeaderMenu/index.jsx (fails in the current workspace because frontend dependencies are not installed and eslint is unavailable)

Closes #5335.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Mintplex-Labs/anything-llm/pull/5340 **Author:** [@haimingZZ](https://github.com/haimingZZ) **Created:** 4/3/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix/save-flow-before-switch-haimingzz` --- ### 📝 Commits (2) - [`25c7355`](https://github.com/Mintplex-Labs/anything-llm/commit/25c7355bafb9ce0a7fb863b42e31bcdacf00ac86) fix(agent-flows): save current flow before switching - [`ff81632`](https://github.com/Mintplex-Labs/anything-llm/commit/ff81632a1f701f1e929981fce20339bf887e00da) Merge branch 'master' into fix/save-flow-before-switch-haimingzz ### 📊 Changes **2 files changed** (+19 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/pages/Admin/AgentBuilder/HeaderMenu/index.jsx` (+3 -2) 📝 `frontend/src/pages/Admin/AgentBuilder/index.jsx` (+16 -1) </details> ### 📄 Description ## Summary - save the currently edited agent flow before switching to another flow from the builder dropdown - stop the builder from navigating away when the save fails or required flow metadata is still missing - keep the existing direct save button behavior unchanged while protecting the flow-switch path that was losing the active/disabled state ## Testing - `git diff --check` - `npm run lint:check -- frontend/src/pages/Admin/AgentBuilder/index.jsx frontend/src/pages/Admin/AgentBuilder/HeaderMenu/index.jsx` *(fails in the current workspace because frontend dependencies are not installed and `eslint` is unavailable)* Closes #5335. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-06-05 15:21:17 -04:00
yindo closed this issue 2026-06-05 15:21:17 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#5414