[QA] Verify CLI voice beep toggle (#952) #1037

Open
Rockachopa wants to merge 186 commits from fix/952 into main
Owner

Closes #952

Summary

  • backport the upstream CLI voice beep toggle so record start/stop beeps honor voice.beep_enabled
  • add focused voice integration tests for default-on, config-off, start-recording silent mode, and stop-recording silent mode
  • document voice.beep_enabled in the voice-mode user guide and config example
  • harden the targeted voice CLI tests with local import shims and a deterministic wait for async no-speech restart

Grounding

  • issue #952 explicitly pointed at upstream/main / a synced checkout
  • forge main did not contain the upstream _voice_beeps_enabled() gate or the new beep-toggle tests
  • upstream main did contain the feature and tests, so this PR restores that slice to the fork

Acceptance

  • Beep behavior is actually toggled by config
  • Existing voice/TTS integration behavior is not regressed
  • Targeted tests pass

Verification

  • python3 -m py_compile cli.py tests/tools/test_voice_cli_integration.py
  • PYTHONPATH=/tmp/BURN-7-2 pytest -q tests/tools/test_voice_cli_integration.py
Closes #952 ## Summary - backport the upstream CLI voice beep toggle so record start/stop beeps honor `voice.beep_enabled` - add focused voice integration tests for default-on, config-off, start-recording silent mode, and stop-recording silent mode - document `voice.beep_enabled` in the voice-mode user guide and config example - harden the targeted voice CLI tests with local import shims and a deterministic wait for async no-speech restart ## Grounding - issue #952 explicitly pointed at upstream/main / a synced checkout - forge `main` did not contain the upstream `_voice_beeps_enabled()` gate or the new beep-toggle tests - upstream `main` did contain the feature and tests, so this PR restores that slice to the fork ## Acceptance - [x] Beep behavior is actually toggled by config - [x] Existing voice/TTS integration behavior is not regressed - [x] Targeted tests pass ## Verification - `python3 -m py_compile cli.py tests/tools/test_voice_cli_integration.py` - `PYTHONPATH=/tmp/BURN-7-2 pytest -q tests/tools/test_voice_cli_integration.py`
Rockachopa added 1 commit 2026-04-22 15:34:03 +00:00
fix: add CLI voice beep toggle
All checks were successful
Lint / lint (pull_request) Successful in 9s
de6f0d174c
Closes #952
claude approved these changes 2026-04-22 16:10:53 +00:00
claude left a comment
Member

Clean implementation. The beep toggle is well-guarded with config loading, sensible default (enabled), and proper exception handling.

Positive:

  • _voice_beeps_enabled() safely defaults to True if config loading fails
  • Tests cover default-on, config-off, and both start/stop recording paths
  • Import shims for test isolation are correct

Minor:

  1. The _ensure_cli_import_shims() is called both at module level and inside _make_voice_cli(). The module-level call should be sufficient.
  2. Consider using pytest fixtures instead of manual shim management for cleaner test setup.
Clean implementation. The beep toggle is well-guarded with config loading, sensible default (enabled), and proper exception handling. Positive: - _voice_beeps_enabled() safely defaults to True if config loading fails - Tests cover default-on, config-off, and both start/stop recording paths - Import shims for test isolation are correct Minor: 1. The _ensure_cli_import_shims() is called both at module level and inside _make_voice_cli(). The module-level call should be sufficient. 2. Consider using pytest fixtures instead of manual shim management for cleaner test setup.
All checks were successful
Lint / lint (pull_request) Successful in 9s
This pull request has changes conflicting with the target branch.
  • cli.py
  • gateway/platforms/api_server.py
  • hermes_cli/models.py
  • hermes_cli/web_server.py
  • run_agent.py
  • tests/hermes_cli/test_web_server.py
  • tools/browser_tool.py
  • tools/file_tools.py
  • tools/skill_manager_tool.py
  • web/src/i18n/en.ts
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin fix/952:fix/952
git checkout fix/952
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/hermes-agent#1037