zerone0x d0f9e22a4b fix(agents): use alphanumeric-only tool call IDs for OpenRouter compatibility
Some providers like Mistral via OpenRouter require strictly alphanumeric
tool call IDs. The error message indicates: "Tool call id was
whatsapp_login_1768799841527_1 but must be a-z, A-Z, 0-9, with a length
of 9."

Changes:
- Update sanitizeToolCallId to strip all non-alphanumeric characters
  (previously allowed underscores and hyphens)
- Update makeUniqueToolId to use alphanumeric suffixes (x2, x3, etc.)
  instead of underscores
- Update isValidCloudCodeAssistToolId to validate alphanumeric-only IDs
- Update tests to reflect stricter sanitization

Fixes #1359

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-22 00:41:22 +00:00
..
2026-01-21 09:55:10 +00:00
2026-01-17 08:00:05 +00:00
2026-01-14 15:02:19 +00:00
2026-01-20 10:51:25 +00:00
2026-01-19 00:34:26 +00:00
2026-01-20 13:52:59 +00:00
2026-01-17 08:00:05 +00:00
2026-01-17 06:32:24 +00:00
2026-01-14 15:02:19 +00:00
2026-01-17 05:48:56 +00:00
2026-01-14 15:02:19 +00:00
2026-01-14 15:02:19 +00:00