Skip to content

Conversation

@Tarquinen
Copy link
Collaborator

@Tarquinen Tarquinen commented Jan 15, 2026

  • Simplify injection timing, instead of checking provider/model, universally only inject if previous message is not user. This complies with many providers requiring first assistant turn in reasoning models to have reasoning block
  • Change gemini injection to use text part instead of tool part in assistant injections as not all oauth plugins support this properly

Tarquinen and others added 4 commits January 15, 2026 12:17
Replace provider-specific checks (GitHub Copilot, Anthropic reasoning detection) with a universal rule: never inject immediately following a user message. This avoids interfering with model reasoning/thinking phases across all providers.
fix: simplify injection timing to wait for assistant turn
…errors

Gemini 3+ models have strict validation requiring thoughtSignature on functionCall parts. When the plugin injects synthetic assistant messages with tool parts, providers without robust signature handling will fail with 400 errors.

This change detects Gemini models and injects as text parts instead of tool parts, avoiding the thought signature requirement entirely.
…e-injection

fix: use text injection for Gemini models to avoid thought signature errors
@Tarquinen Tarquinen merged commit bdc5f78 into master Jan 15, 2026
1 check passed
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