Skip to content

Commit 590471a

Browse files
docs(claude): limit the genuine-1M exception to Claude models
The picker contract requires a genuine 1M only for Claude models on either Anthropic pool. A non-Claude model on that route still follows the 829,800 floor. The Desktop structure note, the eligibility test header, and the Chinese and Turkish guides said otherwise. Co-authored-by: JUN <[email protected]>
1 parent 37cb715 commit 590471a

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

‎docs-site/src/content/docs/tr/guides/claude-code.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,11 @@ giderme adımıdır; kesin çözüm değildir. OpenCodex seçici durumunu gözle
470470
her isteğin taşıdığı model kimliğini yönlendirir. İstemcinin ne gönderdiğini
471471
**Logs → requestedModel** altında kontrol edin.
472472

473-
Yetkili 1M bağlam penceresine sahip modeller fazladan bir `…[1m]` seçici satırı
474-
alır: bunu seçmek Claude Code'un bu model için tam 1M bağlam hesabı yapmasını
475-
sağlar (otomatik sıkıştırma açık kalır) — proxy yönlendirmeden önce işaretçiyi
476-
kaldırır.
473+
Uzun bağlam penceresine sahip modeller (1M, veya en az 829.800 token varsayılan
474+
sıkıştırma eşiği; Anthropic rotasındaki Claude modellerinin gerçekten 1M olması
475+
gerekir) fazladan bir `…[1m]` seçici satırı alır: bunu seçmek Claude Code'un bu
476+
model için tam 1M bağlam hesabı yapmasını sağlar (otomatik sıkıştırma açık kalır)
477+
— proxy yönlendirmeden önce işaretçiyi kaldırır.
477478
Birini seçmek, onu Claude Code'un `settings.json` `model` alanına kaydeder;
478479
gelen istekler takma adı yönlendirilen modele geri çözer. Eski Claude Code
479480
sürümlerinde seçici yerel kalır — `ANTHROPIC_MODEL` aracılığıyla yuvaları

‎docs-site/src/content/docs/zh-cn/guides/claude-code.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ Claude 模型时自动加载。对于原生透传,这是正常现象;对于
582582

583583
### 第一方模型选择器的上下文标记
584584

585-
对于权威上下文窗口至少为一百万 token 的路由模型,Desktop Code 标签页的模型选择器会添加 `[1m]`,使 Claude 按 1M 窗口计量,而不是使用自定义模型较小的默认窗口。标签、配置中的顺序和提供方路由保持不变。窗口未知或小于一百万 token 的模型(包括原生模型的大窗口选项)不添加标记,因为选择器无法保证 Desktop 或远程运行器收到配套的压缩环境设置。`ocx claude` 的自动上下文与压缩配套设置保持不变。现有对话会保留已保存的选择器,直到你在刷新后的模型选择器中重新选择该模型。
585+
对于权威上下文窗口至少为一百万 token,或不低于默认压缩阈值 829,800(例如选择了 872k 窗口的原生 GPT-6 模型)的路由模型,Desktop Code 标签页的模型选择器会添加 `[1m]`,使 Claude 按 1M 窗口计量,而不是使用自定义模型较小的默认窗口。Anthropic 路由上的 Claude 模型仍必须真正达到 1M。标签、配置中的顺序和提供方路由保持不变。窗口未知或更短的模型不添加标记。选择器无法保证 Desktop 或远程运行器收到配套的压缩环境设置,因此超出真实窗口的长窗口模型会收到 `prompt is too long` 错误,Claude Code 会据此压缩。Desktop 3P 的 `supports1m`/`prefer1m` 和生成的子代理遵循同一规则。`ocx claude` 的自动上下文与压缩配套设置保持不变。现有对话会保留已保存的选择器,直到你在刷新后的模型选择器中重新选择该模型。
586586

587587
### Forced Claude Code subagent model
588588

‎structure/clients/claude-desktop.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ intent and cannot repair the URL a running Desktop already pinned. The `claude.a
287287
certificate, streams every body and upgrade unchanged, and rewrites only the bootstrap response's
288288
local Code picker surfaces, `ccd` (what the Desktop Code tab reads) and its `code` fallback, never the
289289
remote `ccr` (`picker-bootstrap.ts`), failing open to the original bytes; the model list
290-
comes from a persisted snapshot (`picker-models.ts`), so a bootstrap never waits on discovery. Picker aliases carry `[1m]` for long windows (`src/claude/long-context.ts`: at least 1M, or at least the 829,800 default compact window), and Anthropic rows of either pool only at a genuine 1M. The picker cannot guarantee the Desktop runner's compaction environment, so an 872k route that outgrows its window relies on the `prompt is too long` envelope, which Claude Code compacts on; Desktop 3P `supports1m`/`prefer1m`, discovery `· 1M` rows and generated subagent markers use the same rule. A
290+
comes from a persisted snapshot (`picker-models.ts`), so a bootstrap never waits on discovery. Picker aliases carry `[1m]` for long windows (`src/claude/long-context.ts`: at least 1M, or at least the 829,800 default compact window), and Claude models on either Anthropic pool only at a genuine 1M. The picker cannot guarantee the Desktop runner's compaction environment, so an 872k route that outgrows its window relies on the `prompt is too long` envelope, which Claude Code compacts on; Desktop 3P `supports1m`/`prefer1m`, discovery `· 1M` rows and generated subagent markers use the same rule. A
291291
CONNECT to claude.ai that arrives before the first refresh waits at most 3 s, then goes blind. A
292292
picker proxy bind failure only disables picker mode; a picker construction or start failure closes
293293
every socket the start had bound before rethrowing. Ordinary session cookies within the header

‎tests/claude-integration/claude-long-context-eligibility.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* Long windows (>= the default compact window) are 1M on every Claude surface whose runner may
3-
* lack CLAUDE_CODE_AUTO_COMPACT_WINDOW; real Anthropic rows of either pool still need a genuine
3+
* lack CLAUDE_CODE_AUTO_COMPACT_WINDOW; Claude models on either Anthropic pool still need a genuine
44
* 1M (devlog/_plan/261009_claude_1m_default/020_long_context_eligibility.md).
55
*/
66
import { describe, expect, test } from "bun:test";

0 commit comments

Comments
 (0)