Skip to content

Commit 98bea53

Browse files
yyq1025claude
andcommitted
protocol: drop minClaudeVersion entirely
Dead metadata since the bundled-claude switchover (46f8444): the .app ships a pinned binary, so every shipped model is supported by construction. No consumer ever read it (daemon gating was never built; iOS never received it), and it leaked into the picker wire shape. Two-commit lifespan — added in 9f314db for a system-claude world that no longer exists. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 46f8444 commit 98bea53

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

packages/protocol/src/models.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -80,24 +80,6 @@ export interface ModelMetadata {
8080
* Defaults to 200_000 for current Claude 4.x models; `[1m]` variants
8181
* opt into the 1M-context beta. */
8282
contextWindow?: number;
83-
84-
/** Earliest Claude Code version with first-class support for this model
85-
* (per the claude-code CHANGELOG entry that launched it). Omitted =
86-
* any binary is fine.
87-
*
88-
* "First-class" because this is NOT a hard compatibility floor: the
89-
* binary passes unknown model ids through to the API (which does the
90-
* real validation), and the `[1m]` suffix is parsed generically. An
91-
* older binary mostly works — but falls back to default client-side
92-
* tables (context-window/auto-compact thresholds, labels, cost) and
93-
* may silently remap ids it considers retired.
94-
*
95-
* Largely informational now that sidecode BUNDLES the claude binary — the
96-
* .app ships a known version, so every shipped model is supported by
97-
* construction. Kept as metadata (and for a future picker that might
98-
* surface "needs Claude Code ≥ X" if the bundled version is ever
99-
* decoupled from the model set). Not enforced anywhere. */
100-
minClaudeVersion?: string;
10183
}
10284

10385
/**
@@ -115,12 +97,10 @@ export const MODEL_METADATA: Record<string, ModelMetadata> = {
11597
"claude-fable-5[1m]": {
11698
displayName: "Fable 5 1M",
11799
contextWindow: 1_000_000,
118-
minClaudeVersion: "2.1.170",
119100
},
120101
"claude-fable-5": {
121102
displayName: "Fable 5",
122103
contextWindow: 200_000,
123-
minClaudeVersion: "2.1.170",
124104
},
125105
"claude-opus-4-8[1m]": {
126106
displayName: "Opus 4.8 1M",
@@ -210,9 +190,6 @@ export interface ModelEntry {
210190
description?: string;
211191
/** Context window in tokens. */
212192
contextWindow?: number;
213-
/** Earliest Claude Code version with first-class support — see
214-
* `ModelMetadata.minClaudeVersion`. */
215-
minClaudeVersion?: string;
216193
}
217194

218195
/**
@@ -230,7 +207,6 @@ export const MODELS: readonly ModelEntry[] = Object.entries(MODEL_METADATA)
230207
isDefault: m.isDefault === true,
231208
description: m.description,
232209
contextWindow: m.contextWindow,
233-
minClaudeVersion: m.minClaudeVersion,
234210
}),
235211
);
236212

0 commit comments

Comments
 (0)