Skip to content

Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.

refactor(voice): remove desktop push-to-talk

Ruben Lütke0e7fa8b8af25
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 40ad91b629..234a25dfe8 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -9,6 +9,13 @@ versioning per [SemVer](https://semver.org/).
## [Unreleased]
+### Removed
+
+- **The desktop push-to-talk shortcut has been retired.** Voice Keybinds now
+ contains only Call and Hangup. Legacy push-to-talk values remain readable so
+ existing configuration files still boot, but they are no longer registered
+ or exposed through the Settings API.
+
## [1.1.2] — 2026-07-20
### Fixed
diff --git a/docs/local-wakeword/USER-GUIDE-WAKE-WORD.md b/docs/local-wakeword/USER-GUIDE-WAKE-WORD.md
index fc48253a3e..44d37c8b58 100644
--- a/docs/local-wakeword/USER-GUIDE-WAKE-WORD.md
+++ b/docs/local-wakeword/USER-GUIDE-WAKE-WORD.md
@@ -14,8 +14,8 @@ cloud. For the engineering rationale behind the detection paths, see
**Settings → Wake word** changes it any time. The desktop flow fixes the
"Hey" prefix and you type the rest ("Hey" + your word); a prefixed phrase
is what keeps the bare word in normal conversation from waking Jarvis.
- Prefer no wake word at all? The onboarding also offers the
- push-to-talk / hotkey path instead.
+ Prefer no wake word at all? The onboarding also offers activation through
+ the configurable Call shortcut instead.
2. **Terminal wizard** — `python -m jarvis --wizard` for SSH / headless
setups. Headless installs can also complete the same onboarding in the
browser UI.
@@ -39,8 +39,8 @@ Every phrase goes through the same generic chain — no word is special:
(tolerates small mishearings). Part of the full install.
4. **Honest degrade** — if none of these can serve your phrase on this
machine, the wake word stays **off** and Jarvis says so clearly. There is
- no hidden fallback word; use the hotkey / push-to-talk until a local
- engine is available.
+ no hidden fallback word; use the Call shortcut until a local engine is
+ available.
You normally never need to choose an engine by hand — leave it on `auto`.
@@ -69,5 +69,5 @@ voice start instead.
|---|---|
| Change the wake word | Settings → Wake word (or first-run onboarding) |
| Best accuracy for your word | Train/supply a custom `.onnx` (`custom_onnx`) |
-| No wake word, manual activation | Choose the push-to-talk / hotkey path |
+| No wake word, manual activation | Choose the Call-shortcut path |
| Wake word "stopped working" | Run `python -m jarvis.speech.diagnose` |
diff --git a/docs/product/everyday-use/sessions-and-run-inspector.md b/docs/product/everyday-use/sessions-and-run-inspector.md
index 1eae1a3578..d87204dc84 100644
--- a/docs/product/everyday-use/sessions-and-run-inspector.md
+++ b/docs/product/everyday-use/sessions-and-run-inspector.md
@@ -104,7 +104,7 @@ so check it carefully before sending it to anyone.
## How It Fits Together
1. **A voice request starts the record.** Wake activation, the voice control,
- or push-to-talk opens a voice session. Speech recognition supplies the text
+ or the Call shortcut opens a voice session. Speech recognition supplies the text
shown for your side of the turn.
2. **Jarvis answers or acts.** The active Brain provider may answer directly,
use a tool, request approval, create a task, or hand longer work to a
diff --git a/docs/product/everyday-use/voice-conversations.md b/docs/product/everyday-use/voice-conversations.md
index 3918eb850c..206086bde0 100644
--- a/docs/product/everyday-use/voice-conversations.md
+++ b/docs/product/everyday-use/voice-conversations.md
@@ -17,7 +17,7 @@ related: [audio-and-wake-word, languages-and-voices, sessions-and-run-inspector,
A voice conversation turns spoken audio into a useful reply or action, then
speaks the result back to you. You can start it with a wake phrase, a voice
-control in the app, or a push-to-talk shortcut.
+control in the app, or the configurable Call shortcut.
Jarvis offers two voice engines. **Pipeline** handles listening, answering, and
speaking as separate steps. **Realtime** keeps those parts in one live audio
@@ -74,7 +74,7 @@ voice setup, it can contain one turn or remain open for several.
| Conversation feel | Clear, separate stages after you finish speaking | More immediate back-and-forth and live interruption |
| Service choices | Input, assistant, and output can use separate compatible choices | Requires a compatible live voice choice |
| Speech Dictionary | Applies to the recognized request | Does not currently rewrite the live session's transcript |
-| Push-to-talk | Used for push-to-talk turns | Push-to-talk currently uses Pipeline even when Realtime is selected |
+| Call shortcut | Starts a normal voice session through Pipeline | The shortcut uses Pipeline even when Realtime is selected |
| If startup fails | The affected stage can use another configured compatible choice or report that it is unavailable | Jarvis can use another compatible live choice, then fall back to Pipeline before the turn starts |
| Current scope | Broadest feature coverage | Research preview; some tools and features are not yet available |
@@ -143,7 +143,7 @@ session is Realtime, Pipeline, or a Pipeline fallback.
| What you see | What it usually means | What to do |
|---|---|---|
-| The wake phrase does nothing | Wake activation, its language, or the microphone is not ready | Run **Test wake word**, then use the app's voice control or push-to-talk while you review the wake setup |
+| The wake phrase does nothing | Wake activation, its language, or the microphone is not ready | Run **Test wake word**, then use the app's voice control or Call shortcut while you review the wake setup |
| **Listening** appears, but the request is wrong or empty | The wrong microphone is selected, the level is too low, or speech recognition could not understand the turn | Check **Audio devices**, try one short request, and add repeated Pipeline mistakes to **Dictionary** |
| Realtime is selected, but the runtime line says Pipeline | No compatible live session could open for this call | Review the Realtime category in **API Keys & Providers**; keep using the working Pipeline fallback or choose Pipeline explicitly |
| A Realtime call ends after an error | The live path failed after Jarvis had already accepted part of the turn | Start a fresh call; use Pipeline if the failure repeats so Jarvis does not replay a possible action |
diff --git a/docs/product/personalize-and-connect/audio-and-wake-word.md b/docs/product/personalize-and-connect/audio-and-wake-word.md
index 91ce4e071d..ecbe9b2008 100644
--- a/docs/product/personalize-and-connect/audio-and-wake-word.md
+++ b/docs/product/personalize-and-connect/audio-and-wake-word.md
@@ -128,7 +128,7 @@ the required files are present.
If no local engine can serve your phrase, Jarvis does not pretend to listen and
does not substitute a hidden wake phrase. Wake activation stays unavailable,
-and you can use the configured Call or push-to-talk shortcut instead.
+and you can use the configured Call shortcut instead.
## How It Fits Together
diff --git a/docs/product/personalize-and-connect/settings-and-appearance.md b/docs/product/personalize-and-connect/settings-and-appearance.md
index 20d0d872d6..addef17ced 100644
--- a/docs/product/personalize-and-connect/settings-and-appearance.md
+++ b/docs/product/personalize-and-connect/settings-and-appearance.md
@@ -47,7 +47,7 @@ that have their own guides.
| **Privacy permissions** | Microphone, screen, accessibility, and input access on macOS | Permission changes may require **Restart now** |
| **Wake Word** | Activation, phrase, spoken language, and detection engine | Usually live when desktop voice is ready; otherwise on the next voice start |
| **Thinking pause**, **Volume**, and **Audio devices** | End-of-speech timing, spoken volume, microphone, and speaker | Live with the Pipeline running; otherwise on the next start |
-| **Voice Keybinds** | Call, Hangup, and Talk or push-to-talk shortcuts | Live with the voice Pipeline running; otherwise after a restart |
+| **Voice Keybinds** | Call and Hangup shortcuts | Live with the voice Pipeline running; otherwise after a restart |
| **System Prompt** | The assistant's general style and behavior | On the next message; no restart |
| **Bar & Overlay** | Display style, idle visibility, music muting, and short sound effects | A mix of live changes and restart-required display swaps |
diff --git a/docs/product/privacy-safety-and-support/permissions.md b/docs/product/privacy-safety-and-support/permissions.md
index def87350a0..b07e0b1279 100644
--- a/docs/product/privacy-safety-and-support/permissions.md
+++ b/docs/product/privacy-safety-and-support/permissions.md
@@ -54,7 +54,7 @@ access and the features that depend on it.
| **Microphone** | Capture local microphone audio | Wake word and local voice input |
| **Screen Recording** | Capture visible content across connected displays | Computer Use and screen-based vision |
| **Accessibility** | Read supported interface structure, focus windows, click, and type reliably | Computer Use, window control, and global shortcuts |
-| **Input Monitoring** | Listen for configured system-wide keyboard shortcuts | Global push-to-talk and other global shortcuts |
+| **Input Monitoring** | Listen for configured system-wide keyboard shortcuts | Global voice and other configured shortcuts |
| **Input Control** | Send mouse and keyboard events | Computer Use |
Grant one item at a time:
diff --git a/docs/product/start-here/first-run-setup.md b/docs/product/start-here/first-run-setup.md
index 5dc48bac7d..7a89b120ef 100644
--- a/docs/product/start-here/first-run-setup.md
+++ b/docs/product/start-here/first-run-setup.md
@@ -81,8 +81,8 @@ You have two first-class choices:
- **Wake word** keeps the local activation listener ready for a phrase you
choose.
-- **Keyboard shortcut** uses push-to-talk instead. You can choose the exact
- shortcut later under **Settings > Voice Keybinds**.
+- **Keyboard shortcut** starts a normal voice session with the Call action.
+ You can choose the exact shortcut later under **Settings > Voice Keybinds**.
If you choose **Keyboard shortcut**, review the note and select **Continue**.
This avoids an always-ready wake listener and does not require a wake-word
@@ -141,7 +141,7 @@ provider stay unavailable until you return.
## How It Fits Together
-1. You type a message, say a wake word, or use push-to-talk to start a
+1. You type a message, say a wake word, or use the Call shortcut to start a
request.
2. Language settings decide how the interface appears and which language
Jarvis uses for the answer. Microphone and shortcut permissions allow the
@@ -165,8 +165,8 @@ choices: each can fail or be changed without forcing you to redo the others.
Open **Chats**, start a new chat, and send a short greeting. Setup is working
when your message appears and Jarvis returns an answer in the reply language
-you selected. If you enabled voice, say the saved wake phrase or use your
-push-to-talk shortcut and confirm that the listening state appears.
+you selected. If you enabled voice, say the saved wake phrase or use your Call
+shortcut and confirm that the listening state appears.
## Troubleshooting
@@ -175,7 +175,7 @@ push-to-talk shortcut and confirm that the listening state appears.
| **Continue** is unavailable on the permissions page | A required macOS permission or restart is still pending | Use **Allow** or **Open Settings**, return to Jarvis, and restart when prompted; or choose **Continue with text only** |
| The microphone check says it is too quiet or finds no device | The wrong input is selected, its level is low, or no microphone is available | Check the operating-system input device and level, then try again; continue with text if needed |
| The microphone check says permission is required | Jarvis cannot read the microphone | Grant **Microphone** access in Permissions, then run the check again |
-| The wake phrase is saved but does not activate Jarvis | The local speech pack is missing, the wake listener is off, or the microphone is unavailable | Use push-to-talk, then review **Settings > Wake Word** and install the offered local pack if needed |
+| The wake phrase is saved but does not activate Jarvis | The local speech pack is missing, the wake listener is off, or the microphone is unavailable | Use the Call shortcut, then review **Settings > Wake Word** and install the offered local pack if needed |
| A provider says **Configured** but requests fail | A saved credential is present, but the account, model, quota, or service may not be working | Select **Test**, follow its result, and try another compatible provider family if one is available |
| Menus and answers use different languages | Interface and reply language are independent settings | Review both language choices and use **Auto** only when you want replies to follow the conversation |
@@ -184,7 +184,7 @@ push-to-talk shortcut and confirm that the listening state appears.
- Read [Providers and API Keys](providers-and-api-keys) to understand provider
categories, tests, fallback choices, and safe credential management.
- Read [Audio and Wake Word](audio-and-wake-word) to tune your microphone,
- activation phrase, local speech pack, and push-to-talk behavior.
+ activation phrase, local speech pack, and manual shortcut activation.
- Read [Permissions](permissions) before enabling voice, shortcuts, or
Computer Use on a new operating system.
- Follow [Start Your First Chat](start-your-first-chat) for a simple first
diff --git a/docs/product/start-here/start-your-first-voice-conversation.md b/docs/product/start-here/start-your-first-voice-conversation.md
index 9c1f7f0b11..d1e509429e 100644
--- a/docs/product/start-here/start-your-first-voice-conversation.md
+++ b/docs/product/start-here/start-your-first-voice-conversation.md
@@ -11,7 +11,7 @@ owner: maintainers
last_reviewed: 2026-07-15
phase: "-"
audience: end-user
-tags: [voice, microphone, wake-word, push-to-talk, realtime, tutorial]
+tags: [voice, microphone, wake-word, keyboard-shortcut, realtime, tutorial]
related: [voice-conversations, audio-and-wake-word, languages-and-voices, permissions]
---
@@ -112,7 +112,7 @@ how listening, the Brain, actions, and spoken output form one turn.
## Check That It Works
-Start a voice turn with your saved wake phrase or push-to-talk shortcut. Ask a
+Start a voice turn with your saved wake phrase or Call shortcut. Ask a
short question. Voice is working when you see **Listening**, then **Thinking**
or **Speaking**, hear a reply, and finally see **Ready** again.
@@ -121,7 +121,7 @@ or **Speaking**, hear a reply, and finally see **Ready** again.
| What you see | What it usually means | What to do |
|---|---|---|
| **Voice starting…** does not change | The voice stack is still warming or did not become available | Wait briefly, then review microphone permission and **Audio devices** |
-| The wake phrase does nothing | Wake activation, language, model, or microphone readiness does not match | Run **Test wake word** and use push-to-talk while you fix the reported item |
+| The wake phrase does nothing | Wake activation, language, model, or microphone readiness does not match | Run **Test wake word** and use the Call shortcut while you fix the reported item |
| **Listening** appears, but no useful request is heard | The wrong microphone is selected, its level is low, or speech recognition is unavailable | Select the correct input, repeat the microphone check, then try one short request |
| **Speaking** appears, but you hear nothing | The output device or system volume is wrong | Review **Settings > Audio devices** and the operating-system output volume |
| Realtime reports that it is unavailable | The live voice connection could not open | Let Jarvis try Pipeline mode; if voice still fails, use **Chats** and review provider status |
@@ -132,7 +132,7 @@ or **Speaking**, hear a reply, and finally see **Ready** again.
- Read [Voice Conversations](voice-conversations) to understand the complete
voice turn and how Realtime and Pipeline mode relate.
- Read [Audio and Wake Word](audio-and-wake-word) to choose devices, tune a wake
- phrase, or rely on push-to-talk.
+ phrase, or rely on the Call shortcut.
- Read [Languages and Voices](languages-and-voices) to choose the reply language
and the voice you hear.
- Read [Permissions](permissions) when the operating system blocks microphone
diff --git a/jarvis.toml.example b/jarvis.toml.example
index e17e217985..4b85843628 100644
--- a/jarvis.toml.example
+++ b/jarvis.toml.example
@@ -30,7 +30,6 @@ name = ""
# ── Voice trigger (optional; irrelevant on a headless/browser-only host) ──
[trigger]
wake_word_enabled = true # always-on wake listener (needs a mic)
-hotkey = "ctrl+right_alt+j" # push-to-talk; safe combo on all OSes
single_turn_mode = false # false = conversation stays open until "hang up"/idle
[trigger.wake_word]
diff --git a/jarvis/core/config.py b/jarvis/core/config.py
index 82fded34e7..70bcb64ac6 100644
--- a/jarvis/core/config.py
+++ b/jarvis/core/config.py
@@ -288,7 +288,10 @@ class WakeWordConfig(BaseModel):
class TriggerConfig(BaseModel):
wake_word_enabled: bool = False
- hotkey: str = "ctrl+right_alt+j"
+ # Deprecated compatibility field. Older installs may still carry this
+ # push-to-talk key in jarvis.toml, so the config model continues to accept
+ # it, but the desktop no longer registers or exposes it.
+ hotkey: str = ""
# Call/answer toggle key. Was hardcoded "f3+f4" in resolve_hotkeys() and at
# the SpeechPipeline call sites; now user-editable via /api/settings/keybinds.
hotkey_call: str = "f3+f4"
@@ -318,40 +321,19 @@ class TriggerConfig(BaseModel):
# site; the constructor default (30 s) stays the safe baseline for a fresh
# download so an accidental wake never holds the mic open forever.
session_idle_timeout_s: float = 30.0
- # When True (default, user mandate 2026-05-29), the configured ``hotkey`` is
- # a true push-to-talk key: holding it records, releasing it submits the
- # captured audio as one prompt (one-shot — Jarvis answers once, then the
- # session ends; the next prompt needs another hold). The VAD silence
- # endpoint is bypassed for the duration of the hold, so a thinking pause
- # never cuts the user off mid-sentence. When False, the hotkey falls back to
- # the legacy toggle: a single press starts a normal wake-style session whose
- # end is decided by the VAD / idle timeout (the pre-2026-05-29 behaviour).
- # The F3+F4 chord always stays a toggle regardless of this flag.
- push_to_talk: bool = True
+ # Deprecated compatibility field, accepted so existing configuration files
+ # keep loading after the desktop push-to-talk feature was removed. Its value
+ # is intentionally ignored by ``resolve_hotkeys``.
+ push_to_talk: bool = False
def resolve_hotkeys(self) -> tuple[tuple[str, ...], tuple[str, ...]]:
- """Split the configured hotkeys into ``(call_hotkeys, ptt_hotkeys)``
- for ``SpeechPipeline``.
-
- With ``push_to_talk`` on (default), the configured ``hotkey`` becomes a
- true push-to-talk key (hold = record, release = submit) and ``hotkey_call``
- stays a quick wake-style toggle. With it off, ``hotkey`` is a toggle
- alongside ``hotkey_call`` and there is no PTT (the pre-2026-05-29 wiring).
- Hangup is a separate value read from ``hotkey_hangup`` at the
- SpeechPipeline call sites.
-
- A blank string means the user explicitly cleared that action (Settings
- Clear button) — filtered out here so an unbound key never reaches
- ``HotkeyTrigger`` as a bogus single-element tuple containing ``""``.
+ """Return the active call hotkey and an empty legacy PTT slot.
+
+ ``SpeechPipeline`` still accepts the two-tuple during the compatibility
+ window, but standard desktop construction never arms push-to-talk. A
+ blank call key means the user explicitly cleared the action in Settings.
"""
- if self.push_to_talk:
- call, ptt = (self.hotkey_call,), (self.hotkey,)
- else:
- call, ptt = (self.hotkey, self.hotkey_call), ()
- return (
- tuple(h for h in call if h.strip()),
- tuple(h for h in ptt if h.strip()),
- )
+ return (tuple(h for h in (self.hotkey_call,) if h.strip()), ())
# When False (default), the local wake path is lightweight: openWakeWord
# only (~3.5 MB ONNX, CPU-only, bundled in jarvis/assets/wakeword/), no
# faster-whisper anywhere — no GPU, no ~1 GB model download. When True, the
diff --git a/jarvis/core/config_writer.py b/jarvis/core/config_writer.py
index c31500b5da..d61b18e699 100644
--- a/jarvis/core/config_writer.py
+++ b/jarvis/core/config_writer.py
@@ -479,19 +479,18 @@ def set_codex_binary_path(binary_path: str, *, path: Path = DEFAULT_CONFIG_FILE)
# Voice-keybind action vocabulary. Shared with the keybinds API
# (jarvis/ui/web/settings_routes.py) and the TS type KeybindAction in the
-# frontend (jarvis/ui/web/frontend/src/hooks/useHotkey.ts). Keep the three in
+# frontend (jarvis/ui/web/frontend/src/hooks/useHotkey.ts). Keep these layers in
# sync. The mapped value is BOTH the jarvis.toml key under [trigger] AND the
# TriggerConfig field name (they are intentionally identical).
-KEYBIND_ACTIONS = ("call", "hangup", "ptt")
+KEYBIND_ACTIONS = ("call", "hangup")
KEYBIND_TOML_KEY = {
"call": "hotkey_call",
"hangup": "hotkey_hangup",
- "ptt": "hotkey",
}
def set_keybind(action: str, hotkey: str, *, path: Path = DEFAULT_CONFIG_FILE) -> None:
- """Persist a voice keybind (call / hangup / ptt) to ``[trigger]`` in jarvis.toml.
+ """Persist a voice keybind (call / hangup) to ``[trigger]`` in jarvis.toml.
Toml-only by design (same rationale as the other [trigger] writers — these
keys are NOT tracked in the drift-guard's reference snapshot, so it never reverts
@@ -507,11 +506,6 @@ def set_keybind(action: str, hotkey: str, *, path: Path = DEFAULT_CONFIG_FILE) -
_patch_table(path, "trigger", key, hotkey)
-def set_ptt_hotkey(hotkey: str, *, path: Path = DEFAULT_CONFIG_FILE) -> None:
- """Backward-compatible alias for ``set_keybind("ptt", ...)``."""
- set_keybind("ptt", hotkey, path=path)
-
-
def set_reply_language(name: str, *, path: Path = DEFAULT_CONFIG_FILE) -> None:
"""Persist the user-facing reply-language pin in ``[brain] reply_language``.
@@ -591,7 +585,7 @@ def set_wake_word_enabled(enabled: bool, *, path: Path = DEFAULT_CONFIG_FILE) ->
This is the "how do you activate Jarvis" master switch: True = always-on wake
word (which requires a local model that matches the user's word — see
- ``resolve_wake_plan``), False = hotkey / push-to-talk only. It was previously
+ ``resolve_wake_plan``), False = Call shortcut only. It was previously
settable ONLY by hand-editing jarvis.toml (default False), so a fresh
downloader could never turn their wake word on in-app.
diff --git a/jarvis/cu/indicator/controller.py b/jarvis/cu/indicator/controller.py
index 484623ebd2..8baffb6e7b 100644
--- a/jarvis/cu/indicator/controller.py
+++ b/jarvis/cu/indicator/controller.py
@@ -324,8 +324,8 @@ class CUIndicatorController:
from jarvis.trigger.hotkey import HotkeyTrigger # noqa: PLC0415
# The bare Escape key is intentionally NOT run through
- # validate_hotkey(): that guard protects user-configured
- # push-to-talk combos; this binding exists only while Jarvis
+ # validate_hotkey(): that guard protects user-configured global
+ # shortcuts; this binding exists only while Jarvis
# itself is typing/clicking.
trigger = HotkeyTrigger({"cu_cancel": _esc_binding()})
async with trigger:
diff --git a/jarvis/plugins/wake/openwakeword_provider.py b/jarvis/plugins/wake/openwakeword_provider.py
index 23af9b5d6e..21e2b61d94 100644
--- a/jarvis/plugins/wake/openwakeword_provider.py
+++ b/jarvis/plugins/wake/openwakeword_provider.py
@@ -307,7 +307,7 @@ class OpenWakeWordProvider:
except ImportError as exc:
# openwakeword + onnxruntime are BASE deps, so this only happens on a
# broken/partial install. Degrade to a no-op wake (the pipeline keeps
- # running; the user can still talk via the app/push-to-talk) instead
+ # running; the user can still talk via the app or Call shortcut) instead
# of an uncaught ImportError that would take the whole speech pipeline
# down. Actionable, English, one line.
self._runtime_unavailable = True
diff --git a/jarvis/speech/pipeline.py b/jarvis/speech/pipeline.py
index f65363edb1..5c12267695 100644
--- a/jarvis/speech/pipeline.py
+++ b/jarvis/speech/pipeline.py
@@ -2079,9 +2079,9 @@ class SpeechPipeline:
if not getattr(plan, "wake_available", True):
# No local model for the user's OWN word — arm NO detector. This is
- # the explicit, honest "wake off, use the hotkey" mode (product rule
- # 2026-07-04), NOT a dead listener: the user activates via hotkey /
- # push-to-talk. Do NOT fall back to the bundled branded 'Hey Rhasspy'
+ # the explicit, honest "wake off, use the Call shortcut" mode
+ # (product rule 2026-07-04), NOT a dead listener. Do NOT fall back to
+ # the bundled branded 'Hey Rhasspy'
# model — listening for a word the user never says is the bug we are
# removing. Installing the local speech pack (any word) or a custom
# .onnx re-arms the wake via a later set_wake_plan.
@@ -2091,7 +2091,7 @@ class SpeechPipeline:
self._whisper_wake._pattern = self._wake_matcher # noqa: SLF001
log.info(
"Wake-Live-Switch: no local model for %r — wake word OFF; "
- "hotkey / push-to-talk is the activation. Install the local "
+ "the Call shortcut is the activation. Install the local "
"speech pack (works for any word) or supply a custom .onnx to "
"enable the wake word.",
self._wake_phrase_label,
@@ -2148,7 +2148,7 @@ class SpeechPipeline:
# be built. Product rule (2026-07-04): do NOT fall back to a
# branded 'Hey Rhasspy' model (listening for a word the user never
# says). Arm NO detector — the wake word is OFF and the honest
- # activation is the hotkey / push-to-talk. This is an explicit,
+ # activation is the Call shortcut. This is an explicit,
# user-visible mode, not a silent dead listener; installing or
# repairing the local speech pack re-arms the custom phrase via a
# later set_wake_plan.
@@ -2156,8 +2156,8 @@ class SpeechPipeline:
self._whisper_wake_enabled = False
log.warning(
"Wake-Live-Switch: stt_match requested but no local Whisper "
- "could be built for %r — wake word OFF; use the hotkey / "
- "push-to-talk. Install or repair the local speech pack (works "
+ "could be built for %r — wake word OFF; use the Call shortcut. "
+ "Install or repair the local speech pack (works "
"for any word) or supply a custom .onnx to enable it.",
self._wake_phrase_label,
)
diff --git a/jarvis/speech/wake_phrase.py b/jarvis/speech/wake_phrase.py
index 10e9f07526..00fc85fc7d 100644
--- a/jarvis/speech/wake_phrase.py
+++ b/jarvis/speech/wake_phrase.py
@@ -284,7 +284,7 @@ class WakeWordPlan:
# the user's OWN chosen word. When no such model is available (no custom
# ONNX, no local Whisper) we do NOT silently substitute a branded fallback
# model — we return wake_available=False so the app arms NO detector and the
- # honest alternative is hotkey / push-to-talk activation. True for every
+ # honest alternative is Call-shortcut activation. True for every
# real engine (custom_onnx / vosk_kws / stt_match).
wake_available: bool = True
# Extracted Vosk model directory for the vosk_kws engine (None otherwise).
@@ -529,7 +529,7 @@ def resolve_wake_plan(
# forbids silently substituting a branded fallback (the retired degrade
# made the app listen for a word the user never says). Instead we
# return wake_available=False: the app arms NO wake detector, and the honest
- # alternative is hotkey / push-to-talk activation. The user's requested phrase
+ # alternative is Call-shortcut activation. The user's requested phrase
# is preserved; installing the local speech pack (works for ANY word) or
# supplying a custom .onnx is what makes the wake word actually fire.
_phrase_label = phrase or "your wake word"
@@ -545,7 +545,7 @@ def resolve_wake_plan(
message=(
f"Wake word '{_phrase_label}' needs a local model. Install the local "
"speech pack (works for any word) or supply a custom .onnx to enable "
- "it. Until then the wake word is off — use the hotkey / push-to-talk "
+ "it. Until then the wake word is off — use the Call shortcut "
"to start a voice turn."
),
verify_prefix=False,
diff --git a/jarvis/ui/desktop_app.py b/jarvis/ui/desktop_app.py
index 00ecc5363b..32cff07ee8 100644
--- a/jarvis/ui/desktop_app.py
+++ b/jarvis/ui/desktop_app.py
@@ -2565,7 +2565,7 @@ class DesktopApp:
from loguru import logger as _wlog
if not wake_plan.wake_available:
_wlog.info(
- "Wake-word OFF: no local model for {!r} — hotkey / push-to-talk "
+ "Wake-word OFF: no local model for {!r} — the Call shortcut "
"is the activation. {}",
wake_plan.phrase,
wake_plan.message,
@@ -2739,7 +2739,7 @@ class DesktopApp:
# neural model can't detect the phrase, so OWW is OFF and the
# RollingWhisperWake transcript-match IS the wake path.
# - no local model for the user's word (wake_plan.wake_available
- # False) -> arm NOTHING; hotkey / push-to-talk is the only
+ # False) -> arm NOTHING; the Call shortcut is the only
# activation. The product rule (2026-07-04): a wake word needs
# a local model, never a silent branded fallback.
# vosk_kws rides the same detector slot/loop as OWW (the
diff --git a/jarvis/ui/web/frontend/src/components/onboarding/steps/WakeWordStep.tsx b/jarvis/ui/web/frontend/src/components/onboarding/steps/WakeWordStep.tsx
index ff07cc6da3..1ce6d66d9d 100644
--- a/jarvis/ui/web/frontend/src/components/onboarding/steps/WakeWordStep.tsx
+++ b/jarvis/ui/web/frontend/src/components/onboarding/steps/WakeWordStep.tsx
@@ -25,8 +25,8 @@ type MicCheckState = "idle" | "checking" | "done";
* model exists for that exact word — if the save comes back `degraded` we do
* NOT silently advance, we offer the one-click local-speech install or an
* honest "continue anyway" (wake word off until the pack lands).
- * - "shortcut": no wake word at all — push-to-talk via a keyboard shortcut,
- * editable later in Settings. This is a first-class option, not a fallback.
+ * - "shortcut": no wake word at all — the Call keyboard shortcut starts a
+ * normal voice session and remains editable later in Settings.
*/
export function WakeWordStep({ onb, goNext }: StepProps) {
const t = useT();
diff --git a/jarvis/ui/web/frontend/src/hooks/hotkeyCombo.test.ts b/jarvis/ui/web/frontend/src/hooks/hotkeyCombo.test.ts
index 6517d6afdf..569ab6379b 100644
--- a/jarvis/ui/web/frontend/src/hooks/hotkeyCombo.test.ts
+++ b/jarvis/ui/web/frontend/src/hooks/hotkeyCombo.test.ts
@@ -227,7 +227,7 @@ describe("validateCombo", () => {
it("allows sharing a modifier with another action (no chord overlap)", () => {
expect(
- validateCombo("ctrl+shift+h", { ptt: "ctrl+right_alt+j" }).status,
+ validateCombo("ctrl+shift+h", { call: "ctrl+right_alt+j" }).status,
).toBe("ok");
});
});
diff --git a/jarvis/ui/web/frontend/src/hooks/useHotkey.ts b/jarvis/ui/web/frontend/src/hooks/useHotkey.ts
index 1271ff38f2..672e5f18a0 100644
--- a/jarvis/ui/web/frontend/src/hooks/useHotkey.ts
+++ b/jarvis/ui/web/frontend/src/hooks/useHotkey.ts
@@ -296,13 +296,12 @@ export function validateCombo(
return { status: "ok" };
}
-export type KeybindAction = "call" | "hangup" | "ptt";
+export type KeybindAction = "call" | "hangup";
/** Response of GET /api/settings/keybinds. */
export interface KeybindsConfig {
keybinds: Record<KeybindAction, string>;
defaults: Record<KeybindAction, string>;
- push_to_talk: boolean;
suggestions: string[];
restart_required: boolean;
}
@@ -318,10 +317,10 @@ export interface KeybindSaveResult {
/**
* Loads /api/settings/keybinds and exposes saveKeybind(action, combo). Mirrors
- * useHotkey's fetch/error/loading shape but covers all three voice keybinds
- * (Call / Hangup / Talk-PTT). A rejected save (unsafe combo or a collision with
- * another action) throws with the backend's reason. After a successful save it
- * dispatches 'jarvis:keybinds-changed'.
+ * useHotkey's fetch/error/loading shape but covers both voice keybinds (Call and
+ * Hangup). A rejected save (unsafe combo or a collision with another action)
+ * throws with the backend's reason. After a successful save it dispatches
+ * 'jarvis:keybinds-changed'.
*/
export function useKeybinds() {
const [config, setConfig] = useState<KeybindsConfig | null>(null);
diff --git a/jarvis/ui/web/frontend/src/hooks/useKeybinds.test.ts b/jarvis/ui/web/frontend/src/hooks/useKeybinds.test.ts
index 3f5cb57181..17a263f366 100644
--- a/jarvis/ui/web/frontend/src/hooks/useKeybinds.test.ts
+++ b/jarvis/ui/web/frontend/src/hooks/useKeybinds.test.ts
@@ -3,9 +3,8 @@ import { afterEach, describe, expect, it, vi } from "vitest";
import { useKeybinds } from "./useHotkey";
const FULL = {
- keybinds: { call: "f3+f4", hangup: "f1+f2", ptt: "ctrl+right_alt+j" },
- defaults: { call: "f3+f4", hangup: "f1+f2", ptt: "ctrl+right_alt+j" },
- push_to_talk: true,
+ keybinds: { call: "f3+f4", hangup: "f1+f2" },
+ defaults: { call: "f3+f4", hangup: "f1+f2" },
suggestions: [],
restart_required: true,
};
diff --git a/jarvis/ui/web/frontend/src/hooks/useWakeWord.ts b/jarvis/ui/web/frontend/src/hooks/useWakeWord.ts
index b2b72fb970..ccf0031906 100644
--- a/jarvis/ui/web/frontend/src/hooks/useWakeWord.ts
+++ b/jarvis/ui/web/frontend/src/hooks/useWakeWord.ts
@@ -13,7 +13,7 @@ export interface WakeWordConfig {
instant_phrases: string[];
local_whisper_available: boolean;
// The activation master switch: true = always-on wake word (needs a local
- // model for the user's word), false = hotkey / push-to-talk only.
+ // model for the user's word), false = Call shortcut only.
enabled: boolean;
}
@@ -41,7 +41,7 @@ export interface WakeWordSaveResult {
resolved_engine: string;
degraded: boolean;
// False when no local model matches the user's word: the wake word is off and
- // hotkey / push-to-talk is the activation.
+ // the Call shortcut is the activation.
wake_available: boolean;
message: string;
persisted: boolean;
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/de.json b/jarvis/ui/web/frontend/src/i18n/locales/de.json
index 5bc9613fd6..e2c075d269 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/de.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/de.json
@@ -1086,7 +1086,7 @@
},
"input_monitoring": {
"title": "Eingabeüberwachung",
- "description": "Erforderlich für globale Push-to-Talk- und Tastaturkurzbefehle."
+ "description": "Erforderlich für globale Tastaturkurzbefehle."
},
"event_posting": {
"title": "Eingabesteuerung",
@@ -1203,8 +1203,6 @@
"rows": {
"wake_word_title": "Wake-Word",
"wake_word_description": "Aktivierungswort für den Voice-Modus.",
- "ptt_title": "Push-to-Talk-Hotkey",
- "ptt_description": "Gedrückt halten zum Sprechen, loslassen zum Senden. Funktioniert ohne Wake-Word.",
"privacy_title": "Privacy-Mode",
"privacy_description": "Hybrid: STT lokal (Whisper), TTS/Brain Cloud.",
"privacy_value": "Hybrid",
@@ -1220,7 +1218,7 @@
"title": "Wake-Word",
"description": "Aktivierungsphrase für den Sprachmodus. Tippe deine eigene ein.",
"activation_title": "Aktivierungswort einschalten",
- "activation_hint": "An: Jarvis hört ständig auf dein Wort (braucht ein lokales Modell). Aus: aktiviere per Tastenkombination (Push-to-Talk).",
+ "activation_hint": "An: Jarvis hört ständig auf dein Wort (braucht ein lokales Modell). Aus: aktiviere über das Anruf-Tastenkürzel.",
"activation_saved": "Wake-Word-Aktivierung ist sofort aktualisiert.",
"phrase_label": "Aktivierungsphrase",
"phrase_placeholder": "z. B. Jonas",
@@ -1236,7 +1234,7 @@
"saved": "Wake-Word gespeichert",
"restart_required": "Neustart erforderlich, damit die Änderung greift.",
"degraded_warning": "Die gewählte Phrase wird von der ausgewählten Engine nicht unterstützt — sie fällt auf eine andere Engine zurück.",
- "needs_whisper_hint": "Diese Phrase benötigt eine lokale Engine. Installiere unten das lokale Sprachpaket — bis dahin bleibt das Wake-Word aus und du aktivierst per Hotkey / Push-to-talk.",
+ "needs_whisper_hint": "Diese Phrase benötigt eine lokale Engine. Installiere unten das lokale Sprachpaket — bis dahin bleibt das Wake-Word aus und du aktivierst über das Anruf-Tastenkürzel.",
"derived_name": "Dein Assistent heißt dann: {0}",
"engine_options": {
"auto": "Automatisch (empfohlen)",
@@ -1309,22 +1307,11 @@
"reset_done": "Auf den Standard-System-Prompt zurückgesetzt",
"applies_next_turn": "Wirkt ab der nächsten Antwort deines Assistenten — kein Neustart nötig."
},
- "hotkey": {
- "title": "Push-to-Talk-Hotkey",
- "description": "Klick auf Aufnehmen und drücke deine Tastenkombination — halten zum Sprechen, loslassen zum Senden. Oder wähle unten einen sicheren Vorschlag.",
- "record": "Aufnehmen",
- "recording": "Drücke jetzt deine Tasten… (Esc zum Abbrechen)",
- "suggestions_label": "Vorschläge",
- "save": "Hotkey speichern",
- "saved": "Hotkey gespeichert",
- "restart_required": "Neustart nötig, damit es wirkt."
- },
"keybinds": {
"title": "Sprach-Tastenkürzel",
- "description": "Lege die Tasten für Anruf, Auflegen und Sprechen (Push-to-Talk) fest. Klick auf Aufnehmen und drücke deine Kombination — oder klick die Tasten auf der Bildschirm-Tastatur an. Änderungen greifen sofort.",
+ "description": "Lege die Tasten für Anruf und Auflegen fest. Klick auf Aufnehmen und drücke deine Kombination — oder klick die Tasten auf der Bildschirm-Tastatur an. Änderungen greifen sofort.",
"call_label": "Anruf (annehmen / Sprechen starten)",
"hangup_label": "Auflegen",
- "talk_label": "Sprechen / Push-to-Talk",
"record": "Aufnehmen",
"stop": "Stopp",
"recording": "Drücke deine Tasten…",
@@ -1710,9 +1697,9 @@
"mode_wake_title": "Aktivierungswort",
"mode_wake_body": "Sag jederzeit dein eigenes Wort — {name} hört ständig mit. Braucht ein kleines lokales Modell für genau dein Wort.",
"mode_shortcut_title": "Tastenkombination",
- "mode_shortcut_body": "Kein Aktivierungswort — halte eine Taste gedrückt, um zu sprechen, lass los zum Senden (Push-to-Talk).",
+ "mode_shortcut_body": "Kein Aktivierungswort — drücke das Anruf-Tastenkürzel, um eine Sprachsitzung zu starten.",
"back_to_choice": "Zurück",
- "shortcut_note": "Du aktivierst {name} stattdessen über eine Tastenkombination statt über ein Aktivierungswort. Die genaue Taste kannst du jederzeit unter Einstellungen → Sprach-Tastenkürzel festlegen.",
+ "shortcut_note": "Du aktivierst {name} über das Anruf-Tastenkürzel statt über ein Aktivierungswort. Du kannst es jederzeit unter Einstellungen → Sprach-Tastenkürzel festlegen.",
"shortcut_cta": "Weiter",
"title": "Wähle dein Aktivierungswort",
"body": "Wähle das Wort, das deinen Assistenten aufweckt. \"Hey\" bleibt fest — den Rest bestimmst du.",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/en.json b/jarvis/ui/web/frontend/src/i18n/locales/en.json
index 1e1bb9632d..36be033372 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/en.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/en.json
@@ -1087,7 +1087,7 @@
},
"input_monitoring": {
"title": "Input Monitoring",
- "description": "Required for global push-to-talk and keyboard shortcuts."
+ "description": "Required for global keyboard shortcuts."
},
"event_posting": {
"title": "Input control",
@@ -1204,8 +1204,6 @@
"rows": {
"wake_word_title": "Wake Word",
"wake_word_description": "Activation word for voice mode.",
- "ptt_title": "Push-to-Talk Hotkey",
- "ptt_description": "Hold to talk, release to send. Works without the wake word.",
"privacy_title": "Privacy Mode",
"privacy_description": "Hybrid: STT local (Whisper), TTS/Brain cloud.",
"privacy_value": "Hybrid",
@@ -1221,7 +1219,7 @@
"title": "Wake Word",
"description": "Activation phrase for voice mode. Type your own.",
"activation_title": "Activate wake word",
- "activation_hint": "On: Jarvis is always listening for your word (needs a local model). Off: activate with a keyboard shortcut (push-to-talk).",
+ "activation_hint": "On: Jarvis is always listening for your word (needs a local model). Off: activate with the Call keyboard shortcut.",
"activation_saved": "Wake-word activation updated immediately.",
"phrase_label": "Wake phrase",
"phrase_placeholder": "e.g. Jonas",
@@ -1237,7 +1235,7 @@
"saved": "Wake word saved",
"restart_required": "Restart required to take effect.",
"degraded_warning": "The chosen phrase isn't supported by the selected engine — it will fall back to a different engine.",
- "needs_whisper_hint": "This phrase needs a local engine. Install the local speech pack below — until then the wake word stays off and you activate via hotkey / push-to-talk.",
+ "needs_whisper_hint": "This phrase needs a local engine. Install the local speech pack below — until then the wake word stays off and you activate with the Call shortcut.",
"derived_name": "Your assistant will be called: {0}",
"engine_options": {
"auto": "Auto (recommended)",
@@ -1310,22 +1308,11 @@
"reset_done": "Reset to the default system prompt",
"applies_next_turn": "Applies on your assistant's next message — no restart needed."
},
- "hotkey": {
- "title": "Push-to-Talk Hotkey",
- "description": "Click Record and press your key combination — hold it to talk, release to send. Or pick a safe suggestion below.",
- "record": "Record",
- "recording": "Press your keys now… (Esc to cancel)",
- "suggestions_label": "Suggestions",
- "save": "Save hotkey",
- "saved": "Hotkey saved",
- "restart_required": "Restart required to take effect."
- },
"keybinds": {
"title": "Voice Keybinds",
- "description": "Set the keys for Call, Hangup and Talk (push-to-talk). Click Record and press your combination — or click keys on the on-screen keyboard. Changes apply instantly.",
+ "description": "Set the keys for Call and Hangup. Click Record and press your combination — or click keys on the on-screen keyboard. Changes apply instantly.",
"call_label": "Call (answer / start talking)",
"hangup_label": "Hangup",
- "talk_label": "Talk / Push-to-talk",
"record": "Record",
"stop": "Stop",
"recording": "Press your keys…",
@@ -1711,9 +1698,9 @@
"mode_wake_title": "Wake word",
"mode_wake_body": "Say your own word any time — always listening. Needs a small local model for your exact word.",
"mode_shortcut_title": "Keyboard shortcut",
- "mode_shortcut_body": "No wake word — hold a key to talk, release to send (push-to-talk).",
+ "mode_shortcut_body": "No wake word — press the Call shortcut to start a voice session.",
"back_to_choice": "Back",
- "shortcut_note": "You'll activate {name} with a keyboard shortcut instead of a wake word. You can set up the exact key anytime in Settings → Voice Keybinds.",
+ "shortcut_note": "You'll activate {name} with the Call shortcut instead of a wake word. You can configure it anytime in Settings → Voice Keybinds.",
"shortcut_cta": "Continue",
"title": "Pick your wake word",
"body": "Choose the word that wakes your assistant. \"Hey\" stays fixed — you pick the rest.",
diff --git a/jarvis/ui/web/frontend/src/i18n/locales/es.json b/jarvis/ui/web/frontend/src/i18n/locales/es.json
index 5662d8cc50..7e43842d17 100644
--- a/jarvis/ui/web/frontend/src/i18n/locales/es.json
+++ b/jarvis/ui/web/frontend/src/i18n/locales/es.json
@@ -1086,7 +1086,7 @@
},
"input_monitoring": {
"title": "Monitorización de entrada",
- "description": "Necesario para pulsar para hablar y atajos de teclado globales."
+ "description": "Necesario para los atajos de teclado globales."
},
"event_posting": {
"title": "Control de entrada",
@@ -1203,8 +1203,6 @@
"rows": {
"wake_word_title": "Palabra de activación",
"wake_word_description": "Palabra para activar el modo de voz.",
- "ptt_title": "Atajo Push-to-Talk",
- "ptt_description": "Mantén pulsado para hablar, suelta para enviar. Funciona sin la palabra de activación.",
"privacy_title": "Modo Privacidad",
"privacy_description": "Híbrido: STT local (Whisper), TTS/IA en la nube.",
"privacy_value": "Híbrido",
@@ -1220,7 +1218,7 @@
"title": "Palabra de activación",
"description": "Frase de activación para el modo de voz. Escribe la tuya.",
"activation_title": "Activar palabra de activación",
- "activation_hint": "Activado: Jarvis escucha siempre tu palabra (necesita un modelo local). Desactivado: actívalo con un atajo de teclado (pulsar para hablar).",
+ "activation_hint": "Activado: Jarvis escucha siempre tu palabra (necesita un modelo local). Desactivado: actívalo con el atajo de Llamar.",
"activation_saved": "La activación se actualizó inmediatamente.",
"phrase_label": "Frase de activación",
"phrase_placeholder": "p. ej. Jonas",
@@ -1236,7 +1234,7 @@
"saved": "Palabra de activación guardada",
"restart_required": "Es necesario reiniciar para que surta efecto.",
"degraded_warning": "La frase elegida no es compatible con el motor seleccionado — recurrirá a otro motor.",
- "needs_whisper_hint": "Esta frase necesita un motor local. Instala el paquete de voz local más abajo — hasta entonces la palabra de activación queda desactivada y se activa con el atajo de teclado.",
+ "needs_whisper_hint": "Esta frase necesita un motor local. Instala el paquete de voz local más abajo — hasta entonces la palabra de activación queda desactivada y se activa con el atajo de Llamar.",
"derived_name": "Tu asistente se llamará: {0}",
"engine_options": {
"auto": "Automático (recomendado)",
@@ -1309,22 +1307,11 @@
"reset_done": "Restablecido al prompt del sistema predeterminado",
"applies_next_turn": "Se aplica en el próximo mensaje de tu asistente — sin reiniciar."
},
- "hotkey": {
- "title": "Atajo Push-to-Talk",
- "description": "Pulsa Grabar y presiona tu combinación de teclas — mantén pulsado para hablar, suelta para enviar. O elige una sugerencia segura abajo.",
- "record": "Grabar",
- "recording": "Presiona tus teclas ahora… (Esc para cancelar)",
- "suggestions_label": "Sugerencias",
- "save": "Guardar atajo",
- "saved": "Atajo guardado",
- "restart_required": "Reinicio necesario para que surta efecto."
- },
"keybinds": {
"title": "Atajos de voz",
- "description": "Configura las teclas para Llamar, Colgar y Hablar (pulsar para hablar). Pulsa Grabar y presiona tu combinación — o haz clic en las teclas del teclado en pantalla. Los cambios se aplican al instante.",
+ "description": "Configura las teclas para Llamar y Colgar. Pulsa Grabar y presiona tu combinación — o haz clic en las teclas del teclado en pantalla. Los cambios se aplican al instante.",
"call_label": "Llamar (responder / empezar a hablar)",
"hangup_label": "Colgar",
- "talk_label": "Hablar / Pulsar para hablar",
"record": "Grabar",
"stop": "Detener",
"recording": "Presiona tus teclas…",
@@ -1710,9 +1697,9 @@
"mode_wake_title": "Palabra de activación",
"mode_wake_body": "Di tu propia palabra en cualquier momento — {name} escucha todo el tiempo. Necesita un pequeño modelo local para tu palabra exacta.",
"mode_shortcut_title": "Atajo de teclado",
- "mode_shortcut_body": "Sin palabra de activación — mantén pulsada una tecla para hablar y suéltala para enviar (pulsar para hablar).",
+ "mode_shortcut_body": "Sin palabra de activación — pulsa el atajo de Llamar para iniciar una sesión de voz.",
"back_to_choice": "Atrás",
- "shortcut_note": "Activarás a {name} con un atajo de teclado en lugar de una palabra de activación. Puedes configurar la tecla exacta en cualquier momento en Ajustes → Atajos de voz.",
+ "shortcut_note": "Activarás a {name} con el atajo de Llamar en lugar de una palabra de activación. Puedes configurarlo en cualquier momento en Ajustes → Atajos de voz.",
"shortcut_cta": "Continuar",
"title": "Elige tu palabra de activación",
"body": "Elige la palabra que activa tu asistente. \"Hey\" queda fija — tú eliges el resto.",
diff --git a/jarvis/ui/web/frontend/src/views/KeybindsPanel.test.tsx b/jarvis/ui/web/frontend/src/views/KeybindsPanel.test.tsx
index 91ab6efdc9..5dc5cdf489 100644
--- a/jarvis/ui/web/frontend/src/views/KeybindsPanel.test.tsx
+++ b/jarvis/ui/web/frontend/src/views/KeybindsPanel.test.tsx
@@ -3,9 +3,8 @@ import { afterEach, describe, expect, it, vi } from "vitest";
import { KeybindsPanel } from "./SettingsView";
const FULL = {
- keybinds: { call: "f3+f4", hangup: "f1+f2", ptt: "ctrl+right_alt+j" },
- defaults: { call: "f3+f4", hangup: "f1+f2", ptt: "ctrl+right_alt+j" },
- push_to_talk: true,
+ keybinds: { call: "f3+f4", hangup: "f1+f2" },
+ defaults: { call: "f3+f4", hangup: "f1+f2" },
suggestions: [],
restart_required: true,
};
@@ -21,7 +20,7 @@ function stubFetch() {
/** The combo field's visible text with whitespace collapsed ("F3+F4") —
* works for both the plain string and the kbd-chip rendering. */
-function comboText(action: "call" | "hangup" | "ptt"): string {
+function comboText(action: "call" | "hangup"): string {
return (
screen
.getByTestId(`combo-field-${action}`)
@@ -30,12 +29,14 @@ function comboText(action: "call" | "hangup" | "ptt"): string {
}
describe("KeybindsPanel", () => {
- it("renders one row per voice action with its current combo", async () => {
+ it("renders only Call and Hangup rows with their current combos", async () => {
stubFetch();
render(<KeybindsPanel />);
- // The three current combos render (formatted by formatCombo).
+ // The two supported current combos render (formatted by formatCombo).
await waitFor(() => expect(comboText("call")).toBe("F3+F4"));
expect(comboText("hangup")).toBe("F1+F2");
+ expect(screen.queryByTestId("combo-field-ptt")).toBeNull();
+ expect(screen.queryByText(/push-to-talk/i)).toBeNull();
});
it("captures a two-key chord (F7 + F8) pressed simultaneously", async () => {
diff --git a/jarvis/ui/web/frontend/src/views/SettingsView.keybinds.test.tsx b/jarvis/ui/web/frontend/src/views/SettingsView.keybinds.test.tsx
index 9ff79d2b0a..0c6d092fdf 100644
--- a/jarvis/ui/web/frontend/src/views/SettingsView.keybinds.test.tsx
+++ b/jarvis/ui/web/frontend/src/views/SettingsView.keybinds.test.tsx
@@ -17,9 +17,8 @@ vi.mock("@/i18n", async (importOriginal) => {
const { saveKeybind, state } = vi.hoisted(() => {
const defaultConfig = {
- keybinds: { call: "f3+f4", hangup: "f1+f2", ptt: "ctrl+right_alt+j" },
- defaults: { call: "f3+f4", hangup: "f1+f2", ptt: "ctrl+right_alt+j" },
- push_to_talk: true,
+ keybinds: { call: "f3+f4", hangup: "f1+f2" },
+ defaults: { call: "f3+f4", hangup: "f1+f2" },
suggestions: [] as string[],
restart_required: false,
};
@@ -57,11 +56,11 @@ afterEach(() => {
});
describe("KeybindsPanel — Clear button", () => {
- it("renders a Clear button for every bound row", () => {
+ it("renders a Clear button for each supported bound row", () => {
render(<KeybindsPanel />);
expect(screen.queryByTestId("clear-keybind-call")).not.toBeNull();
expect(screen.queryByTestId("clear-keybind-hangup")).not.toBeNull();
- expect(screen.queryByTestId("clear-keybind-ptt")).not.toBeNull();
+ expect(screen.queryByTestId("clear-keybind-ptt")).toBeNull();
});
it("clicking Clear saves an empty hotkey for that action", async () => {
diff --git a/jarvis/ui/web/frontend/src/views/SettingsView.tsx b/jarvis/ui/web/frontend/src/views/SettingsView.tsx
index ae63888896..88e227c9c2 100644
--- a/jarvis/ui/web/frontend/src/views/SettingsView.tsx
+++ b/jarvis/ui/web/frontend/src/views/SettingsView.tsx
@@ -270,7 +270,7 @@ function WakeWordPanel() {
data: WakeSelfTestResult | null;
}>({ state: "idle", data: null });
// The activation master switch (product rule 2026-07-04): on = always-on wake
- // word (needs a local model for the user's word), off = hotkey / push-to-talk.
+ // word (needs a local model for the user's word), off = Call shortcut only.
const [enabled, setEnabled] = useState(false);
const [togglingActivation, setTogglingActivation] = useState(false);
// In-app recovery for the degraded-wake-word scenario: downloads the Vosk
@@ -758,15 +758,14 @@ function formatCombo(combo: string): string {
const _KEYBIND_ROWS: { action: KeybindAction; labelKey: string }[] = [
{ action: "call", labelKey: "settings_view.keybinds.call_label" },
{ action: "hangup", labelKey: "settings_view.keybinds.hangup_label" },
- { action: "ptt", labelKey: "settings_view.keybinds.talk_label" },
];
/**
- * Editable voice keybinds: Call / Hangup / Talk-PTT, one row each. The user
- * clicks Record and presses a combination (captured via eventToCombo), or
- * resets to default, then saves. The backend validator is the authority — an
- * unsafe combo or a collision with another action is rejected with a reason
- * shown as a toast. A successful save surfaces a restart-required hint.
+ * Editable Call and Hangup keybinds, one row each. The user clicks Record and
+ * presses a combination (captured via eventToCombo), or resets to default,
+ * then saves. The backend validator is the authority — an unsafe combo or a
+ * collision with the other action is rejected with a reason shown as a toast.
+ * A successful save surfaces a restart-required hint.
*/
export function KeybindsPanel() {
const t = useT();
@@ -809,7 +808,6 @@ const _KB_PLATFORM = detectKeyboardPlatform();
const _ACTION_LABEL_KEY: Record<KeybindAction, string> = {
call: "settings_view.keybinds.call_label",
hangup: "settings_view.keybinds.hangup_label",
- ptt: "settings_view.keybinds.talk_label",
};
/** The combo rendered as keycap chips ("Ctrl + F5" → [Ctrl] + [F5]). */
diff --git a/jarvis/ui/web/settings_routes.py b/jarvis/ui/web/settings_routes.py
index c6df47f003..d9a090cdfb 100644
--- a/jarvis/ui/web/settings_routes.py
+++ b/jarvis/ui/web/settings_routes.py
@@ -786,7 +786,7 @@ async def get_wake_word(request: Request) -> dict[str, object]:
"instant_phrases": list(INSTANT_WAKE_PHRASES),
"local_whisper_available": _local_whisper_available(),
# The activation master switch: True = always-on wake word (needs a local
- # model), False = hotkey / push-to-talk only.
+ # model), False = Call shortcut only.
"enabled": enabled,
}
@@ -888,7 +888,7 @@ async def put_wake_word(body: WakeWordBody, request: Request) -> dict[str, objec
"resolved_engine": plan.engine,
"degraded": plan.degraded,
# False when no local model matches the user's word: the wake word is off
- # and hotkey / push-to-talk is the activation (product rule 2026-07-04).
+ # and the Call shortcut is the activation.
"wake_available": plan.wake_available,
"message": plan.message,
"persisted": persisted,
@@ -909,8 +909,8 @@ async def set_wake_activation(body: WakeActivationBody, request: Request) -> dic
master switch (product rule 2026-07-04).
``True`` = always-on wake word, which REQUIRES a local model matching the
- user's own word (see ``resolve_wake_plan``); ``False`` = hotkey / push-to-talk
- only. This was previously settable only by hand-editing jarvis.toml (default
+ user's own word (see ``resolve_wake_plan``); ``False`` = Call shortcut only.
+ This was previously settable only by hand-editing jarvis.toml (default
False), so a fresh downloader could never enable their wake word in-app.
Persisted to ``[trigger] wake_word_enabled`` and applied to the running voice
@@ -1123,15 +1123,9 @@ async def wake_mic_level(request: Request) -> dict[str, object]:
}
-# ---------------------------------------------------------------------------
-# Push-to-talk hotkey (editable). GET current + safe suggestions; PUT to change.
-# Persisted to jarvis.toml [trigger].hotkey; applies on the next voice bootstrap
-# (a Jarvis restart) — the bindings are armed once at SpeechPipeline start.
-# ---------------------------------------------------------------------------
-
-# Curated safe combos for the UI quick-picks. All hold-able (for PTT) and clear
-# of OS-critical shortcuts. The CLAUDE.md guidance is "ctrl+right_alt+<letter>".
-_HOTKEY_SUGGESTIONS = [
+# Curated safe combos for the voice-keybind UI quick-picks. They avoid
+# OS-critical shortcuts and work across the supported desktop platforms.
+_KEYBIND_SUGGESTIONS = [
"ctrl+right_alt+j",
"ctrl+right_alt+k",
"ctrl+right_alt+space",
@@ -1140,72 +1134,12 @@ _HOTKEY_SUGGESTIONS = [
]
-class PttHotkeyBody(BaseModel):
- hotkey: str = Field(..., min_length=1, max_length=64)
- persist: bool = Field(default=True, description="Persist to jarvis.toml")
-
-
[email protected]("/ptt-hotkey")
-async def get_ptt_hotkey(request: Request) -> dict[str, object]:
- from jarvis.core.config import TriggerConfig
-
- cfg = _config(request)
- trig = getattr(cfg, "trigger", None) if cfg is not None else None
- default_hotkey = TriggerConfig().hotkey
- return {
- "hotkey": getattr(trig, "hotkey", default_hotkey) if trig else default_hotkey,
- "push_to_talk": bool(getattr(trig, "push_to_talk", True)) if trig else True,
- "default": default_hotkey,
- "suggestions": list(_HOTKEY_SUGGESTIONS),
- }
-
-
[email protected]("/ptt-hotkey")
-async def put_ptt_hotkey(body: PttHotkeyBody, request: Request) -> dict[str, object]:
- from jarvis.trigger.hotkey import validate_hotkey
-
- hotkey = body.hotkey.strip().lower()
- # Backend is the authority — a browser key-capture cannot be trusted to
- # filter OS-critical / unusable combos (AltGr detection is unreliable there).
- ok, reason = validate_hotkey(hotkey)
- if not ok:
- raise HTTPException(status_code=400, detail=reason)
-
- # Best-effort in-memory cfg update so a later cfg read agrees pre-restart.
- cfg = _config(request)
- if cfg is not None and getattr(cfg, "trigger", None) is not None:
- try:
- cfg.trigger.hotkey = hotkey # type: ignore[attr-defined]
- except Exception as exc: # noqa: BLE001 — frozen model is not an error
- log.debug("in-memory trigger.hotkey update skipped: %s", exc)
-
- persisted = False
- if body.persist:
- try:
- from jarvis.core import config_writer
-
- config_writer.set_ptt_hotkey(hotkey)
- persisted = True
- except Exception as exc: # noqa: BLE001
- log.warning("ptt-hotkey persist failed: %s", exc)
-
- return {
- "ok": True,
- "hotkey": hotkey,
- "persisted": persisted,
- # Bindings are armed once at SpeechPipeline construction (resolve_hotkeys),
- # so a hotkey change needs a voice restart to take effect.
- "restart_required": True,
- }
-
-
# ---------------------------------------------------------------------------
-# Voice keybinds (editable): Call / Hangup / Talk-PTT. GET all three + defaults;
+# Voice keybinds (editable): Call / Hangup. GET both actions plus defaults;
# PUT one action at a time. Persisted to jarvis.toml [trigger] AND live-applied
# to the running voice pipeline (set_keybinds → HotkeyTrigger.rearm), so a
# change takes effect immediately without a restart; a headless/down pipeline
-# falls back to "applies on next start". The legacy /ptt-hotkey route above
-# stays for backward compatibility.
+# falls back to "applies on next start".
# ---------------------------------------------------------------------------
@@ -1223,7 +1157,7 @@ def _keybind_values(trig: object) -> dict[str, str]:
class KeybindBody(BaseModel):
- action: str = Field(..., description="call | hangup | ptt")
+ action: str = Field(..., description="call | hangup")
hotkey: str = Field(..., max_length=64)
persist: bool = Field(default=True, description="Persist to jarvis.toml")
@@ -1241,9 +1175,8 @@ async def get_keybinds(request: Request) -> dict[str, object]:
restart_required = pipeline is None or not hasattr(pipeline, "set_keybinds")
return {
"keybinds": _keybind_values(trig),
- "defaults": {"call": d.hotkey_call, "hangup": d.hotkey_hangup, "ptt": d.hotkey},
- "push_to_talk": bool(getattr(trig, "push_to_talk", True)) if trig else True,
- "suggestions": list(_HOTKEY_SUGGESTIONS),
+ "defaults": {"call": d.hotkey_call, "hangup": d.hotkey_hangup},
+ "suggestions": list(_KEYBIND_SUGGESTIONS),
"restart_required": restart_required,
}
@@ -1326,9 +1259,8 @@ async def put_keybind(body: KeybindBody, request: Request) -> dict[str, object]:
pipeline = getattr(request.app.state, "speech_pipeline", None)
if pipeline is not None and hasattr(pipeline, "set_keybinds"):
try:
- # An empty hotkey re-arms with an EMPTY list, not a list
- # containing "" — mirrors how the PTT action already represents
- # "off" internally.
+ # An empty hotkey re-arms with an empty list, not a list containing
+ # "", so clearing a shortcut reliably disables that action.
pipeline.set_keybinds(**{action: [hotkey] if hotkey else []})
applied_live = True
except Exception as exc: # noqa: BLE001 — never fail the save on a live-apply hiccup
diff --git a/scripts/rewrite_locales.py b/scripts/rewrite_locales.py
index 13618621d9..712fe26455 100644
--- a/scripts/rewrite_locales.py
+++ b/scripts/rewrite_locales.py
@@ -248,8 +248,6 @@ EN = {
"rows": {
"wake_word_title": "Wake Word",
"wake_word_description": "Activation word for voice mode.",
- "ptt_title": "Push-to-Talk Hotkey",
- "ptt_description": "Alternative to wake word, always works.",
"privacy_title": "Privacy Mode",
"privacy_description": "Hybrid: STT local (Whisper), TTS/Brain cloud.",
"privacy_value": "Hybrid",
@@ -588,8 +586,6 @@ DE_OVERRIDES = {
"settings_view.reset": "Auf Defaults zurücksetzen",
"settings_view.rows.wake_word_title": "Wake-Word",
"settings_view.rows.wake_word_description": "Aktivierungswort für den Voice-Modus.",
- "settings_view.rows.ptt_title": "Push-to-Talk-Hotkey",
- "settings_view.rows.ptt_description": "Alternative zum Wake-Word, funktioniert immer.",
"settings_view.rows.privacy_title": "Privacy-Mode",
"settings_view.rows.privacy_description": "Hybrid: STT lokal (Whisper), TTS/Brain Cloud.",
"settings_view.rows.privacy_value": "Hybrid",
@@ -906,8 +902,6 @@ ES_OVERRIDES = {
"settings_view.reset": "Restablecer valores predeterminados",
"settings_view.rows.wake_word_title": "Palabra de activación",
"settings_view.rows.wake_word_description": "Palabra para activar el modo de voz.",
- "settings_view.rows.ptt_title": "Atajo Push-to-Talk",
- "settings_view.rows.ptt_description": "Alternativa a la palabra de activación, siempre funciona.",
"settings_view.rows.privacy_title": "Modo Privacidad",
"settings_view.rows.privacy_description": "Híbrido: STT local (Whisper), TTS/IA en la nube.",
"settings_view.rows.privacy_value": "Híbrido",
diff --git a/tests/unit/core/test_config_writer_keybinds.py b/tests/unit/core/test_config_writer_keybinds.py
index dab9923d59..66ea5753a8 100644
--- a/tests/unit/core/test_config_writer_keybinds.py
+++ b/tests/unit/core/test_config_writer_keybinds.py
@@ -1,4 +1,4 @@
-"""config_writer.set_keybind — persist Call/Hangup/PTT keybinds to [trigger]."""
+"""config_writer.set_keybind — persist Call/Hangup keybinds to [trigger]."""
from __future__ import annotations
from pathlib import Path
@@ -26,18 +26,11 @@ def test_set_keybind_hangup_writes_hotkey_hangup(tmp_path) -> None:
assert 'hotkey_hangup = "ctrl+shift+h"' in _read(toml)
-def test_set_keybind_ptt_writes_hotkey(tmp_path) -> None:
+def test_set_keybind_rejects_retired_ptt_action(tmp_path) -> None:
toml = tmp_path / "jarvis.toml"
toml.write_text("[trigger]\n", encoding="utf-8")
- config_writer.set_keybind("ptt", "ctrl+alt+m", path=toml)
- assert 'hotkey = "ctrl+alt+m"' in _read(toml)
-
-
-def test_set_ptt_hotkey_alias_still_writes_hotkey(tmp_path) -> None:
- toml = tmp_path / "jarvis.toml"
- toml.write_text("[trigger]\n", encoding="utf-8")
- config_writer.set_ptt_hotkey("ctrl+alt+n", path=toml)
- assert 'hotkey = "ctrl+alt+n"' in _read(toml)
+ with pytest.raises(ValueError):
+ config_writer.set_keybind("ptt", "ctrl+alt+m", path=toml)
def test_set_keybind_unknown_action_raises(tmp_path) -> None:
diff --git a/tests/unit/core/test_trigger_keybinds.py b/tests/unit/core/test_trigger_keybinds.py
index 4a5408e5f0..e1c7b6083c 100644
--- a/tests/unit/core/test_trigger_keybinds.py
+++ b/tests/unit/core/test_trigger_keybinds.py
@@ -1,55 +1,34 @@
-"""TriggerConfig keybind fields + resolve_hotkeys (configurable Call/Hangup/PTT)."""
+"""TriggerConfig keybind fields and retired push-to-talk compatibility."""
from __future__ import annotations
from jarvis.core.config import TriggerConfig
-def test_defaults_match_legacy_hardcoded_values() -> None:
+def test_defaults_expose_only_call_and_hangup_shortcuts() -> None:
t = TriggerConfig()
- assert t.hotkey == "ctrl+right_alt+j"
+ assert t.hotkey == ""
assert t.hotkey_call == "f3+f4"
assert t.hotkey_hangup == "f1+f2"
+ assert t.push_to_talk is False
-def test_resolve_hotkeys_ptt_on_uses_call_field() -> None:
+def test_resolve_hotkeys_ignores_legacy_push_to_talk_values() -> None:
t = TriggerConfig(push_to_talk=True, hotkey="ctrl+right_alt+j", hotkey_call="f7+f8")
call, ptt = t.resolve_hotkeys()
assert call == ("f7+f8",)
- assert ptt == ("ctrl+right_alt+j",)
-
-
-def test_resolve_hotkeys_ptt_off_has_two_call_combos_no_ptt() -> None:
- t = TriggerConfig(push_to_talk=False, hotkey="ctrl+shift+space", hotkey_call="f7+f8")
- call, ptt = t.resolve_hotkeys()
- assert call == ("ctrl+shift+space", "f7+f8")
assert ptt == ()
-def test_old_toml_without_new_keys_keeps_legacy_behaviour() -> None:
- # A config built only from the legacy keys must behave exactly as before.
+def test_old_config_values_remain_parseable_but_are_not_armed() -> None:
t = TriggerConfig(hotkey="ctrl+right_alt+j", push_to_talk=True)
call, ptt = t.resolve_hotkeys()
assert call == ("f3+f4",)
- assert ptt == ("ctrl+right_alt+j",)
+ assert ptt == ()
assert t.hotkey_hangup == "f1+f2"
-def test_resolve_hotkeys_drops_blank_call_when_ptt_on() -> None:
+def test_resolve_hotkeys_drops_a_cleared_call_shortcut() -> None:
t = TriggerConfig(push_to_talk=True, hotkey="ctrl+right_alt+j", hotkey_call="")
call, ptt = t.resolve_hotkeys()
assert call == ()
- assert ptt == ("ctrl+right_alt+j",)
-
-
-def test_resolve_hotkeys_drops_blank_ptt_when_ptt_on() -> None:
- t = TriggerConfig(push_to_talk=True, hotkey="", hotkey_call="f3+f4")
- call, ptt = t.resolve_hotkeys()
- assert call == ("f3+f4",)
- assert ptt == ()
-
-
-def test_resolve_hotkeys_drops_blank_entries_when_ptt_off() -> None:
- t = TriggerConfig(push_to_talk=False, hotkey="", hotkey_call="f3+f4")
- call, ptt = t.resolve_hotkeys()
- assert call == ("f3+f4",)
assert ptt == ()
diff --git a/tests/unit/speech/test_wake_dead_state.py b/tests/unit/speech/test_wake_dead_state.py
index 2a2e4bd6fa..d00821563f 100644
--- a/tests/unit/speech/test_wake_dead_state.py
+++ b/tests/unit/speech/test_wake_dead_state.py
@@ -106,7 +106,7 @@ def _shell_for_set_wake_plan() -> SpeechPipeline:
def test_set_wake_plan_stt_match_without_whisper_is_hotkey_only(monkeypatch) -> None:
"""A live switch to a custom phrase on a box where the wake Whisper cannot be
built must NOT fall back to a branded 'Hey Rhasspy' model (product rule
- 2026-07-04). It arms NO detector — wake OFF, hotkey/PTT activation — which is
+ 2026-07-04). It arms NO detector — wake OFF, Call-shortcut activation — which is
a RECOVERABLE parked state (the wake loop parks on _wake_reload_event so a
later set_wake_plan re-arms it), not the old permanent dead listener."""
import jarvis.plugins.stt as stt_pkg
diff --git a/tests/unit/speech/test_wake_live_apply.py b/tests/unit/speech/test_wake_live_apply.py
index 7434179520..a945a07186 100644
--- a/tests/unit/speech/test_wake_live_apply.py
+++ b/tests/unit/speech/test_wake_live_apply.py
@@ -102,7 +102,7 @@ def test_verify_prefix_false_for_stt_match_custom_name() -> None:
def test_unknown_phrase_without_model_is_hotkey_only() -> None:
# Product rule (2026-07-04): an unknown phrase without a local model does NOT
# degrade to a branded 'Hey Rhasspy' model — the wake word is OFF and the
- # user activates via hotkey / push-to-talk. No detector is armed.
+ # user activates via the Call shortcut. No detector is armed.
plan = resolve_wake_plan(_cfg(phrase="Computer"), local_whisper_available=False)
assert plan.engine == "none"
assert plan.wake_available is False
diff --git a/tests/unit/speech/test_wake_phrase.py b/tests/unit/speech/test_wake_phrase.py
index a3621a6bb9..b6d5435cde 100644
--- a/tests/unit/speech/test_wake_phrase.py
+++ b/tests/unit/speech/test_wake_phrase.py
@@ -305,9 +305,9 @@ def test_arbitrary_phrase_with_local_whisper_resolves_to_stt_match() -> None:
assert plan.matcher.search("hey computer") is not None
-def test_arbitrary_phrase_without_local_whisper_is_hotkey_only() -> None:
+def test_arbitrary_phrase_without_local_whisper_is_call_shortcut_only() -> None:
# Product rule (2026-07-04): no local model for the user's OWN word -> the
- # wake word is OFF (hotkey / push-to-talk activation), NOT a silent branded
+ # wake word is OFF (Call-shortcut activation), NOT a silent branded
# 'Hey Rhasspy' fallback that listens for a word the user never says.
plan = resolve_wake_plan(_cfg(phrase="Computer"), local_whisper_available=False)
assert plan.wake_available is False
@@ -315,14 +315,14 @@ def test_arbitrary_phrase_without_local_whisper_is_hotkey_only() -> None:
assert plan.oww_model_path is None
assert plan.degraded is True
assert "computer" in plan.message.lower()
- # The message must point the user at the real options AND the hotkey.
+ # The message must point the user at the real options and the Call shortcut.
assert "local" in plan.message.lower() or "onnx" in plan.message.lower()
- assert "hotkey" in plan.message.lower() or "push-to-talk" in plan.message.lower()
+ assert "call shortcut" in plan.message.lower()
def test_wake_available_reflects_whether_a_local_model_exists() -> None:
# The product rule in one test: an arbitrary word works IF a local model is
- # available (stt_match via local Whisper), and is hotkey-only otherwise —
+ # available (stt_match via local Whisper), and is Call-shortcut-only otherwise —
# never a silent branded substitute.
with_model = resolve_wake_plan(_cfg(phrase="Nebula"), local_whisper_available=True)
assert with_model.engine == "stt_match"
diff --git a/tests/unit/ui/test_keybinds_route.py b/tests/unit/ui/test_keybinds_route.py
index 3d6e5be975..aa1d8785fb 100644
--- a/tests/unit/ui/test_keybinds_route.py
+++ b/tests/unit/ui/test_keybinds_route.py
@@ -1,4 +1,4 @@
-"""GET/PUT /api/settings/keybinds — editable Call/Hangup/Talk keybinds."""
+"""GET/PUT /api/settings/keybinds — editable Call/Hangup keybinds."""
from __future__ import annotations
from types import SimpleNamespace
@@ -23,18 +23,22 @@ def _client(**trig) -> TestClient:
return TestClient(app)
-def test_get_returns_all_three_plus_defaults() -> None:
+def test_get_returns_call_and_hangup_plus_defaults() -> None:
body = _client().get("/api/settings/keybinds").json()
assert body["keybinds"] == {
"call": "f3+f4",
"hangup": "f1+f2",
- "ptt": "ctrl+right_alt+j",
}
- assert body["defaults"]["call"] == "f3+f4"
+ assert body["defaults"] == {"call": "f3+f4", "hangup": "f1+f2"}
+ assert "push_to_talk" not in body
assert body["restart_required"] is True
assert len(body["suggestions"]) >= 3
+def test_retired_ptt_hotkey_route_is_not_mounted() -> None:
+ assert _client().get("/api/settings/ptt-hotkey").status_code == 404
+
+
def test_put_call_accepts_and_normalizes_case() -> None:
body = _client().put(
"/api/settings/keybinds",
@@ -62,6 +66,14 @@ def test_put_rejects_unknown_action() -> None:
assert resp.status_code == 400
+def test_put_rejects_retired_ptt_action() -> None:
+ resp = _client().put(
+ "/api/settings/keybinds",
+ json={"action": "ptt", "hotkey": "ctrl+alt+m", "persist": False},
+ )
+ assert resp.status_code == 400
+
+
def test_put_rejects_collision_with_other_action() -> None:
# call defaults to f3+f4; binding hangup to the same combo must be rejected.
resp = _client().put(
@@ -151,7 +163,7 @@ def test_put_live_apply_failure_still_persists(monkeypatch) -> None:
client.app.state.speech_pipeline = _BoomPipeline()
resp = client.put(
"/api/settings/keybinds",
- json={"action": "ptt", "hotkey": "ctrl+alt+m", "persist": True},
+ json={"action": "call", "hotkey": "ctrl+alt+m", "persist": True},
)
body = resp.json()
assert resp.status_code == 200
@@ -230,10 +242,10 @@ def test_put_empty_hotkey_live_applies_empty_list() -> None:
client.app.state.speech_pipeline = _FakePipeline()
resp = client.put(
"/api/settings/keybinds",
- json={"action": "ptt", "hotkey": "", "persist": False},
+ json={"action": "call", "hotkey": "", "persist": False},
)
assert resp.json()["applied_live"] is True
- assert calls == [{"ptt": []}]
+ assert calls == [{"call": []}]
def test_get_reflects_cleared_keybind() -> None:
diff --git a/tests/unit/ui/test_ptt_hotkey_route.py b/tests/unit/ui/test_ptt_hotkey_route.py
deleted file mode 100644
index e4674dec0c..0000000000
--- a/tests/unit/ui/test_ptt_hotkey_route.py
+++ /dev/null
@@ -1,96 +0,0 @@
-"""GET/PUT /api/settings/ptt-hotkey — the editable push-to-talk hotkey surface."""
-from __future__ import annotations
-
-from types import SimpleNamespace
-
-from fastapi import FastAPI
-from fastapi.testclient import TestClient
-
-from jarvis.ui.web.settings_routes import router
-
-
-def _client(hotkey: str = "ctrl+right_alt+j", push_to_talk: bool = True) -> TestClient:
- app = FastAPI()
- app.include_router(router)
- app.state.config = SimpleNamespace(
- trigger=SimpleNamespace(hotkey=hotkey, push_to_talk=push_to_talk)
- )
- return TestClient(app)
-
-
-def test_get_returns_current_default_and_suggestions() -> None:
- body = _client().get("/api/settings/ptt-hotkey").json()
- assert body["hotkey"] == "ctrl+right_alt+j"
- assert body["push_to_talk"] is True
- assert body["default"] == "ctrl+right_alt+j"
- assert "ctrl+right_alt+j" in body["suggestions"]
- assert len(body["suggestions"]) >= 3
-
-
-def test_put_accepts_safe_combo() -> None:
- resp = _client().put(
- "/api/settings/ptt-hotkey",
- json={"hotkey": "ctrl+right_alt+k", "persist": False},
- )
- body = resp.json()
- assert resp.status_code == 200
- assert body["ok"] is True
- assert body["hotkey"] == "ctrl+right_alt+k"
- assert body["restart_required"] is True
- assert body["persisted"] is False
-
-
-def test_put_rejects_unsafe_combo() -> None:
- # A single bare key would fire on every keystroke — backend must reject it.
- resp = _client().put(
- "/api/settings/ptt-hotkey",
- json={"hotkey": "j", "persist": False},
- )
- assert resp.status_code == 400
- assert resp.json()["detail"] # carries a user-facing reason
-
-
-def test_put_rejects_os_critical_combo() -> None:
- resp = _client().put(
- "/api/settings/ptt-hotkey",
- json={"hotkey": "alt+f4", "persist": False},
- )
- assert resp.status_code == 400
-
-
-def test_put_in_memory_update_reflects_in_get() -> None:
- client = _client()
- client.put(
- "/api/settings/ptt-hotkey",
- json={"hotkey": "ctrl+shift+space", "persist": False},
- )
- body = client.get("/api/settings/ptt-hotkey").json()
- assert body["hotkey"] == "ctrl+shift+space"
-
-
-def test_put_persist_calls_config_writer(monkeypatch) -> None:
- from jarvis.core import config_writer
-
- captured: dict = {}
-
- def _fake_set_ptt_hotkey(hotkey, *, path=None): # noqa: ANN001
- captured["hotkey"] = hotkey
-
- monkeypatch.setattr(config_writer, "set_ptt_hotkey", _fake_set_ptt_hotkey)
-
- resp = _client().put(
- "/api/settings/ptt-hotkey",
- json={"hotkey": "ctrl+alt+m", "persist": True},
- )
- assert resp.status_code == 200
- assert resp.json()["persisted"] is True
- assert captured["hotkey"] == "ctrl+alt+m"
-
-
-def test_put_normalizes_case() -> None:
- """A mixed-case combo from a key-capture is normalized to lowercase."""
- body = _client().put(
- "/api/settings/ptt-hotkey",
- json={"hotkey": "Ctrl+Right_Alt+M", "persist": False},
- ).json()
- assert body["hotkey"] == "ctrl+right_alt+m"