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

推荐订阅源

WordPress大学
WordPress大学
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
小众软件
小众软件
量子位
博客园 - 三生石上(FineUI控件)
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
博客园_首页
IT之家
IT之家
S
SegmentFault 最新的问题
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
T
Tailwind CSS Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
爱范儿
爱范儿
月光博客
月光博客
有赞技术团队
有赞技术团队
H
Help Net Security
云风的 BLOG
云风的 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
gateway: use identity.name in agent summaries when name i...
clawsweeper · 2026-05-20 · via Recent Commits to openclaw:main

@@ -1121,6 +1121,64 @@ describe("gateway session utils", () => {

11211121

);

11221122

});

112311231124+

test("listAgentsForGateway falls back to identity.name when name is unset", () => {

1125+

const cfg = {

1126+

session: { mainKey: "main" },

1127+

agents: {

1128+

list: [{ id: "main", default: true, identity: { name: "开发助手" } }],

1129+

},

1130+

} as OpenClawConfig;

1131+1132+

const result = listAgentsForGateway(cfg);

1133+1134+

expect(result.agents[0]).toMatchObject({

1135+

id: "main",

1136+

name: "开发助手",

1137+

identity: { name: "开发助手" },

1138+

});

1139+

});

1140+1141+

test("listAgentsForGateway prefers explicit name over identity.name", () => {

1142+

const cfg = {

1143+

session: { mainKey: "main" },

1144+

agents: {

1145+

list: [

1146+

{

1147+

id: "main",

1148+

default: true,

1149+

name: "Ops",

1150+

identity: { name: "开发助手" },

1151+

},

1152+

],

1153+

},

1154+

} as OpenClawConfig;

1155+1156+

const result = listAgentsForGateway(cfg);

1157+1158+

expect(result.agents[0]).toMatchObject({

1159+

id: "main",

1160+

name: "Ops",

1161+

identity: { name: "开发助手" },

1162+

});

1163+

});

1164+1165+

test("listAgentsForGateway leaves name unset when both configured and identity names are absent", () => {

1166+

const cfg = {

1167+

session: { mainKey: "main" },

1168+

agents: {

1169+

list: [{ id: "main", default: true, identity: {} }],

1170+

},

1171+

} as OpenClawConfig;

1172+1173+

const result = listAgentsForGateway(cfg);

1174+1175+

expect(result.agents[0]).toMatchObject({

1176+

id: "main",

1177+

name: undefined,

1178+

identity: {},

1179+

});

1180+

});

1181+11241182

test("listAgentsForGateway keeps explicit agents.list scope over disk-only agents (scope boundary)", async () => {

11251183

await withStateDirEnv("openclaw-agent-list-scope-", async ({ stateDir }) => {

11261184

fs.mkdirSync(path.join(stateDir, "agents", "main"), { recursive: true });