Skip to content

行先選択直後にTTS再生が始まるバグを修正 - #5278

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

TinyKitten merged 1 commit into
devfrom
fix/tts

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Feb 14, 2026 •

Copy link
Copy Markdown
Member

Summary by CodeRabbit

リリースノート

  • 改善
    • 駅到着・出発時のテキスト読み上げの動作を改善しました。路線選択後、出発するまでの初回読み上げを抑制するようになり、より適切なタイミングで案内情報が提供されます。

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

coderabbitai Bot commented Feb 14, 2026 •

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

useTTS フックに駅到着状態に基づくTTS抑制機構を導入。最初の駅選択後のTTSを出発まで抑制し、到着/出発状態の変化を追跡管理する内部ロジックを追加。

Changes

Cohort / File(s) Summary
Station-based TTS Gating
src/hooks/useTTS.ts
到着状態(arrived)と選択駅(selectedBound)を参照する駅ベースゲーティングを実装。最初のTTSを出発まで抑制するため、suppressFirstSpeechUntilDepartureRef と prevSelectedBoundIdRef の参照を用いた状態追跡を追加。Effect依存配列に arrived を拡張し、駅選択変更時に抑制状態を設定する専用 useEffect ブロックを新規追加。

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

Poem

🐰 ウサギが喜ぶ、駅での音声の調整♪
到着まで待つ、TTS のお行儀よく
出発の瞬間、音声よみがえり✨
参照を積み重ね、状態を守りて
旅路の安らぎ、より良き会話へ

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed プルリクエストのタイトルは変更内容の主要な目的を明確に表現しており、実装内容と一致しています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Merge Conflict Detection ✅ Passed ✅ No merge conflicts detected when merging into dev

✏️ 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

No actionable comments were generated in the recent review. 🎉


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

@TinyKitten
TinyKitten merged commit b225b3f into dev Feb 14, 2026
5 checks passed
@TinyKitten
TinyKitten deleted the fix/tts branch February 14, 2026 00:26
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