The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor(notch): remove notch window integration
Steven Enamakel6f9ca97ecde4
diff --git a/app/src/App.tsx b/app/src/App.tsxindex 6decaa4f03..cc2861d1f0 100644--- a/app/src/App.tsx+++ b/app/src/App.tsx@@ -231,10 +231,6 @@ export function AppShellDesktop() {navigate,]);- // Sync the notch indicator to the persisted always-on listening state once- // the core is ready (once per boot). Extracted to a hook so it's testable.- useNotchBootSync(isBootstrapping);-const scrollRef = useRef<HTMLDivElement>(null);const navType = useNavigationType();diff --git a/app/src/main.tsx b/app/src/main.tsxindex 5e17e57108..1a4077d636 100644--- a/app/src/main.tsx+++ b/app/src/main.tsx@@ -9,7 +9,6 @@ import './index.css';import { installAutoHideScrollbars } from './lib/autoHideScrollbars';import { getCoreStateSnapshot } from './lib/coreState/store';import MascotWindowApp from './mascot/MascotWindowApp';-import NotchApp from './notch/NotchApp';import OverlayApp from './overlay/OverlayApp';import './polyfills';import { initGA, initSentry, startUiInteractionTracking, trackEvent } from './services/analytics';@@ -42,16 +41,13 @@ const urlWindowParam = (() => {}})();const isMascotWindow = urlWindowParam === 'mascot';-const isNotchWindow = urlWindowParam === 'notch';const currentWindowLabel = isMascotWindow? 'mascot'- : isNotchWindow- ? 'notch'- : tauriRuntimeAvailable()- ? getCurrentWindow().label- : 'main';+ : tauriRuntimeAvailable()+ ? getCurrentWindow().label+ : 'main';const isOverlayWindow = currentWindowLabel === 'overlay';-const isStandaloneWindow = isOverlayWindow || isMascotWindow || isNotchWindow;+const isStandaloneWindow = isOverlayWindow || isMascotWindow;const ensureDefaultHashRoute = () => {const hash = window.location.hash;@@ -101,8 +97,6 @@ function bootRender() {const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);const tree = isMascotWindow ? (<MascotWindowApp />- ) : isNotchWindow ? (- <NotchApp />) : isOverlayWindow ? (<OverlayApp />) : (@@ -117,7 +111,7 @@ function bootRender() {// `setActiveUserId(...)` wrote in a prior session — see// `resolveActiveUserBootstrap` for the full rationale (#4545, #900).const activeUserBootstrap = resolveActiveUserBootstrap({- isStandaloneNativeWindow: isMascotWindow || isNotchWindow,+ isStandaloneNativeWindow: isMascotWindow,coreMode: getStoredCoreMode(),getActiveUserIdFromCore,});diff --git a/app/src/services/coreRpcClient.ts b/app/src/services/coreRpcClient.tsindex 9cebe0463b..8e1b722a77 100644--- a/app/src/services/coreRpcClient.ts+++ b/app/src/services/coreRpcClient.ts@@ -516,18 +516,6 @@ export async function getCoreRpcUrl(): Promise<string> {* stored token is set so existing tests remain unaffected.*/export async function getCoreRpcToken(): Promise<string | null> {- // Non-Tauri first-party webviews (the notch / overlay NSPanel WKWebViews have- // no Tauri IPC) receive the per-process bearer injected as a global by the- // Rust host. Honour it first — and not behind the resolution cache, so a late- // injection (the host injects on a timer once the core URL is ready) still wins.- const injected = (globalThis as { __OPENHUMAN_NOTCH_CORE_TOKEN__?: string })- .__OPENHUMAN_NOTCH_CORE_TOKEN__;- if (typeof injected === 'string' && injected) {- resolvedCoreRpcToken = injected;- didResolveCoreRpcToken = true;- return injected;- }-if (didResolveCoreRpcToken) return resolvedCoreRpcToken;const storedToken = getStoredCoreToken();diff --git a/app/src/utils/tauriCommands/voice.ts b/app/src/utils/tauriCommands/voice.tsindex 1f199aa459..89daa745ea 100644--- a/app/src/utils/tauriCommands/voice.ts+++ b/app/src/utils/tauriCommands/voice.ts@@ -58,7 +58,6 @@ export interface VoiceServerSettings {/** Custom vocabulary words to bias the STT engine toward (names, technical terms). */custom_dictionary: string[];/** Phase 2: continuous always-on listening (no hotkey). Opt-in. */- always_on_enabled: boolean;/** Hosted speech-to-text engine. There is no local option — the bundled* whisper.cpp engine was removed. */stt_engine: SttEngine;@@ -113,7 +112,6 @@ export async function openhumanUpdateVoiceServerSettings(update: {min_duration_secs?: number;silence_threshold?: number;custom_dictionary?: string[];- always_on_enabled?: boolean;stt_engine?: SttEngine;}): Promise<CommandResponse<ConfigSnapshot>> {return await callCoreRpc<CommandResponse<ConfigSnapshot>>({diff --git a/app/src/utils/tauriCommands/window.ts b/app/src/utils/tauriCommands/window.tsindex 8a2555356f..eaeeba71fc 100644--- a/app/src/utils/tauriCommands/window.ts+++ b/app/src/utils/tauriCommands/window.ts@@ -113,46 +113,3 @@ export async function setWindowTitle(title: string): Promise<void> {await getCurrentWindow().setTitle(title);}-/**- * Show the notch activity indicator (the transparent macOS NSPanel pill that- * surfaces live voice/agent status). No-op outside Tauri; the underlying Rust- * command is itself a no-op on non-macOS.- */-export async function notchWindowShow(): Promise<void> {- if (!isTauri()) {- return;- }- try {- await invoke('notch_window_show');- } catch (err) {- console.warn('[notch] show failed', err);- }-}--/**- * Hide (drop) the notch activity indicator.- */-export async function notchWindowHide(): Promise<void> {- if (!isTauri()) {- return;- }- try {- await invoke('notch_window_hide');- } catch (err) {- console.warn('[notch] hide failed', err);- }-}--/**- * Sync the notch indicator's visibility to the always-on listening state. The- * notch is the always-on listening HUD, so it is only shown while always-on- * listening is enabled. Called on app boot and whenever the Settings toggle- * flips so the pill never lingers once listening is turned off.- */-export async function syncNotchVisibility(alwaysOnEnabled: boolean): Promise<void> {- if (alwaysOnEnabled) {- await notchWindowShow();- } else {- await notchWindowHide();- }-}