# NousResearch/hermes-agent · Fix return-in-finally SyntaxWarning for Python 3.14+

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #23654: fix(cli): remove return from voice finally block

These issues and PRs address a SyntaxWarning introduced in Python 3.14+ caused by return statements inside finally blocks in voice-related CLI code. The changes move or remove those return statements to resolve the warning.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 1 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #73520. Verify it addresses your case.
- **Recommended:** read PR #73520 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #21088: SyntaxWarning: return in finally block in _voice_process_recording (Python 3.14+)

## Prior & competing PRs

- **#73520: fix(voice): CLI/TUI voice mode UX and environment fixes (15 items)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `cli.py`, `contributors/emails/[redacted:email]`, `contributors/emails/[redacted:email]`, `contributors/emails/[redacted:email]`, `contributors/emails/[redacted:email]`, `contributors/emails/[redacted:email]`, `contributors/emails/simonmmafs@users.noreply.github.com`, `hermes_cli/config.py`, `hermes_cli/voice.py`, `tests/hermes_cli/test_voice_wrapper.py`, `tests/test_tui_gateway_server.py`, `tests/test_voice_max_recording_seconds.py`, `tests/tools/test_clipboard.py`, `tests/tools/test_termux_api_detection.py`, `tests/tools/test_tts_macos_output.py`, `tests/tools/test_voice_cli_integration.py`, `tests/tools/test_voice_mode.py`, `tests/tools/test_voice_wsl_pipewire.py`, `tools/tts_tool.py`, `tools/voice_mode.py` (+4 more)
- **#21100: fix(voice): remove return-in-finally to fix Python 3.14+ SyntaxWarning**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `e04c2a9ebd`, `#73520`, `#52004`
- **#21261: fix(cli): move return out of finally block in _voice_stop_and_transcribe (Python 3.14+)**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `e04c2a9ebd`, `#73520`, `#52004`, `#21100`
- **#23654: fix(cli): remove return from voice finally block**. open
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#21100`, `#21261`
  - files: `cli.py`, `tests/tools/test_voice_cli_integration.py`

## Fix status

- Merged to main in PR #73520 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-07-28`.
- Subsystem: `hermes_cli`
