1jehuang / 1jehuang/jcode

claude-opus-5 missing 1m catalog variant: auto-compact fires at 200k instead of 1M

Open
#828 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

autonomous: no bug triage: needs-decision
Dominant language
Rust
Stars
19.9k
Forks
2.3k
Avg merge
2d 7h
Merged PRs (30d)
30

Description

Version

jcode 0.68.0 (builds/stable), macOS arm64

Problem

Auto-compact triggers ~5x too early when running claude-opus-5.
The effective token budget is 200,000 instead of ~1,000,000.

Evidence

The model catalog has [1m] variants for other models but not for Opus 5:

model 1m variant
claude-opus-4-6 yes
claude-sonnet-4-5-20250929 yes
claude-sonnet-4-6 yes
claude-opus-5 no

Binary grep on builds/stable/jcode (identical results in builds/shared-server/jcode and builds/versions/0.68.0/jcode):

  • opus-5[1m] -> 0 matches
  • opus-4-6[1m] -> 5 matches
  • opus-5 -> 12 matches (so the base entry does exist)

Catalog bytes around the Opus entries show no 1m variant for Opus 5:

...opus-4-6claude-opus-4-6[1m]claude-sonnet-5claude-sonnet-4-6[1m]claude-opus-4-5...

Logs (~/.jcode/logs/jcode-2026-08-05.log): token_budget=200000 appears 38 times.
No context_limit entries anywhere in the August logs.

Expected

claude-opus-5 should have a [1m] catalog variant (and the matching 1M context beta header) so the token budget is ~1,000,000 and auto-compact fires accordingly.

Actual

It falls back to the 200,000 default, causing premature auto-compact at roughly 20% of the expected context.

Workaround

Switch to claude-opus-4-6[1m] or claude-sonnet-4-6[1m].

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.

Research direction

Start by locating the model-catalog and context-header handling corresponding to builds/stable/jcode, builds/shared-server/jcode, and builds/versions/0.68.0/jcode; compare the existing claude-opus-4-6[1m] entry with claude-opus-5 and review the August log evidence. Done means claude-opus-5 has the 1m catalog variant and matching 1M context beta behavior, with the effective token budget no longer defaulting to 200,000.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
ai, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.