惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
H
Help Net Security
腾讯CDC
宝玉的分享
宝玉的分享
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
LangChain Blog
爱范儿
爱范儿
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
MyScale Blog
MyScale Blog
Engineering at Meta
Engineering at Meta
N
Netflix TechBlog - Medium
D
Docker
V
V2EX
Last Week in AI
Last Week in AI
G
Google Developers Blog
IT之家
IT之家
C
Check Point Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 聂微东

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(copilot): preserve Claude 1M capabilities · openclaw/...
steipete · 2026-06-01 · via Recent Commits to openclaw:main

@@ -104,6 +104,22 @@ describe("github-copilot model defaults", () => {

104104

});

105105

});

106106107+

it("uses static metadata overrides for Claude Opus 1M fallback rows", () => {

108+

const def = buildCopilotModelDefinition("claude-opus-4.7-1m-internal");

109+

expect(def).toEqual({

110+

id: "claude-opus-4.7-1m-internal",

111+

name: "Claude Opus 4.7 (1M context)",

112+

api: "anthropic-messages",

113+

reasoning: true,

114+

input: ["text", "image"],

115+

cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },

116+

contextWindow: 1_000_000,

117+

maxTokens: 64_000,

118+

thinkingLevelMap: { xhigh: "xhigh" },

119+

compat: { supportedReasoningEfforts: ["low", "medium", "high", "xhigh"] },

120+

});

121+

});

122+107123

it("trims whitespace from model id", () => {

108124

const def = buildCopilotModelDefinition(" gpt-4o ");

109125

expect(def.id).toBe("gpt-4o");

@@ -205,6 +221,14 @@ describe("resolveCopilotForwardCompatModel", () => {

205221

});

206222

});

207223224+

it("preserves static Anthropic thinking maps for Claude Opus 1M fallback rows", () => {

225+

const result = requireResolvedModel(createMockCtx("claude-opus-4.7-1m-internal"));

226+

expect(result.thinkingLevelMap).toEqual({ xhigh: "xhigh" });

227+

expect(result.compat).toEqual({

228+

supportedReasoningEfforts: ["low", "medium", "high", "xhigh"],

229+

});

230+

});

231+208232

it("creates synthetic model for arbitrary unknown model ID", () => {

209233

const ctx = createMockCtx("gpt-5.4-mini");

210234

const result = requireResolvedModel(ctx);

@@ -476,7 +500,11 @@ describe("fetchCopilotModelCatalog", () => {

476500

max_context_window_tokens: 1000000,

477501

max_output_tokens: 64000,

478502

},

479-

supports: { vision: true, tool_calls: true },

503+

supports: {

504+

vision: true,

505+

tool_calls: true,

506+

reasoning_effort: ["low", "medium", "high", "xhigh"],

507+

},

480508

},

481509

},

482510

{

@@ -540,6 +568,7 @@ describe("fetchCopilotModelCatalog", () => {

540568

cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },

541569

contextWindow: 400000,

542570

maxTokens: 128000,

571+

compat: { supportedReasoningEfforts: ["low", "medium", "high"] },

543572

});

544573545574

const codex = out.find((m) => m.id === "gpt-5.3-codex");

@@ -559,6 +588,10 @@ describe("fetchCopilotModelCatalog", () => {

559588

const opus1m = out.find((m) => m.id === "claude-opus-4.7-1m-internal");

560589

expect(opus1m?.api).toBe("anthropic-messages");

561590

expect(opus1m?.contextWindow).toBe(1_000_000);

591+

expect(opus1m?.thinkingLevelMap).toEqual({ xhigh: "xhigh" });

592+

expect(opus1m?.compat).toEqual({

593+

supportedReasoningEfforts: ["low", "medium", "high", "xhigh"],

594+

});

562595

});

563596564597

it("strips trailing slash from baseUrl when building the /models URL", async () => {