Skip to content

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

chore(openhuman-app): remove push-to-talk and dictation hotkey support

Steven Enamakelc5ef85fdb86c
diff --git a/crates/openhuman-app/Cargo.toml b/crates/openhuman-app/Cargo.toml
index 41516eb53d..4f03f4e2de 100644
--- a/crates/openhuman-app/Cargo.toml
+++ b/crates/openhuman-app/Cargo.toml
@@ -108,7 +108,6 @@ tauri = { version = "2.11", default-features = false, features = [
"webview-data-url",
] }
tauri-plugin-deep-link = "2.0.0"
-tauri-plugin-global-shortcut = "2"
tauri-plugin-notification = "2"
tauri-plugin-opener = "2"
# Prevents a second launch from racing into CEF init and hitting the
diff --git a/crates/openhuman-app/Info.plist b/crates/openhuman-app/Info.plist
index e70c0aed7f..ed7e47347b 100644
--- a/crates/openhuman-app/Info.plist
+++ b/crates/openhuman-app/Info.plist
@@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>NSMicrophoneUsageDescription</key>
- <string>OpenHuman uses the microphone for voice dictation and for voice/video calls and huddles inside embedded apps (Google Meet, Discord, Slack).</string>
+ <string>OpenHuman uses the microphone for live voice features and for voice/video calls and huddles inside embedded apps (Google Meet, Discord, Slack).</string>
<key>NSCameraUsageDescription</key>
<string>OpenHuman uses the camera for video calls and huddles inside embedded apps (Google Meet, Discord, Slack).</string>
<key>NSAppleEventsUsageDescription</key>
diff --git a/crates/openhuman-app/capabilities/README.md b/crates/openhuman-app/capabilities/README.md
index 36a3d45c1f..4aa80402e2 100644
--- a/crates/openhuman-app/capabilities/README.md
+++ b/crates/openhuman-app/capabilities/README.md
@@ -6,13 +6,13 @@ it up at build time ([`build.rs`](../build.rs) reruns when the directory changes
## default.json
-The `default` capability applies to the `main` and `overlay` windows on Linux,
+The `default` capability applies to the `main` window on Linux,
macOS and Windows. It grants:
| Permission | What it allows |
| --- | --- |
| `core:default`, `core:event:default`, `core:window:default` | Tauri's core defaults for windows and events. |
-| `core:window:allow-hide`, `allow-show`, `allow-set-focus`, `allow-unminimize`, `allow-start-dragging`, `allow-minimize`, `allow-toggle-maximize`, `allow-set-always-on-top` | Window controls the custom titlebar and overlays call from the renderer. |
+| `core:window:allow-hide`, `allow-show`, `allow-set-focus`, `allow-unminimize`, `allow-start-dragging`, `allow-minimize`, `allow-toggle-maximize`, `allow-set-always-on-top` | Window controls used by the custom titlebar. |
| `deep-link:default` | `openhuman://` deep-link events. |
| `notification:default`, `allow-is-permission-granted`, `allow-request-permission`, `allow-notify` | The notification plugin. On macOS the app's own `native_notifications` commands give the real permission state; see [`../src/native_notifications/`](../src/native_notifications/README.md). |
| `opener:default`, `opener:allow-reveal-item-in-dir` | Opening files and revealing them in the file manager. |
@@ -28,10 +28,6 @@ The `$schema` field points at `../gen/schemas/desktop-schema.json`, which
- Granting a permission here does nothing for a command that no permission
file lists. App commands are ACL-checked, so a new command needs an entry in
[`permissions/`](../permissions/) as well as in `generate_handler!`.
-- The `overlay` label is listed, but no window uses it. The push-to-talk
- overlay that `ptt_overlay.rs` creates is labeled `ptt-overlay`, which this
- capability does not cover, so that window gets no permissions (event
- permissions included).
- Widen the `opener:allow-open-url` scope by adding an entry, not by switching
to an unscoped permission. Ordinary `http(s)` links from the main webview
are handled by `external_navigation.rs`, which opens them in the default
diff --git a/crates/openhuman-app/capabilities/default.json b/crates/openhuman-app/capabilities/default.json
index 5620e17aa7..dc05614600 100644
--- a/crates/openhuman-app/capabilities/default.json
+++ b/crates/openhuman-app/capabilities/default.json
@@ -1,9 +1,9 @@
{
"$schema": "../gen/schemas/desktop-schema.json",
"identifier": "default",
- "description": "Capability for the main and overlay windows (desktop only)",
+ "description": "Capability for the main window (desktop only)",
"platforms": ["linux", "macOS", "windows"],
- "windows": ["main", "overlay"],
+ "windows": ["main"],
"permissions": [
"core:default",
"core:window:default",
diff --git a/crates/openhuman-app/permissions/README.md b/crates/openhuman-app/permissions/README.md
index c6592829fa..9577b52972 100644
--- a/crates/openhuman-app/permissions/README.md
+++ b/crates/openhuman-app/permissions/README.md
@@ -31,7 +31,7 @@ RuntimeAuthority::resolve_access
| File | Identifier | Commands |
| --- | --- | --- |
-| [`allow-core-process.toml`](allow-core-process.toml) | `allow-core-process` | Core endpoint and lifecycle (`core_rpc_*`, `relay_http_rpc`, `relay_remote_socket`, `start_core_process`, `restart_core_process`, `reset_local_data`), app control (`restart_app`, `app_quit`), session (`get_active_user_id`, `auth_*`), dictation and push-to-talk hotkeys, `show_ptt_overlay`, `activate_main_window`, notch window, native notifications, and log folder commands. |
+| [`allow-core-process.toml`](allow-core-process.toml) | `allow-core-process` | Core endpoint and lifecycle (`core_rpc_*`, `relay_http_rpc`, `relay_remote_socket`, `start_core_process`, `restart_core_process`, `reset_local_data`), app control (`restart_app`, `app_quit`), session (`get_active_user_id`, `auth_*`), notch window, native notifications, and log folder commands. |
| [`allow-app-update.toml`](allow-app-update.toml) | `allow-app-update` | `check_app_update`, `apply_app_update`, `download_app_update`, `install_app_update`. |
| [`allow-workspace-files.toml`](allow-workspace-files.toml) | `allow-workspace-files` | `open_workspace_path`, `reveal_workspace_path`, `preview_workspace_text`. |
| [`allow-artifact-download.toml`](allow-artifact-download.toml) | `allow-artifact-download` | `download_artifact_to_downloads`, `save_artifact_as`. |
@@ -57,7 +57,7 @@ Registered commands that no permission lists, so the webview cannot call them:
`mcp_open_client_config`, `claude_code_login_launch`, `mascot_window_show`,
`mascot_window_hide`, `set_titlebar_for_sidebar`, `recover_port_conflict`,
`force_quit_port_owner`, `check_core_update`, `apply_core_update`,
-`process_diagnostics_list_owned`, `overlay_parent_rpc_url`.
+`process_diagnostics_list_owned`.
Listed commands that are no longer registered, which are harmless but stale:
`service_install_direct`, `service_start_direct`, `service_stop_direct`,
diff --git a/crates/openhuman-app/permissions/allow-core-process.toml b/crates/openhuman-app/permissions/allow-core-process.toml
index cd9ec1c0dc..4a1a0a20d4 100644
--- a/crates/openhuman-app/permissions/allow-core-process.toml
+++ b/crates/openhuman-app/permissions/allow-core-process.toml
@@ -64,9 +64,6 @@ allow = [
# restart-driven flips, causing a false re-flip and restart loop on
# every login. (#900)
"get_active_user_id",
- # The renderer RPC URL handed to a child overlay webview that was spawned
- # with `OPENHUMAN_CORE_RPC_URL` (falls back to `None` when unset).
- "overlay_parent_rpc_url",
# =========================
# GATEWAYS
@@ -122,27 +119,9 @@ allow = [
"auth_state",
"auth_current_user",
- # =========================
- # DICTATION
- # =========================
- "register_dictation_hotkey",
- "unregister_dictation_hotkey",
-
- # =========================
- # PUSH-TO-TALK (PTT)
- # =========================
- # Voice settings panel registers/unregisters the global PTT hotkey and shows
- # the PTT overlay via these invokes. Without these allow entries the invoke
- # is rejected with "Command <name> not allowed by ACL" and PTT (plus the
- # always-on listening flow that depends on hotkey registration) never works.
- "register_ptt_hotkey",
- "unregister_ptt_hotkey",
- "show_ptt_overlay",
-
# =========================
# WINDOW / UI
# =========================
- "activate_main_window",
# RootShellLayout keeps the native titlebar in sync with the sidebar.
"set_titlebar_for_sidebar",
# Floating mascot window (native NSPanel on macOS; errors elsewhere).