mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-09 14:25:25 -05:00
- Resolves #10444 Sometimes, the order of nodes and/or links isn't consistent between frontend and backend, which currently can result in unnecessary re-saving of the graph when the user tries to run it. Also, `sub_graphs` was not included in the frontend `Graph` type, which can cause unchecked code issues when the object is propragated using spread operators. ### Changes 🏗️ - fix(frontend/builder): Make `graphsEquivalent` insensitive to link and node order - dx(frontend): Fix typing of `Graph.sub_graphs` (and its variants) ### Checklist 📋 #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: - Import an agent and open it in the builder - Run it without making any changes to the graph itself - [x] -> graph shouldn't re-save