anomalyco / anomalyco/opencode

[FEATURE]:Allow configurable context window instead of hard‑coded value for individual models

Open
#40,818 1 comment 1 reaction 1 assignee View on GitHub

@rekram1-node is already working on this.

Since Aug 6, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Feature hasn't been suggested before.
  • I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request

Currently the context window size is hard‑coded for certain models, such as GLM‑5.2‑Max which is fixed to 1M tokens.
We want the ability to toggle or configure whether to enable the 1M‑token context window. When disabled, it should dynamically use the native context‑length parameters provided by the GLM model API, rather than forcing the 1M setting.
There should be flexible user‑selectable options for context window size on a per‑model basis.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.