The Ark router regex was `/^kimi-k2\.6/i` — required the `k` prefix. But mapKimiArkId's alias list accepted both `kimi-k2.6` AND `kimi-2.6` (no-prefix form). Result: `kimi-2.6` failed the Ark regex, fell through to the generic `/^kimi/i` branch, got routed to Bailian — which doesn't host K2.6. Bailian would return HTTP 400 "model not supported" with no hint that the id belonged on Ark. Fix: Ark router regex now `/^kimi-k?2\.6(-ark)?$/i` — optional `k` prefix + optional `-ark` suffix, anchored at end to prevent accidentally matching a hypothetical later version. mapKimiArkId normalizes all four accepted aliases (kimi-k2.6, kimi-2.6, kimi-k2.6-ark, kimi-2.6-ark) to the canonical on-Ark id. Same latent bug fixed on the glm-5.1 route: regex `/^glm-5\.1/i` would prefix-match a hypothetical `glm-5.10` and wrongly route it to Ark. Tightened to `/^glm-5\.1(-coding|-ark)?$/i` with the same anchored-end + suffix-allowlist pattern. Caught by Codex stop-hook review during 2026-04-22 session. |
||
|---|---|---|
| .. | ||
| ab-corpus | ||
| bundle-skill.ts | ||
| ensure-agent-native.cjs | ||
| patch-srvx-bun.ts | ||
| publish-beta.sh | ||
| unpublish.sh | ||