Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
docs(desktop-app): explain why handoffs keeps the empty array identity (R1-L9c)
Diego Zacariasceeeab33a4ec
diff --git a/desktop-app/ui/src/lib/embedOwnership.ts b/desktop-app/ui/src/lib/embedOwnership.tsindex fbd2c6bab..e1bb2d1b8 100644--- a/desktop-app/ui/src/lib/embedOwnership.ts+++ b/desktop-app/ui/src/lib/embedOwnership.ts@@ -378,6 +378,8 @@ export function reduceEmbedOwnership(}next = advance(next, effects)next = completeHandoffs(next, effects)+ // A handoff added and completed in this same reduce leaves a fresh empty array;+ // keeping the old one lets reuseIfUnchanged return `previous` when nothing else moved.if (next.handoffs.length === 0 && state.handoffs.length === 0) {next = next.handoffs === state.handoffs ? next : { ...next, handoffs: state.handoffs }}