Skip to content

fix(ai-gateway): prevent direct-gateway feature fallback when using Kilo - #6553

Merged
chrarnoldus merged 1 commit into
mainfrom
funny-tree
Sep 23, 2026
Merged

chrarnoldus merged 1 commit into
mainfrom
funny-tree

Conversation

@chrarnoldus

Copy link
Copy Markdown
Contributor

Summary

  • disable the direct-gateway fallback for user agents beginning with Kilo-Code/
  • pass the incoming user-agent header into fallback feature detection
  • add focused coverage for Kilo Code and other user agents

Testing

  • Not run locally per request; CI will validate the change.

@chrarnoldus chrarnoldus self-assigned this Sep 22, 2026
@kilo-code-bot

kilo-code-bot Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Code Review Summary

Status: 1 Issue Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 0
SUGGESTION 1
Issue Details (click to expand)

SUGGESTION

File Line Issue
apps/web/src/lib/ai-gateway/determineFallbackFeature.ts 10 UA check covers only Kilo-Code/, not the opencode-kilo-provider/... UA documented for the current extension/CLI
Files Reviewed (3 files)
  • apps/web/src/app/api/openrouter/[...path]/route.ts - 0 issues
  • apps/web/src/lib/ai-gateway/determineFallbackFeature.ts - 1 issue
  • apps/web/src/lib/ai-gateway/determineFallbackFeature.test.ts - 0 issues

Fix these issues in Kilo Cloud


Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0

Review guidance: REVIEW.md from base branch main

@chrarnoldus chrarnoldus changed the title fix(ai-gateway): prevent Kilo Code fallback fix(ai-gateway): prevent direct-gateway feature fallback when using Kilo Sep 22, 2026
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