Skip to content

fix(commandcode): share reasoning-facts table and fix GLM slug decode (lands #1800) - #2015

Merged
lidge-jun merged 3 commits into
devfrom
codex/land-1800
Aug 18, 2026
Merged

fix(commandcode): share reasoning-facts table and fix GLM slug decode (lands #1800)#2015
lidge-jun merged 3 commits into
devfrom
codex/land-1800

Conversation

@lidge-jun

Copy link
Copy Markdown
Owner

Summary

Lands contributor PR #1800 (youngchangjo) on current dev: the commandcode API-key registry entry shares the official reasoning-facts table with the OAuth command-code entry, and GLM slugs decode with their canonical casing (zai-org/GLM-5.3). The original PR had one test-file conflict against today's slug-codec additions; resolved additively (both test blocks kept).

Verification

  • slug-codec + command-code-provider + routing-compatibility suites: 89/0
  • tsc --noEmit clean

Checklist

  • Focused regression tests included (from the original PR)
  • Typecheck green
  • No GUI change (no screenshot required)

youngchangjo and others added 3 commits August 16, 2026 08:43
…ng for API-key preset

The `commandcode` (API-key) registry entry was missing the official
model-profile reasoning-facts table that the OAuth `command-code` entry
carries. Two symptoms followed:

1. The Codex catalog advertised no reasoning levels for API-key models
   (deepseek-v4-flash/pro, GLM-5.x), so clients forced effort none and
   requests failed with 400 'messages.content.type is invalid'.
2. The router's known-ids decode source missed the native slash ids, so
   Codex-facing slugs like `commandcode/deepseek-deepseek-v4-pro` were
   forwarded upstream verbatim and rejected with 400 'unsupported_model'.

Also fix the GLM table keys to match the exact upstream ids
(`zai-org/GLM-5.3` not `zai-org/glm-5.3`) and make the effort lookup
case-insensitive, and add GLM-5 / 5.1 / 5.2-Fast (verified high/max from
their official profiles).
# Conflicts:
#	tests/slug-codec.test.ts
@lidge-jun
lidge-jun merged commit 3617e1c into dev Aug 18, 2026
4 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Aug 18, 2026
@lidge-jun
lidge-jun deleted the codex/land-1800 branch August 19, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants