mirror of
https://github.com/openswarm-ai/openswarm.git
synced 2026-10-01 22:14:51 +02:00
[eric] dashboard: optimistic browser tether so the attach arrow is instant on spawn
This commit is contained in:
@@ -1553,6 +1553,10 @@ const dashboardLayoutSlice = createSlice({
|
||||
delete state.cards[draftId];
|
||||
state.cards[session.id] = { ...card, session_id: session.id, zOrder: state.nextZOrder++ };
|
||||
}
|
||||
// Carry an optimistic browser tether from the draft id to the real session id, in place (no flicker, no stale draft endpoint).
|
||||
for (const entry of Object.values(state.glowingBrowserCards)) {
|
||||
if (entry.sourceId === draftId) entry.sourceId = session.id;
|
||||
}
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user