Skip to content

fix(stt): add missing || true to SessionStart hook#4

Open
Kyotani-Hub wants to merge 1 commit into
elevenlabs:mainfrom
Kyotani-Hub:fix/stt-hook-missing-or-true
Open

fix(stt): add missing || true to SessionStart hook#4
Kyotani-Hub wants to merge 1 commit into
elevenlabs:mainfrom
Kyotani-Hub:fix/stt-hook-missing-or-true

Conversation

@Kyotani-Hub
Copy link
Copy Markdown

Summary

The STT plugin's SessionStart hook in stt/hooks/hooks.json is missing 2>/dev/null || true at the end of its command, unlike the TTS plugin which has it. This causes Claude Code to display a startup hook error when the elevenlabs_stt module isn't installed or the daemon fails to start.

Before:

python3 ... start --background 2>/dev/null || python ... start --background

After:

python3 ... start --background 2>/dev/null || python ... start --background 2>/dev/null || true

This matches the pattern already used by the TTS plugin's SessionStart and Stop hooks (see tts/hooks/hooks.json).

Fixes #2

Change

One-line change in stt/hooks/hooks.json: append 2>/dev/null || true to the SessionStart command so that the hook always exits with code 0, even when the STT daemon isn't available.

The TTS plugin's SessionStart hook ends with `2>/dev/null || true` to
ensure exit code 0 when the daemon isn't set up. The STT hook was
missing this, causing Claude Code to display a startup hook error.

Fixes elevenlabs#2
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.

STT SessionStart hook missing '|| true' causes Claude Code startup error

1 participant