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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
Last Week in AI
Last Week in AI
腾讯CDC
The Cloudflare Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
MyScale Blog
MyScale Blog
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
I
InfoQ
雷峰网
雷峰网
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
Y
Y Combinator Blog
H
Help Net Security
T
Tailwind CSS Blog
美团技术团队
aimingoo的专栏
aimingoo的专栏
博客园 - 三生石上(FineUI控件)
云风的 BLOG
云风的 BLOG
Google DeepMind News
Google DeepMind News
P
Proofpoint News Feed

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: clarify pinned session model status · openclaw/openc...
steipete · 2026-05-20 · via Recent Commits to openclaw:main

@@ -1347,6 +1347,89 @@ describe("buildStatusMessage", () => {

13471347

expect(normalizeTestText(text)).toContain("Model: google-antigravity/claude-sonnet-4-6");

13481348

});

134913491350+

it("warns when the session-selected model differs from the configured default", () => {

1351+

const text = buildStatusMessage({

1352+

agent: {

1353+

model: "zhipu/glm-4.5-air",

1354+

},

1355+

configuredDefaultModelLabel: "zhipu/glm-4.5-air",

1356+

sessionEntry: {

1357+

sessionId: "pinned-session",

1358+

updatedAt: 0,

1359+

providerOverride: "deepseek",

1360+

modelOverride: "deepseek-v4-flash",

1361+

modelOverrideSource: "user",

1362+

},

1363+

sessionKey: "agent:main:main",

1364+

sessionScope: "per-sender",

1365+

queue: { mode: "collect", depth: 0 },

1366+

modelAuth: "api-key",

1367+

});

1368+1369+

const normalized = normalizeTestText(text);

1370+

expect(normalized).toContain("Configured default: zhipu/glm-4.5-air");

1371+

expect(normalized).toContain("Session selected: deepseek/deepseek-v4-flash");

1372+

expect(normalized).toContain("Reason: session override");

1373+

expect(normalized).toContain(

1374+

"This session is pinned to deepseek/deepseek-v4-flash; config primary zhipu/glm-4.5-air will apply to new/unpinned sessions.",

1375+

);

1376+

expect(normalized).toContain("Clear with: /model zhipu/glm-4.5-air or /reset");

1377+

expect(normalized).toContain(

1378+

"Docs: https://docs.openclaw.ai/concepts/models#selection-source-and-fallback-behavior",

1379+

);

1380+

});

1381+1382+

it("does not warn when only the last runtime model differs from the configured default", () => {

1383+

const text = buildStatusMessage({

1384+

agent: {

1385+

model: "zhipu/glm-4.5-air",

1386+

},

1387+

configuredDefaultModelLabel: "zhipu/glm-4.5-air",

1388+

sessionEntry: {

1389+

sessionId: "runtime-snapshot-only",

1390+

updatedAt: 0,

1391+

modelProvider: "deepseek",

1392+

model: "deepseek-v4-flash",

1393+

},

1394+

sessionKey: "agent:main:main",

1395+

sessionScope: "per-sender",

1396+

queue: { mode: "collect", depth: 0 },

1397+

modelAuth: "api-key",

1398+

});

1399+1400+

const normalized = normalizeTestText(text);

1401+

expect(normalized).toContain("Model: zhipu/glm-4.5-air");

1402+

expect(normalized).not.toContain("Configured default:");

1403+

expect(normalized).not.toContain("Reason: session override");

1404+

});

1405+1406+

it("does not label auto fallback model overrides as pinned selections", () => {

1407+

const text = buildStatusMessage({

1408+

agent: {

1409+

model: "zhipu/glm-4.5-air",

1410+

},

1411+

configuredDefaultModelLabel: "zhipu/glm-4.5-air",

1412+

sessionEntry: {

1413+

sessionId: "auto-fallback",

1414+

updatedAt: 0,

1415+

providerOverride: "deepseek",

1416+

modelOverride: "deepseek-v4-flash",

1417+

modelOverrideSource: "auto",

1418+

modelOverrideFallbackOriginProvider: "zhipu",

1419+

modelOverrideFallbackOriginModel: "glm-4.5-air",

1420+

},

1421+

sessionKey: "agent:main:main",

1422+

sessionScope: "per-sender",

1423+

queue: { mode: "collect", depth: 0 },

1424+

modelAuth: "api-key",

1425+

});

1426+1427+

const normalized = normalizeTestText(text);

1428+

expect(normalized).toContain("Model: deepseek/deepseek-v4-flash");

1429+

expect(normalized).not.toContain("Configured default:");

1430+

expect(normalized).not.toContain("Reason: session override");

1431+

});

1432+13501433

it("handles missing agent config gracefully", () => {

13511434

const text = buildStatusMessage({

13521435

agent: {},