anomalyco / anomalyco/opencode
OpenCode Go: glm-5.3-flash returns zero prompt-cache reads while deepseek-v4.1-flash caches
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Summary
glm-5.3-flash on OpenCode Go repeatedly returns zero prompt-cache reads through Claude Code + CC Switch, while deepseek-v4.1-flash returns substantial cache-read tokens through the same account and proxy path.
This appears model-specific rather than a general CC Switch monitoring problem.
Environment
- Date observed: 2026-09-11 (UTC+8)
- Service: OpenCode Go
- Route:
https://opencode.ai/zen/go - API format: OpenAI Chat Completions
- Client: Claude Code through CC Switch local proxy
- Model under test:
glm-5.3-flash - Control model:
deepseek-v4.1-flash
Observed behavior
For consecutive successful glm-5.3-flash requests, CC Switch showed no cache read or cache creation tokens:
| Input tokens | Output tokens | Cache read |
|---|---|---|
| 33,768 | 51 | 0 |
| 33,825 | 77 | 0 |
| 38,207 | 390 | 0 |
| 38,440 | 6 | 0 |
With deepseek-v4.1-flash on the same OpenCode Go account and CC Switch proxy path, repeated requests showed cache-read values around 42,368 to 44,800 tokens.
Expected behavior
After the first request warms the prompt prefix, repeated turns with a stable long context should return non-zero cache-read tokens for glm-5.3-flash, as they do for DeepSeek through the same setup.
Request
Could the OpenCode Go team please check:
- Whether prompt caching is enabled for
glm-5.3-flashin production. - Whether GLM requests can be routed across upstream providers without cache affinity.
- Whether cache-read usage is omitted from GLM responses even when cache is used.
- Whether the OpenAI Chat Completions route for GLM has a cache-specific limitation.
No API keys, account identifiers, or private logs are included. I can provide redacted screenshots and timestamps if useful.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the OpenAI Chat Completions route for glm-5.3-flash and comparing it with deepseek-v4.1-flash through the same proxy path. Confirm whether prompt caching is disabled, loses provider affinity, or is omitted from responses; done means identifying one cause with reproducible evidence or handing the report to the service team.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api, backend-api-design
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100