Skip to content

refactor(VM-202): Eliminate duplication between speak-only and conversation modes - #110

Merged
mbailey merged 1 commit into
masterfrom
refactor/VM-202-eliminate-duplication-in-converse
Nov 9, 2025
Merged

refactor(VM-202): Eliminate duplication between speak-only and conversation modes#110
mbailey merged 1 commit into
masterfrom
refactor/VM-202-eliminate-duplication-in-converse

Conversation

@mbailey

@mbailey mbailey commented Nov 9, 2025

Copy link
Copy Markdown
Owner

Unified the TTS execution flow in converse() function by:

  • Deleted duplicate speak-only block (lines 1124-1279)
  • Created single unified flow with conditional STT execution
  • Added early return for speak-only mode after TTS success
  • Fixed error handling to properly support mock tests

Results:

  • Reduced function from 1722 to 1602 lines (120 lines eliminated)
  • Zero code duplication between modes
  • All tests pass unchanged
  • Both modes work identically to before

This simplifies the codebase and will make the repeat-phrase feature branch much easier to merge.

🤖 Generated with Claude Code

…sation modes

Unified the TTS execution flow in converse() function by:
- Deleted duplicate speak-only block (lines 1124-1279)
- Created single unified flow with conditional STT execution
- Added early return for speak-only mode after TTS success
- Fixed error handling to properly support mock tests

Results:
- Reduced function from 1722 to 1602 lines (120 lines eliminated)
- Zero code duplication between modes
- All tests pass unchanged
- Both modes work identically to before

This simplifies the codebase and will make the repeat-phrase feature
branch much easier to merge.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@mbailey
mbailey merged commit 5dc74ea into master Nov 9, 2025
6 checks passed
@mbailey
mbailey deleted the refactor/VM-202-eliminate-duplication-in-converse branch November 9, 2025 13:56
marc-shade pushed a commit to marc-shade/voicemode that referenced this pull request Feb 2, 2026
…-duplication-in-converse

refactor(VM-202): Eliminate duplication between speak-only and conversation modes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant