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

推荐订阅源

H
Hackread – Cybersecurity News, Data Breaches, AI and More
U
Unit 42
Vercel News
Vercel News
Martin Fowler
Martin Fowler
云风的 BLOG
云风的 BLOG
爱范儿
爱范儿
MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
F
Fortinet All Blogs
MyScale Blog
MyScale Blog
C
Check Point Blog
N
Netflix TechBlog - Medium
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
博客园_首页
WordPress大学
WordPress大学
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
Last Week in AI
Last Week in AI
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
Jina AI
Jina AI
V
Visual Studio Blog
小众软件
小众软件

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(gateway): include active plugin tools in catalog · op...
steipete · 2026-05-02 · via Recent Commits to openclaw:main

@@ -107,17 +107,19 @@ function buildPluginGroups(params: {

107107

suppressNameConflicts: true,

108108

allowGatewaySubagentBinding: true,

109109

});

110+

const activeRegistry = getActivePluginRegistry();

110111

const groups = new Map<string, ToolCatalogGroup>();

111112

// Key metadata by plugin ownership and tool name so we only project metadata that

112113

// was registered BY the tool's owning plugin. Without this scoping, plugin-X

113114

// could override the catalog label/description/risk/tags for another plugin's

114115

// tool by registering metadata with the same toolName.

115116

const pluginToolMetadata = new Map(

116-

(getActivePluginRegistry()?.toolMetadata ?? []).map((entry) => [

117+

(activeRegistry?.toolMetadata ?? []).map((entry) => [

117118

buildPluginToolMetadataKey(entry.pluginId, entry.metadata.toolName),

118119

entry.metadata,

119120

]),

120121

);

122+

const seenToolIds = new Set<string>();

121123

for (const tool of pluginTools) {

122124

const meta = getPluginToolMeta(tool);

123125

const pluginId = meta?.pluginId ?? "plugin";

@@ -153,8 +155,46 @@ function buildPluginGroups(params: {

153155

tags: ownedMetadata?.tags,

154156

defaultProfiles: [],

155157

});

158+

seenToolIds.add(tool.name);

156159

groups.set(groupId, existing);

157160

}

161+

for (const entry of activeRegistry?.tools ?? []) {

162+

const names = entry.names.length > 0 ? entry.names : (entry.declaredNames ?? []);

163+

for (const name of names) {

164+

if (seenToolIds.has(name) || params.existingToolNames.has(name)) {

165+

continue;

166+

}

167+

const groupId = `plugin:${entry.pluginId}`;

168+

const existing =

169+

groups.get(groupId) ??

170+

({

171+

id: groupId,

172+

label: entry.pluginName ?? entry.pluginId,

173+

source: "plugin",

174+

pluginId: entry.pluginId,

175+

tools: [],

176+

} as ToolCatalogGroup);

177+

const ownedMetadata = pluginToolMetadata.get(

178+

buildPluginToolMetadataKey(entry.pluginId, name),

179+

);

180+

existing.tools.push({

181+

id: name,

182+

label: normalizeOptionalString(ownedMetadata?.displayName) ?? name,

183+

description:

184+

summarizeToolDescriptionText({

185+

rawDescription: ownedMetadata?.description,

186+

}) || `Plugin tool from ${entry.pluginName ?? entry.pluginId}`,

187+

source: "plugin",

188+

pluginId: entry.pluginId,

189+

optional: entry.optional,

190+

risk: ownedMetadata?.risk,

191+

tags: ownedMetadata?.tags,

192+

defaultProfiles: [],

193+

});

194+

seenToolIds.add(name);

195+

groups.set(groupId, existing);

196+

}

197+

}

158198

return [...groups.values()]

159199

.map((group) =>

160200

Object.assign({}, group, { tools: group.tools.toSorted((a, b) => a.id.localeCompare(b.id)) }),