Skip to content

Translator path guard blocks Claude tool id sanitization follow-up #1930

@shenshuoyaoyouguang

Description

@shenshuoyaoyouguang

Summary

The current PR path guard blocks any pull request that modifies internal/translator/**.

I originally prepared a PR to sanitize Claude tool ids and preserve tool mappings across translator paths, but the ranslator-path-guard workflow fails immediately for those file changes.

Requested maintenance work

Please consider applying the following translator-side changes internally:

  • sanitize provider-facing Claude ool_use.id values to satisfy ^[a-zA-Z0-9_-]+$
  • preserve original ool_use.name mappings when translating Claude request/response payloads
  • add regression coverage for Antigravity, Gemini CLI, Gemini, Codex, and OpenAI Claude-compatible paths

Context

Related public PR: #1927
That PR has now been narrowed to reusable helper functions under internal/util/** so it can comply with the repository path guard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingWaiting for research

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions