Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

docs(desktop-app): r1-l13 correct the reducer's unchanged-state contract

Diego Zacariasa1c612a6f2c9
diff --git a/desktop-app/ui/src/lib/embedOwnership.ts b/desktop-app/ui/src/lib/embedOwnership.ts
index 8b4d67f4f..064efcd52 100644
--- a/desktop-app/ui/src/lib/embedOwnership.ts
+++ b/desktop-app/ui/src/lib/embedOwnership.ts
@@ -13,9 +13,12 @@ import type {
} from './embedOwnership.types'
/**
- * Who owns the embedded app view — pure algebra, same contract as
- * `workspaceTabs.ts`: `(state, event) → { state, effects }`, no I/O, no clocks, no
- * id generation, and an unchanged state is returned by reference with `[]`.
+ * Who owns the embedded app view — pure algebra like `workspaceTabs.ts` (no I/O,
+ * no clocks, no id generation), shaped as `(state, event) → { state, effects }`.
+ * A transition that changes no field returns the input state by reference. Its
+ * effects are `[]` unless the event still has something to report: a launch it
+ * abandons (`launchSettled`), a handoff with no view to wait for
+ * (`handoffReady`), or the owner's new title (`setTitle`).
*
* Main is the only authority on which view exists; the tab store is the only
* authority on which tab is active (it arrives here as `projected`). This reducer