Skip to content

Conversation

@chrarnoldus
Copy link
Collaborator

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jan 19, 2026

🦋 Changeset detected

Latest commit: fe6c025

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@kiloconnect
Copy link
Contributor

kiloconnect bot commented Jan 19, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Overview

This PR adds support for the lineRanges property spelling (in addition to line_ranges) in the read_file tool's native tool call parser. This improves compatibility with Claude models which often prefer camelCase property names.

The changes are minimal and well-targeted:

  1. Added fallback from line_ranges to lineRanges using nullish coalescing
  2. Changed .filter(Boolean) to .filter((range) => range !== null) for more explicit type narrowing

The implementation is correct and the changeset is appropriately marked as a patch.

Files Reviewed (2 files)
  • .changeset/friendly-jars-yawn.md - Changeset for the patch
  • src/core/assistant-message/NativeToolCallParser.ts - Core logic change

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.

3 participants