Skip to content

Default the Claude Code injection check to Claude Haiku 5.5 - #2175

Merged
zentron merged 3 commits into
mainfrom
roberterez/sf-3843-update-the-claude-code-steps-injection-check-to-claude-haiku
Oct 13, 2026
Merged

zentron merged 3 commits into
mainfrom
roberterez/sf-3843-update-the-claude-code-steps-injection-check-to-claude-haiku

Conversation

@zentron

@zentron zentron commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

This change moves the Claude Code step's prompt injection check to Claude Haiku 5.5. The default model goes from claude-haiku-4-5 to claude-haiku-5-5.

Why max tokens goes from 1024 to 2048

Haiku 4.5 had no thinking. The output was only the small JSON verdict, so 1024 was plenty.

Haiku 5.5 has thinking on by default at medium effort. Thinking tokens count toward max_tokens. They use up the budget before the verdict is written.

If the budget runs out, the response has no verdict. The check then throws and the step fails unless the fail-open option is set.

A higher cap costs nothing extra. You pay only for the tokens used, at $0.50 per million output tokens. The cap only stops a long thought from cutting off the verdict.

2048 is double the old value. It still limits runaway thinking. It is an estimate until we measure real usage.

Token usage logging

The check now logs its input and output tokens at verbose level. This lets us compare real output tokens against the 2048 cap.

If the model runs out of output tokens, the step now fails with a clear message. The old message was "returned no verdict content".

Not in this change

The step still sends no effort setting. Haiku 5.5 uses its default effort of medium.

This change doesn't need a server change. The matching UI text and docs updates are in separate PRs:

Linear: SF-3843

🤖 Generated with Claude Code

Raises the default max tokens so thinking tokens don't truncate the verdict.
@zentron
zentron marked this pull request as ready for review October 11, 2026 12:26
@zentron
zentron merged commit e1f3a60 into main Oct 13, 2026
29 checks passed
@zentron
zentron deleted the roberterez/sf-3843-update-the-claude-code-steps-injection-check-to-claude-haiku branch October 13, 2026 01:23
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.

2 participants