feat: add GLM-5.3 Coding Plan support - #103
Conversation
Code reviewVerdict: Looks good — only minor / nit comments below. · 🔴 0 · 🟠 0 · 🟡 2 · ⚪ 0 · 0/2 resolved
🤖 Fix all 2 open findings with your agent📋 Out-of-diff findings (2)
Reviewed 7 files · 0 inline · view all 2 findings ↗ aictrl · AI code review for fast-moving teams · aictrl.dev |
Review response — PR #103Verified and fixed both GLM-5.3 consistency findings on the existing PR branch. Issues addressed (pushed to this PR)
Review claims verified false (no change needed)None. Not addressed hereNone. |
Code reviewVerdict: Address the major findings before merging. · 🔴 0 · 🟠 1 · 🟡 0 · ⚪ 0 · 0/1 resolved
🤖 Fix all 1 open findings with your agent📋 Out-of-diff findings (1)
Reviewed 11 files · 0 inline · view all 1 findings ↗ aictrl · AI code review for fast-moving teams · aictrl.dev |
ReviewVerified the timestamp rollover fix and the GLM-5.3 addition, including running the affected suites locally ( Timestamp rollover fix — correct
GLM-5.3 addition — correct, consistent with 5.2
Non-blocking observation
Workflow
No security concerns: cleanup unlinks are scoped to Reviewed SHA: 6a50d38 |
Review response — PR #103Verified and fixed the future-timestamp cleanup regression on the existing PR branch. Issues addressed (pushed to this PR)
Review claims verified false (no change needed)None. Not addressed hereNone. |
ReviewVerdict: LGTM. The 36-bit rollover fix is real, correct, and timely; the GLM-5.3 additions are consistent with the existing GLM-5.2 template. Verified by running Timestamp rollover fix (id.ts / truncation.ts)
GLM-5.3 additions (provider.ts / transform.ts / fixtures)
Minor notes (non-blocking)
Reviewed SHA: 36ad5f6 |
Closes #102
Problem
Z.AI released GLM 5.3 and models.dev lists it for Coding Plan, but bundled or stale CLI catalogues stop at GLM 5.2 and do not expose its native reasoning efforts.
The full CI run also exposed a 36-bit timestamp rollover in tool-output cleanup: recent files could be mistaken for expired files when the encoded timestamp wrapped.
Behavior
zai-coding-plan/glm-5.3with a 1M-token context window and 131,072-token output limit.low,high, andmaxefforts plusmediumandxhighcompatibility aliases.zai-coding-plan/glm-5.2model.Scope
Model availability remains limited to Z.AI Coding Plan; this does not advertise GLM 5.3 through gateways that have not published availability or port unrelated OpenCode Go changes. The cleanup changes are limited to timestamp decoding and retention checks. The workflow change only corrects its invalid model selection.
Rollout and risks
No migration or configuration change is required. The model fallback uses
??=, so live catalogue metadata remains authoritative. Request shaping is limited to the new model. Timestamp reconstruction is anchored to cleanup time and is unambiguous within the seven-day retention period; timestamps up to one hour ahead are treated as recent.Verification
bun test test/tool/truncation.test.ts test/provider/transform.test.ts test/session/llm.test.ts— 132 passed.bun run typecheck— passed.actionlint .github/workflows/code-review.yml— passed.git diff --check— passed.bun test— 1,362 passed, 7 skipped, 0 failed.verify, Aictrl AI Review, and all CodeQL checks — passed.36ad5f6fa.