OmniRoute/tests
diegosouzapw 7abd122a0a fix(opencode): alias over-length tool names (>64 chars) for OpenCode Zen/Go
OpenCode chat-completions upstreams reject tool names longer than 64
characters ("name must be at most 64 characters, got 68"), which Claude
Code MCP tool names routinely exceed. The registry-scoped length alias
only ran in DefaultExecutor; OpencodeExecutor extends BaseExecutor, so
names reached opencode.ai unchanged.

- Extract the DefaultExecutor alias block into a reusable
  open-sse/executors/toolNameLengthAlias.ts (applyToolNameLengthAliases
  with a pluggable normalizer, applyRegistryToolNameLengthAliases, and
  mergeToolNameAliases for the non-enumerable _toolNameMap side channel).
  DefaultExecutor now calls it; behavior unchanged.
- OpencodeExecutor applies it last in transformRequest, only on the
  chat-completions surface; Claude/Responses surfaces are untouched.
- Declare toolNameMaxLength: 64 on opencode, opencode-zen, opencode-go.

Aliases reuse normalizeOpenAIToolNames (prefix + sha256-12, collision
safe) and are restored in responses through the existing _toolNameMap
consumer in chatCore.

Co-authored-by: MakdumIbrohim <makdumibrohim3@gmail.com>
Inspired-by: https://github.com/decolua/9router/pull/3637
2026-10-13 13:50:44 -03:00
..
_helpers fix(models): coalesce timeout windows and yield during key filtering (#13389) (#16115) 2026-10-10 22:09:18 -03:00
_setup
benchmarks
boundary
e2e
fixtures test(executors): require recovery contracts for new overrides (#16140) 2026-10-10 20:12:23 -03:00
golden-set
helpers
homolog
integration fix(models): give the Gemini /v1beta catalog /v1/models parity — prefix naming and the requireAuthForModels gate (#16316) 2026-10-13 11:02:13 -03:00
live
llm-security
load
manual
security
snapshots feat(providers): add CodeBuddy international (codebuddy-intl, cbai) provider (#15173) (#15799) 2026-10-09 22:03:05 -03:00
translator
unit fix(opencode): alias over-length tool names (>64 chars) for OpenCode Zen/Go 2026-10-13 13:50:44 -03:00
_cp_mock_hook.mts
_cp_mock_module.mts
_run_dns_guard_test.sh
e2e-tool-calls.sh