Skip to content

fix: #2951 warn for tool name character replacement#2953

Merged
seratch merged 1 commit intomainfrom
fix/tool-name-transform-warning
Apr 19, 2026
Merged

fix: #2951 warn for tool name character replacement#2953
seratch merged 1 commit intomainfrom
fix/tool-name-transform-warning

Conversation

@seratch
Copy link
Copy Markdown
Member

@seratch seratch commented Apr 19, 2026

This pull request fixes #2951 transform_string_function_style so tool names that require character replacement, such as spaces or punctuation, emit the existing warning while preserving the current lowercase normalization behavior.

The previous implementation replaced spaces before comparing the transformed name, so names like "My Tool" silently became "my_tool" without warning. This update compares the post-replacement name against the original input before lowercasing, which keeps case-only normalization such as "MyTool" -> "mytool" quiet and avoids warning noise for valid letters.

@seratch seratch added this to the 0.14.x milestone Apr 19, 2026
@github-actions github-actions bot added bug Something isn't working feature:core labels Apr 19, 2026
@seratch seratch enabled auto-merge (squash) April 19, 2026 02:15
@seratch seratch merged commit da82b2c into main Apr 19, 2026
9 checks passed
@seratch seratch deleted the fix/tool-name-transform-warning branch April 19, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature:core

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: transform_string_function_style silently transforms space-containing names without warning

1 participant