Skip to content

fix: disable thinking in analyze-prompt for Haiku compatibility - #14

Merged
dannyshmueli merged 1 commit into
vibe-log:mainfrom
jakeefr:fix/analyze-prompt-thinking
Apr 18, 2026
Merged

dannyshmueli merged 1 commit into
vibe-log:mainfrom
jakeefr:fix/analyze-prompt-thinking

Conversation

@jakeefr

@jakeefr jakeefr commented Apr 17, 2026

Copy link
Copy Markdown
Contributor

Fixes #6. Set maxThinkingTokens: 0 in the analyze-prompt query options so the SDK's global thinking mode (driven by alwaysThinkingEnabled in settings.json) does not apply to Haiku-based analysis, which the API rejects with a 400 error.

When Claude Code has alwaysThinkingEnabled: true in settings.json, the
SDK enables thinking mode globally and the analyze-prompt hook fails
with a 400 error because Haiku does not support thinking.

Set maxThinkingTokens: 0 in the query options so the user setting does
not apply to analysis queries. Analysis only emits a JSON response, so
thinking is not needed regardless of model.

Fixes vibe-log#6

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@dannyshmueli dannyshmueli self-assigned this Apr 17, 2026
@dannyshmueli
dannyshmueli merged commit 4f55efb into vibe-log:main Apr 18, 2026
9 checks passed
@dannyshmueli

Copy link
Copy Markdown
Contributor

Thanks @jakeefr for the fix. This has been merged and released in v0.8.7: https://github.com/vibe-log/vibe-log-cli/releases/tag/v0.8.7

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.

analyze-prompt fails with "does not support thinking" when alwaysThinkingEnabled is true

2 participants