anomalyco / anomalyco/opencode
[FEATURE]:Allow configurable context window instead of hard‑coded value for individual models
Open
@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
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.
Assessment
This issue has not been assessed yet.