Skip to content

Conversation

@marius-kilocode
Copy link
Collaborator

Summary

Partially revert #101 — remove the workarounds that were added for thinking block signature validation, while keeping Claude reasoning enabled via Kilo Gateway.

Reverted

  • Thinking/reasoning block stripping from messages sent to OpenRouter/Kilo Gateway
  • toolCallId normalization skip for OpenRouter/Kilo Gateway
  • Prompt caching skip for OpenRouter/Kilo Gateway
  • Adaptive thinking scaffolding (disabled code)
  • Codex-specific reasoning format for Kilo Gateway

Kept

  • Claude reasoning enabled via Kilo Gateway using the standard OpenRouter reasoning: { effort } format
  • GPT/gemini-3 encrypted reasoning content handling
  • sdkKey mapping for @kilocode/kilo-gateway
  • grok-3-mini reasoning support via Kilo Gateway

Known issue

There is still a provider error on the second message when using Claude with reasoning enabled via Kilo Gateway. Anthropic's API requires thinking blocks to have valid cryptographic signatures that are unchanged, but our message storage reconstructs them which breaks validation. The workarounds that were reverted here were addressing this — a proper fix is still needed.

…ing enabled

Revert the thinking block stripping, toolCallId normalization skip,
and caching skip workarounds from PR #101. Keep Claude reasoning
enabled via Kilo Gateway using the standard OpenRouter reasoning format.

Known issue: provider error on second message with Claude when reasoning
is enabled (thinking block signature validation failure).
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.

1 participant