groove-dev 0.26.23 → 0.26.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <link rel="icon" type="image/png" href="/favicon.png" />
7
7
  <title>Groove GUI</title>
8
- <script type="module" crossorigin src="/assets/index-Ebz1No43.js"></script>
8
+ <script type="module" crossorigin src="/assets/index-OBctC7ty.js"></script>
9
9
  <link rel="modulepreload" crossorigin href="/assets/vendor-C0HXlhrU.js">
10
10
  <link rel="modulepreload" crossorigin href="/assets/reactflow-BQPfi37R.js">
11
11
  <link rel="modulepreload" crossorigin href="/assets/codemirror-BBL3i_JW.js">
@@ -223,7 +223,7 @@ function AgentTreeInner() {
223
223
  // First pass: place agents with saved positions
224
224
  const pending = [];
225
225
  agents.forEach((agent, i) => {
226
- const key = agent.name || agent.id;
226
+ const key = agent.id;
227
227
  if (saved[key]) {
228
228
  const pos = saved[key];
229
229
  occupied.add(posKey(pos.x, pos.y));
@@ -267,7 +267,7 @@ function AgentTreeInner() {
267
267
  const rootPos = saved[ROOT_ID] || { x: 0, y: 0 };
268
268
 
269
269
  return agents.map((agent, i) => {
270
- const key = agent.name || agent.id;
270
+ const key = agent.id;
271
271
  const row = Math.floor(i / MAX_PER_ROW);
272
272
  const col = i % MAX_PER_ROW;
273
273
  const totalInRow = Math.min(agents.length - row * MAX_PER_ROW, MAX_PER_ROW);
@@ -376,7 +376,7 @@ function AgentTreeInner() {
376
376
 
377
377
  const onNodeDragStop = useCallback((_e, node) => {
378
378
  const agent = agents.find((a) => a.id === node.id);
379
- const key = node.id === ROOT_ID ? ROOT_ID : (agent?.name || node.id);
379
+ const key = node.id === ROOT_ID ? ROOT_ID : node.id;
380
380
  const saved = loadPositions();
381
381
  saved[key] = node.position;
382
382
  savePositions(saved);