Skip to content

fix(cloud-agent-next): normalize subagent model names with kilo/ prefix#3192

Open
kilo-code-bot[bot] wants to merge 3 commits into
mainfrom
fix/normalize-agent-model-names
Open

fix(cloud-agent-next): normalize subagent model names with kilo/ prefix#3192
kilo-code-bot[bot] wants to merge 3 commits into
mainfrom
fix/normalize-agent-model-names

Conversation

@kilo-code-bot
Copy link
Copy Markdown
Contributor

@kilo-code-bot kilo-code-bot Bot commented May 12, 2026

Summary

  • Apply normalizeKilocodeModel() to subagent model names in buildAgentEntryFromRuntimeAgent
  • Subagent models were passed to the CLI verbatim, missing the kilo/ prefix that top-level session models receive
  • This caused "model not found" errors (e.g. anthropic/claude-opus-4.7 instead of kilo/anthropic/claude-opus-4.7)

Verification

N/A — covered by new unit tests in session-service.test.ts

Visual Changes

N/A

Reviewer Notes

The normalizeKilocodeModel utility already existed in model-utils.ts and was used for top-level session model normalization — it was just never applied to per-agent models.

Subagent models in runtime agent profiles were passed to the CLI
verbatim, missing the kilo/ prefix normalization applied to top-level
session models. This caused 'model not found' errors for models like
'anthropic/claude-opus-4.7' because the CLI expects 'kilo/anthropic/
claude-opus-4.7'.
@kilo-code-bot kilo-code-bot Bot requested a review from eshurakov May 12, 2026 07:24
Comment thread services/cloud-agent-next/src/session-service.ts Outdated
@kilo-code-bot
Copy link
Copy Markdown
Contributor Author

kilo-code-bot Bot commented May 12, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Previously Reported Issues

File Issue Status
services/cloud-agent-next/src/session-service.ts Duplicate import { normalizeKilocodeModel } statement ✅ Fixed
Files Reviewed (2 files)
  • services/cloud-agent-next/src/session-service.ts - no issues
  • services/cloud-agent-next/src/session-service.test.ts - no issues

Reviewed by claude-4.6-sonnet-20260217 · 117,947 tokens

Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com>
@eshurakov eshurakov self-assigned this May 12, 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