Skip to content

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

chore(ptt): remove push-to-talk overlay and chat send fields

Steven Enamakel21bee9e861c9
diff --git a/app/src/AppRoutes.auth.test.tsx b/app/src/AppRoutes.auth.test.tsx
index 8e3f4cf02f..934b5a6cc7 100644
--- a/app/src/AppRoutes.auth.test.tsx
+++ b/app/src/AppRoutes.auth.test.tsx
@@ -30,7 +30,6 @@ vi.mock('./pages/dev/UiGallery', () => ({ default: () => <div /> }));
vi.mock('./pages/Invites', () => ({ default: () => <div /> }));
vi.mock('./pages/Notifications', () => ({ default: () => <div /> }));
vi.mock('./pages/onboarding/Onboarding', () => ({ default: () => <div /> }));
-vi.mock('./pages/PttOverlayPage', () => ({ PttOverlayPage: () => <div /> }));
vi.mock('./pages/Settings', () => ({ default: () => <div /> }));
vi.mock('./pages/Skills', () => ({ default: () => <div /> }));
vi.mock('./pages/Welcome', () => ({ default: () => <div /> }));
diff --git a/app/src/AppRoutes.connections-flows.test.tsx b/app/src/AppRoutes.connections-flows.test.tsx
index 00f997a413..ca1c754e6d 100644
--- a/app/src/AppRoutes.connections-flows.test.tsx
+++ b/app/src/AppRoutes.connections-flows.test.tsx
@@ -40,7 +40,6 @@ vi.mock('./pages/dev/UiGallery', () => ({ default: () => <div /> }));
vi.mock('./pages/Invites', () => ({ default: () => <div /> }));
vi.mock('./pages/Notifications', () => ({ default: () => <div /> }));
vi.mock('./pages/onboarding/Onboarding', () => ({ default: () => <div /> }));
-vi.mock('./pages/PttOverlayPage', () => ({ PttOverlayPage: () => <div /> }));
vi.mock('./pages/Settings', () => ({ default: () => <div /> }));
vi.mock('./pages/Welcome', () => ({ default: () => <div /> }));
vi.mock('./pages/WebCallbackPage', () => ({ default: () => <div /> }));
diff --git a/app/src/AppRoutes.guards.test.tsx b/app/src/AppRoutes.guards.test.tsx
index eb799253fc..d9bb0611ae 100644
--- a/app/src/AppRoutes.guards.test.tsx
+++ b/app/src/AppRoutes.guards.test.tsx
@@ -75,9 +75,6 @@ vi.mock('./pages/Notifications', () => ({
vi.mock('./pages/onboarding/Onboarding', () => ({
default: () => <div data-testid="page-onboarding" />,
}));
-vi.mock('./pages/PttOverlayPage', () => ({
- PttOverlayPage: () => <div data-testid="page-ptt-overlay" />,
-}));
vi.mock('./pages/Settings', () => ({ default: () => <div /> }));
vi.mock('./pages/Skills', () => ({ default: () => <div /> }));
vi.mock('./pages/Welcome', () => ({ default: () => <div data-testid="page-welcome" /> }));
@@ -103,7 +100,6 @@ const OWNED: Array<{ path: string; page: string; guard: Guard }> = [
{ path: '/onboarding/profile', page: 'page-onboarding', guard: 'protected' },
{ path: '/invites', page: 'page-invites', guard: 'protected' },
{ path: '/notifications', page: 'page-notifications', guard: 'protected' },
- { path: '/ptt-overlay', page: 'page-ptt-overlay', guard: 'none' },
{ path: '/dev/ui', page: 'page-ui-gallery', guard: 'none' },
{ path: '/dev/tools', page: 'page-tool-call-gallery', guard: 'none' },
];
@@ -201,7 +197,6 @@ describe('AppRoutes — the whole route table stays classified', () => {
'/workflows': 'protected',
'/webhooks': 'redirect',
'/settings/*': 'protected',
- '/ptt-overlay': 'none',
'/dev/agent-insights': 'none',
'/dev/ui': 'none',
'/dev/tools': 'none',
diff --git a/app/src/AppRoutes.redirects.test.tsx b/app/src/AppRoutes.redirects.test.tsx
index f48a561c60..bee549cf3d 100644
--- a/app/src/AppRoutes.redirects.test.tsx
+++ b/app/src/AppRoutes.redirects.test.tsx
@@ -43,7 +43,6 @@ vi.mock('./pages/dev/UiGallery', () => ({ default: () => <div /> }));
vi.mock('./pages/Invites', () => ({ default: () => <div /> }));
vi.mock('./pages/Notifications', () => ({ default: () => <div /> }));
vi.mock('./pages/onboarding/Onboarding', () => ({ default: () => <div /> }));
-vi.mock('./pages/PttOverlayPage', () => ({ PttOverlayPage: () => <div /> }));
vi.mock('./pages/Settings', () => ({ default: () => <div /> }));
vi.mock('./pages/Skills', () => ({ default: () => <div /> }));
vi.mock('./pages/Welcome', () => ({ default: () => <div /> }));
diff --git a/app/src/AppRoutes.skills.test.tsx b/app/src/AppRoutes.skills.test.tsx
index d15c428cfa..6fddde6f5a 100644
--- a/app/src/AppRoutes.skills.test.tsx
+++ b/app/src/AppRoutes.skills.test.tsx
@@ -30,7 +30,6 @@ vi.mock('./pages/dev/UiGallery', () => ({ default: () => <div /> }));
vi.mock('./pages/Invites', () => ({ default: () => <div /> }));
vi.mock('./pages/Notifications', () => ({ default: () => <div /> }));
vi.mock('./pages/onboarding/Onboarding', () => ({ default: () => <div /> }));
-vi.mock('./pages/PttOverlayPage', () => ({ PttOverlayPage: () => <div /> }));
vi.mock('./pages/Settings', () => ({ default: () => <div /> }));
vi.mock('./pages/Skills', () => ({ default: () => <div data-testid="skills-page" /> }));
vi.mock('./pages/Welcome', () => ({ default: () => <div /> }));
diff --git a/app/src/AppRoutes.webhooks.test.tsx b/app/src/AppRoutes.webhooks.test.tsx
index b5c13c5f36..9e7b3e4fbe 100644
--- a/app/src/AppRoutes.webhooks.test.tsx
+++ b/app/src/AppRoutes.webhooks.test.tsx
@@ -30,7 +30,6 @@ vi.mock('./pages/dev/UiGallery', () => ({ default: () => <div /> }));
vi.mock('./pages/Invites', () => ({ default: () => <div /> }));
vi.mock('./pages/Notifications', () => ({ default: () => <div /> }));
vi.mock('./pages/onboarding/Onboarding', () => ({ default: () => <div /> }));
-vi.mock('./pages/PttOverlayPage', () => ({ PttOverlayPage: () => <div /> }));
vi.mock('./pages/Settings', () => ({ default: () => <div data-testid="settings-page" /> }));
vi.mock('./pages/Skills', () => ({ default: () => <div data-testid="skills-page" /> }));
vi.mock('./pages/Welcome', () => ({ default: () => <div /> }));
diff --git a/app/src/features/conversations/Conversations.tsx b/app/src/features/conversations/Conversations.tsx
index 4d90be680a..c0a7264062 100644
--- a/app/src/features/conversations/Conversations.tsx
+++ b/app/src/features/conversations/Conversations.tsx
@@ -892,37 +892,6 @@ const Conversations = ({
}
}, [selectedThreadId, dispatch]);
- useEffect(() => {
- const onDictationInsert = (event: Event) => {
- const customEvent = event as CustomEvent<{ text?: string; autoSend?: boolean }>;
- const text = customEvent.detail?.text?.trim();
- if (!text) return;
-
- customEvent.preventDefault();
-
- // When autoSend is set (hotkey dictation), dispatch the transcript directly
- // to the agent without going through the text composer.
- if (customEvent.detail?.autoSend) {
- void handleSendMessageRef.current?.(text);
- return;
- }
-
- // A dictated draft needs a text surface where the user can inspect and
- // send it. The mic-first composer has neither, so hand it back first.
- setComposerOverride('text');
- setInputValue(prev => {
- const base = prev.trim();
- if (!base) return text;
- return `${base}${base.endsWith(' ') ? '' : ' '}${text}`;
- });
- };
-
- window.addEventListener('dictation://insert-text', onDictationInsert as EventListener);
- return () =>
- window.removeEventListener('dictation://insert-text', onDictationInsert as EventListener);
- // `setInputValue` is `useThreadDraft`'s stable setter.
- }, [setInputValue]);
-
useEffect(() => {
if (preserveSendErrorForRestoredDraftRef.current) {
preserveSendErrorForRestoredDraftRef.current = false;
diff --git a/app/src/main.tsx b/app/src/main.tsx
index 5e17e57108..1f24c88415 100644
--- a/app/src/main.tsx
+++ b/app/src/main.tsx
@@ -10,7 +10,6 @@ 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';
import { setStoreForApiClient } from './services/apiClient';
@@ -50,8 +49,7 @@ const currentWindowLabel = isMascotWindow
: tauriRuntimeAvailable()
? getCurrentWindow().label
: 'main';
-const isOverlayWindow = currentWindowLabel === 'overlay';
-const isStandaloneWindow = isOverlayWindow || isMascotWindow || isNotchWindow;
+const isStandaloneWindow = isMascotWindow || isNotchWindow;
const ensureDefaultHashRoute = () => {
const hash = window.location.hash;
@@ -103,8 +101,6 @@ function bootRender() {
<MascotWindowApp />
) : isNotchWindow ? (
<NotchApp />
- ) : isOverlayWindow ? (
- <OverlayApp />
) : (
<App />
);
diff --git a/app/src/pages/__tests__/Conversations.render.test.tsx b/app/src/pages/__tests__/Conversations.render.test.tsx
index 502947b719..6050c0f43e 100644
--- a/app/src/pages/__tests__/Conversations.render.test.tsx
+++ b/app/src/pages/__tests__/Conversations.render.test.tsx
@@ -975,46 +975,6 @@ describe('Conversations — smoke render (#1123 welcome-lock removal)', () => {
expect(vi.mocked(chatSend).mock.calls[0][0]).not.toHaveProperty('model');
});
- it('auto-sends a dictation transcript (autoSend) straight to chat without the composer', async () => {
- const { thread } = await renderSelectedConversation();
-
- // Hotkey dictation dispatches this event with autoSend:true (see
- // useDictationHotkey). Conversations must route it directly to chatSend,
- // bypassing the text composer.
- await act(async () => {
- window.dispatchEvent(
- new CustomEvent('dictation://insert-text', {
- detail: { text: ' play highway to hell ', autoSend: true },
- })
- );
- });
-
- await waitFor(() => {
- expect(chatSend).toHaveBeenCalledWith(
- expect.objectContaining({
- threadId: thread.id,
- message: 'play highway to hell',
- locale: 'en',
- reasoningEffort: 'default',
- })
- );
- expect(vi.mocked(chatSend).mock.calls[0][0]).not.toHaveProperty('model');
- });
- });
-
- it('ignores a blank autoSend dictation event (no send)', async () => {
- await renderSelectedConversation();
- vi.mocked(chatSend).mockClear();
-
- await act(async () => {
- window.dispatchEvent(
- new CustomEvent('dictation://insert-text', { detail: { text: ' ', autoSend: true } })
- );
- });
-
- expect(chatSend).not.toHaveBeenCalled();
- });
-
it('blocks duplicate sends while the first send is still pending', async () => {
let resolveSend: (() => void) | undefined;
vi.mocked(chatSend).mockImplementationOnce(
diff --git a/app/src/services/__tests__/chatService.test.ts b/app/src/services/__tests__/chatService.test.ts
index 7c8b574520..831225c636 100644
--- a/app/src/services/__tests__/chatService.test.ts
+++ b/app/src/services/__tests__/chatService.test.ts
@@ -400,40 +400,15 @@ describe('chatService.subscribeChatEvents', () => {
});
});
- it('forwards speak_reply, source, session_id when provided', async () => {
- const socket = createMockSocket();
- bindMockSocket(socket);
-
- await chatSend({
- threadId: 'thread-1',
- message: 'hello',
- speakReply: true,
- source: 'ptt',
- sessionId: 42,
- });
-
- expect(mockCallCoreRpc).toHaveBeenCalledWith(
- expect.objectContaining({
- method: 'openhuman.channel_web_chat',
- params: expect.objectContaining({
- message: 'hello',
- speak_reply: true,
- source: 'ptt',
- session_id: 42,
- }),
- })
- );
- });
-
- it('does not include the new fields when omitted', async () => {
+ it('does not include PTT-only request fields', async () => {
const socket = createMockSocket();
bindMockSocket(socket);
await chatSend({ threadId: 'thread-1', message: 'hi' });
const params = mockCallCoreRpc.mock.calls[0][0].params;
- expect(params.speak_reply).toBeUndefined();
- expect(params.source).toBeUndefined();
- expect(params.session_id).toBeUndefined();
+ expect(params).not.toHaveProperty('speak_reply');
+ expect(params).not.toHaveProperty('source');
+ expect(params).not.toHaveProperty('session_id');
});
});
diff --git a/app/src/services/chatService.ts b/app/src/services/chatService.ts
index 0afd016229..a1490ed903 100644
--- a/app/src/services/chatService.ts
+++ b/app/src/services/chatService.ts
@@ -1645,21 +1645,6 @@ interface ChatSendParams {
* working unchanged.
*/
locale?: string | null;
- /**
- * When `true`, the core will synthesize the agent reply via TTS and
- * stream audio back (push-to-talk reply flow).
- */
- speakReply?: boolean;
- /**
- * Originating input source — e.g. `'ptt'` for push-to-talk, `'keyboard'`
- * for typed input. Forwarded to the core for analytics / routing.
- */
- source?: string;
- /**
- * PTT session ID — ties the chat turn to a specific push-to-talk recording
- * session so the core can correlate audio and text events.
- */
- sessionId?: number;
/**
* Queue mode for concurrent messages. When a turn is already in
* flight: `steer` injects at the next iteration boundary, `followup`
@@ -1701,9 +1686,6 @@ export async function chatSend(params: ChatSendParams): Promise<string | undefin
message: params.message,
model_override: params.model ?? undefined,
locale: params.locale ?? undefined,
- speak_reply: params.speakReply ?? undefined,
- source: params.source ?? undefined,
- session_id: params.sessionId ?? undefined,
queue_mode: params.queueMode ?? undefined,
reasoning_effort: params.reasoningEffort ?? undefined,
},