Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(overlay): prevent duplicate proactive thread pins on reconnection

Steven Enamakela2901c176cac
diff --git a/app/src/features/daemon/store.ts b/app/src/features/daemon/store.ts
index 5a0bb3e954..3136d0335b 100644
--- a/app/src/features/daemon/store.ts
+++ b/app/src/features/daemon/store.ts
@@ -24,7 +24,6 @@ interface DaemonUserState {
components: {
gateway?: ComponentHealth;
channels?: ComponentHealth;
- heartbeat?: ComponentHealth;
scheduler?: ComponentHealth;
};
lastHealthUpdate: string | null;
diff --git a/app/src/overlay/OverlayApp.tsx b/app/src/overlay/OverlayApp.tsx
index d7daf51d0a..df4a2f36cc 100644
--- a/app/src/overlay/OverlayApp.tsx
+++ b/app/src/overlay/OverlayApp.tsx
@@ -15,8 +15,8 @@
* overlay into STT mode; "released" (or the final transcription)
* dismisses it.
*
- * 2. **Attention message** — when the core (subconscious loop, heartbeat,
- * …) publishes an `OverlayAttentionEvent` via
+ * 2. **Attention message** — when the core (a scheduled cron job, a
+ * proactive notification, …) publishes an `OverlayAttentionEvent` via
* `openhuman::overlay::publish_attention(...)`. The bridge in
* `core::socketio` forwards this as an `overlay:attention` event.
* The bubble auto-dismisses after its ttl.
@@ -252,7 +252,7 @@ export default function OverlayApp() {
[scheduleDismiss]
);
- // ── Attention from subconscious / core ─────────────────────────────────
+ // ── Attention from the core ─────────────────────────────────────────────
const handleAttention = useCallback(
(payload: OverlayAttentionPayload) => {
const message = payload?.message?.trim();
diff --git a/app/src/providers/ChatRuntimeProvider.tsx b/app/src/providers/ChatRuntimeProvider.tsx
index 8114b4a596..78aaf9cf2a 100644
--- a/app/src/providers/ChatRuntimeProvider.tsx
+++ b/app/src/providers/ChatRuntimeProvider.tsx
@@ -536,7 +536,7 @@ const ChatRuntimeProvider = ({ children }: { children: React.ReactNode }) => {
}
// Reuse an existing thread for proactive delivery ONLY when it is
- // fresh (no messages). Injecting a morning brief / subconscious
+ // fresh (no messages). Injecting a morning brief / scheduled-job
// update into a thread that already holds a conversation interrupts
// the active chat flow (#3713). Candidate priority is selected >
// first thread; if the candidate already has messages we fall
diff --git a/app/src/providers/__tests__/ChatRuntimeProvider.test.tsx b/app/src/providers/__tests__/ChatRuntimeProvider.test.tsx
index 76394fd1ed..12ac83d244 100644
--- a/app/src/providers/__tests__/ChatRuntimeProvider.test.tsx
+++ b/app/src/providers/__tests__/ChatRuntimeProvider.test.tsx
@@ -941,7 +941,7 @@ describe('ChatRuntimeProvider — dedupe, proactive resolution, mid-turn invaria
});
// The user is mid-conversation: the selected thread already holds
- // messages, so a proactive morning brief / subconscious update must
+ // messages, so a proactive morning brief / scheduled-job update must
// NOT be injected into it.
store.dispatch(
loadThreads.fulfilled(
diff --git a/app/src/providers/proactiveThreadPins.ts b/app/src/providers/proactiveThreadPins.ts
index 6111c0a0a7..5355330026 100644
--- a/app/src/providers/proactiveThreadPins.ts
+++ b/app/src/providers/proactiveThreadPins.ts
@@ -25,7 +25,7 @@ export const PROACTIVE_VOICE_THREAD_ID = 'proactive:voice';
/**
* Whether a `proactive:` id names an ongoing *conversation surface* — many
* sequential turns that all belong to a single chat — rather than a one-shot
- * interruption (morning brief, subconscious update, worker handoff). A
+ * interruption (morning brief, scheduled-job update, worker handoff). A
* conversation surface pins the visible thread it first resolves to and reuses
* it for the session; a one-shot keeps the fresh-or-create behaviour so it never
* lands in the user's active chat (#3713). Today only realtime voice qualifies.
diff --git a/app/src/utils/tauriCommands/taskSources.test.ts b/app/src/utils/tauriCommands/taskSources.test.ts
index d9edb75239..e753b1b847 100644
--- a/app/src/utils/tauriCommands/taskSources.test.ts
+++ b/app/src/utils/tauriCommands/taskSources.test.ts
@@ -2,8 +2,7 @@
* Vitest for the task-sources tauriCommands surface.
*
* Covers each `openhuman.task_sources_*` RPC wrapper plus the
- * `isTauri()` guard. Mirrors the mocking pattern in
- * `subconscious.test.ts` — validates the wrappers against the
+ * `isTauri()` guard. Validates the wrappers against the
* `callCoreRpc` contract without a real Tauri runtime.
*/
import { afterEach, beforeEach, describe, expect, type Mock, test, vi } from 'vitest';