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

推荐订阅源

量子位
博客园_首页
罗磊的独立博客
云风的 BLOG
云风的 BLOG
J
Java Code Geeks
Last Week in AI
Last Week in AI
D
DataBreaches.Net
Jina AI
Jina AI
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
Apple Machine Learning Research
Apple Machine Learning Research
V
V2EX
D
Docker
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
H
Help Net Security
T
The Blog of Author Tim Ferriss

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: keep metadata reuse scoped to agent turns · openclaw...
shakkernerd · 2026-05-17 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -20,7 +20,6 @@ import {

2020

import { formatErrorMessage } from "../infra/errors.js";

2121

import { buildOutboundSessionContext } from "../infra/outbound/session-context.js";

2222

import { createSubsystemLogger } from "../logging/subsystem.js";

23-

import { setCurrentPluginMetadataSnapshot } from "../plugins/current-plugin-metadata-snapshot.js";

2423

import { loadManifestMetadataSnapshot } from "../plugins/manifest-contract-eligibility.js";

2524

import {

2625

isSubagentSessionKey,

@@ -403,11 +402,6 @@ async function prepareAgentCommandExecution(

403402

workspaceDir,

404403

env: process.env,

405404

});

406-

setCurrentPluginMetadataSnapshot(manifestMetadataSnapshot, {

407-

config: cfg,

408-

env: process.env,

409-

workspaceDir,

410-

});

411405

const manifestPlugins = manifestMetadataSnapshot.plugins;

412406

const configuredModel = resolveConfiguredModelRef({

413407

cfg,

Original file line numberDiff line numberDiff line change

@@ -134,6 +134,8 @@ export function inferUniqueProviderFromConfiguredModels(

134134

manifestPlugins: params.manifestPlugins,

135135

});

136136

if (

137+

modelId === model ||

138+

normalizeLowercaseStringOrEmpty(modelId) === normalized ||

137139

normalizedModelId === model ||

138140

normalizeLowercaseStringOrEmpty(normalizedModelId) === normalized

139141

) {

@@ -604,7 +606,9 @@ export function resolveConfiguredModelRef(

604606

manifestPlugins: params.manifestPlugins,

605607

});

606608

if (inferredProvider) {

607-

return { provider: inferredProvider, model: trimmed };

609+

return normalizeModelRef(inferredProvider, trimmed, {

610+

manifestPlugins: params.manifestPlugins,

611+

});

608612

}

609613
610614

const safeTrimmed = sanitizeModelWarningValue(trimmed);

Original file line numberDiff line numberDiff line change

@@ -695,6 +695,25 @@ describe("model-selection", () => {

695695

).toBe("qwen-dashscope");

696696

});

697697
698+

it("infers provider from raw configured ids when manifest policies add prefixes", () => {

699+

const cfg = {

700+

models: {

701+

providers: {

702+

nvidia: {

703+

models: [{ id: "llama-fast" }],

704+

},

705+

},

706+

},

707+

} as unknown as OpenClawConfig;

708+
709+

expect(

710+

inferUniqueProviderFromConfiguredModels({

711+

cfg,

712+

model: "llama-fast",

713+

}),

714+

).toBe("nvidia");

715+

});

716+
698717

it("infers Google provider from canonicalized configured provider catalogs", () => {

699718

const cfg = {

700719

models: {

@@ -1655,6 +1674,34 @@ describe("model-selection", () => {

16551674

}

16561675

});

16571676
1677+

it("normalizes bare configured default model strings with manifest policies", () => {

1678+

const cfg = {

1679+

agents: {

1680+

defaults: {

1681+

model: { primary: "llama-fast" },

1682+

},

1683+

},

1684+

models: {

1685+

providers: {

1686+

nvidia: {

1687+

models: [{ id: "llama-fast" }],

1688+

},

1689+

},

1690+

},

1691+

} as unknown as OpenClawConfig;

1692+
1693+

const result = resolveConfiguredModelRef({

1694+

cfg,

1695+

defaultProvider: "openai",

1696+

defaultModel: "gpt-5.4",

1697+

});

1698+
1699+

expect(result).toEqual({

1700+

provider: "nvidia",

1701+

model: "nvidia/llama-fast",

1702+

});

1703+

});

1704+
16581705

it("prefers slash-form aliases for configured default models", () => {

16591706

const cfg = {

16601707

agents: {