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

推荐订阅源

腾讯CDC
N
Netflix TechBlog - Medium
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
F
Fortinet All Blogs
大猫的无限游戏
大猫的无限游戏
I
InfoQ
V
V2EX
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
有赞技术团队
有赞技术团队
G
Google Developers Blog
L
LangChain Blog
博客园_首页
M
MIT News - Artificial intelligence
H
Hackread – Cybersecurity News, Data Breaches, AI and More
月光博客
月光博客
IT之家
IT之家
量子位
宝玉的分享
宝玉的分享
S
SegmentFault 最新的问题
Stack Overflow Blog
Stack Overflow Blog
V
Visual Studio 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(cli): resolve plugin web search SecretRefs for infer ...
leno23 · 2026-05-17 · via Recent Commits to openclaw:main

@@ -174,6 +174,10 @@ vi.mock("../config/config.js", () => ({

174174

mocks.setRuntimeConfigSnapshot as typeof import("../config/config.js").setRuntimeConfigSnapshot,

175175

}));

176176177+

vi.mock("./command-config-resolution.js", () => ({

178+

resolveCommandConfigWithSecrets: mocks.resolveCommandConfigWithSecrets,

179+

}));

180+177181

vi.mock("../agents/agent-scope.js", () => ({

178182

resolveDefaultAgentId: () => "main",

179183

resolveAgentDir: () => "/tmp/agent",

@@ -2257,6 +2261,64 @@ describe("capability cli", () => {

22572261

]);

22582262

});

225922632264+

it("resolves plugin web search SecretRefs before running infer web search", async () => {

2265+

const unresolvedConfig = {

2266+

tools: { web: { search: { provider: "tavily", enabled: true } } },

2267+

plugins: {

2268+

entries: {

2269+

tavily: {

2270+

config: {

2271+

webSearch: {

2272+

apiKey: { source: "env", provider: "default", id: "TAVILY_API_KEY" },

2273+

},

2274+

},

2275+

},

2276+

},

2277+

},

2278+

};

2279+

const resolvedConfig = {

2280+

...unresolvedConfig,

2281+

plugins: {

2282+

entries: {

2283+

tavily: {

2284+

config: {

2285+

webSearch: {

2286+

apiKey: "resolved-tavily-key",

2287+

},

2288+

},

2289+

},

2290+

},

2291+

},

2292+

};

2293+

mocks.loadConfig.mockReturnValue(unresolvedConfig);

2294+

mocks.resolveCommandConfigWithSecrets.mockResolvedValueOnce({

2295+

resolvedConfig,

2296+

effectiveConfig: resolvedConfig,

2297+

diagnostics: [],

2298+

});

2299+

const webSearchRuntime = await import("../web-search/runtime.js");

2300+

vi.mocked(webSearchRuntime.runWebSearch).mockResolvedValueOnce({

2301+

provider: "tavily",

2302+

result: { results: [] },

2303+

} as never);

2304+2305+

await runRegisteredCli({

2306+

register: registerCapabilityCli as (program: Command) => void,

2307+

argv: ["infer", "web", "search", "--query", "ping", "--json"],

2308+

});

2309+2310+

expect(mocks.resolveCommandConfigWithSecrets).toHaveBeenCalledWith(

2311+

expect.objectContaining({

2312+

commandName: "infer web search",

2313+

}),

2314+

);

2315+

expect(webSearchRuntime.runWebSearch).toHaveBeenCalledWith(

2316+

expect.objectContaining({

2317+

config: resolvedConfig,

2318+

}),

2319+

);

2320+

});

2321+22602322

it("surfaces available, configured, and selected for web providers", async () => {

22612323

mocks.loadConfig.mockReturnValue({

22622324

tools: {