Skip to content

TTSでオートモードを特別扱いしない - #5314

Merged
TinyKitten merged 1 commit into
devfrom
fix/tts
Feb 17, 2026
Merged

TinyKitten merged 1 commit into
devfrom
fix/tts

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Feb 17, 2026 •

Copy link
Copy Markdown
Member

条件によって初回TTSがオートモードで再生されなくなった

Summary by CodeRabbit

リリースノート

  • Refactor

    • テキスト音声読み上げ機能の抑制ロジックを最適化しました。
  • Tests

    • テキスト音声読み上げ機能に関するユニットテストを追加しました。

@TinyKitten TinyKitten self-assigned this Feb 17, 2026
@github-actions github-actions Bot added the react label Feb 17, 2026
@coderabbitai

coderabbitai Bot commented Feb 17, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉


📝 Walkthrough

Walkthrough

TTS抑制ロジックを新しいユーティリティ関数 computeSuppressionDecision に抽出し、useTTS フックを簡潔化しました。抑制パターンはポストファーストスピーチと出発待機の2つで、依存配列も削減されました。

Changes

Cohort / File(s) Summary
TTS抑制ロジック抽出
src/utils/computeSuppressionDecision.ts
ポストファーストスピーチと出発待機の2つの独立した抑制パターンを実装する新規ユーティリティ関数を追加。参照フラグと到着状態に基づいて抑制判定を返す。
TTS抑制テスト
src/utils/computeSuppressionDecision.test.ts
computeSuppressionDecisionの包括的なユニットテスト(76行追加)。デフォルト動作、ポストファーストスピーチ抑制、出発待機抑制のケースをカバー。
フック簡潔化
src/hooks/useTTS.ts
suppressInitialCheckDoneRefを削除し、明示的な抑制ロジックをcomputeSuppressionDecision呼び出しに置き換え。useEffect依存配列を簡潔化(autoModeEnabledを削除)。

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Suggested labels

react

Poem

🐰 TTS の抑制、スッキリ抽出
複雑なロジックを再利用へ
テストもぴっかり安心だ
フックは優雅に、ユーティリティに委ねて
喜びの音声再生、ピンピン跳ねる!

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed プルリクエストのタイトル「TTSでオートモードを特別扱いしない」は、変更セットの主な目的である自動モード環境でのTTS再生問題の修正を明確に表現しており、変更内容と正確に対応している。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/tts

Comment @coderabbitai help to get the list of available commands and usage tips.

@TinyKitten
TinyKitten merged commit 946b9b7 into dev Feb 17, 2026
5 checks passed
@TinyKitten
TinyKitten deleted the fix/tts branch February 17, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant