Skip to content

feat(coding-agent): add GLM 5.2 prompt preset#50

Merged
code-yeongyu merged 5 commits into
mainfrom
code-yeongyu/add-glm52-prompt-preset
Jun 18, 2026
Merged

feat(coding-agent): add GLM 5.2 prompt preset#50
code-yeongyu merged 5 commits into
mainfrom
code-yeongyu/add-glm52-prompt-preset

Conversation

@code-yeongyu

@code-yeongyu code-yeongyu commented Jun 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Added a GLM 5.2 prompt preset and made promptPreset: "glm-5.2" a valid setting.
  • Wired auto-detection for GLM 5.2 model IDs, including glm-5.2, glm-5p2, and built-in catalog aliases.
  • Added focused resolver coverage and a changelog entry.

Session Continuation

  • Found the originating OpenCode subagent session: ses_1272a3168ffe1Fzuno79wzxDDy.
  • Parent session: ses_127369e3affeFbgVrx2Gu8uP0p.
  • The subagent marked its internal todos completed and left a final implementation report, but it had not shipped the remaining work through PR/merge workflow.

Verification

  • local-ignore/qa-evidence/20260618-glm52-preset/focused-test.txt
    • cd packages/coding-agent && npx tsx ../../node_modules/vitest/dist/cli.js --run test/suite/prompt-presets-glm-5-2.test.ts
    • Result: 1 file passed, 10 tests passed.
  • local-ignore/qa-evidence/20260618-glm52-preset/npm-run-check.txt
    • npm run check
    • Result: passed. The command still reports existing Biome useLiteralKeys info diagnostics outside this change.
  • local-ignore/qa-evidence/20260618-glm52-preset/runtime-qa.txt
    • node .agents/skills/senpi-qa/scripts/mock-loop.mjs --run "Reply with GLM preset QA marker" --api openai-completions --evidence 20260618-glm52-preset
    • node .agents/skills/senpi-qa/scripts/cli-smoke.mjs --self-test
    • Result: mock-loop returned the marker through the real CLI, CLI smoke passed 5/5, real auth unchanged.

Summary by cubic

Added a GLM 5.2 prompt preset to packages/coding-agent. Auto-detects GLM 5.2 model IDs and allows forcing via promptPreset: "glm-5.2".

  • New Features
    • Auto-routes when model ID signals glm-5.2 (e.g., glm-5.2, glm-5p2, and catalog aliases).
    • Introduces buildGlm52Prompt and updates resolver/settings; tests cover auto-detect and manual override.

Written for commit 81c90e6. Summary will update on new commits.

Review in cubic

@code-yeongyu code-yeongyu merged commit 3eda6e1 into main Jun 18, 2026
4 of 5 checks passed
@code-yeongyu code-yeongyu deleted the code-yeongyu/add-glm52-prompt-preset branch June 18, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant