You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix tool name sanitization to preserve uppercase letters
The previous regex pattern `[^a-z0-9-_]` was removing uppercase letters
from class names, causing test failures. For example, "Foo" became "oo".
This fix changes the pattern to `[^a-zA-Z0-9-_]` to preserve both
uppercase and lowercase letters while still removing invalid characters
like brackets from generic type names (e.g., `Result[StringData]`).
Also adds a test case to verify that generic class names with brackets
are properly sanitized while preserving valid characters.
Fixes test failures in test_response_multiple_return_tools and related tests.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments