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

推荐订阅源

月光博客
月光博客
D
Docker
腾讯CDC
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
Martin Fowler
Martin Fowler
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
博客园 - 三生石上(FineUI控件)
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
IT之家
IT之家
WordPress大学
WordPress大学
M
MIT News - Artificial intelligence
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
Vercel News
Vercel News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
Engineering at Meta
Engineering at Meta
博客园 - 【当耐特】

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: Add runner label to /status (#70595) · openclaw/open...
Takhoffman · 2026-04-23 · via Recent Commits to openclaw:main

@@ -95,12 +95,115 @@ describe("buildStatusMessage", () => {

9595

expect(normalized).toContain("Session: agent:main:main");

9696

expect(normalized).toContain("updated 10m ago");

9797

expect(normalized).toContain("Runtime: direct");

98+

expect(normalized).toContain("Runner: pi (embedded)");

9899

expect(normalized).toContain("Think: medium");

99100

expect(normalized).not.toContain("verbose");

100101

expect(normalized).toContain("elevated");

101102

expect(normalized).toContain("Queue: collect");

102103

});

103104105+

it("shows the CLI runner for CLI-backed providers", () => {

106+

const text = buildStatusMessage({

107+

config: {

108+

agents: {

109+

defaults: {

110+

cliBackends: {

111+

"claude-cli": {},

112+

},

113+

},

114+

},

115+

} as unknown as OpenClawConfig,

116+

agent: {

117+

model: "claude-cli/opus",

118+

},

119+

sessionEntry: {

120+

sessionId: "cli",

121+

updatedAt: 0,

122+

modelProvider: "claude-cli",

123+

model: "opus",

124+

},

125+

sessionKey: "agent:main:main",

126+

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

127+

});

128+129+

expect(normalizeTestText(text)).toContain("Runner: claude-cli (cli)");

130+

});

131+132+

it("falls back to the configured CLI provider when session provider fields are empty", () => {

133+

const text = buildStatusMessage({

134+

config: {

135+

agents: {

136+

defaults: {

137+

cliBackends: {

138+

"claude-cli": {},

139+

},

140+

},

141+

},

142+

} as unknown as OpenClawConfig,

143+

agent: {

144+

model: "claude-cli/opus",

145+

},

146+

sessionEntry: {

147+

sessionId: "cli-default",

148+

updatedAt: 0,

149+

},

150+

sessionKey: "agent:main:main",

151+

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

152+

});

153+154+

expect(normalizeTestText(text)).toContain("Runner: claude-cli (cli)");

155+

});

156+157+

it("shows the ACP harness agent and backend when ACP owns the session", () => {

158+

const text = buildStatusMessage({

159+

agent: {

160+

model: "anthropic/claude-opus-4-6",

161+

},

162+

sessionEntry: {

163+

sessionId: "acp",

164+

updatedAt: 0,

165+

acp: {

166+

backend: "acpx",

167+

agent: "gemini",

168+

runtimeSessionName: "status-test",

169+

mode: "persistent",

170+

state: "idle",

171+

lastActivityAt: 0,

172+

},

173+

},

174+

sessionKey: "agent:main:main",

175+

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

176+

});

177+178+

expect(normalizeTestText(text)).toContain("Runner: gemini (acp/acpx)");

179+

});

180+181+

it("sanitizes runner labels sourced from session metadata", () => {

182+

const text = buildStatusMessage({

183+

agent: {

184+

model: "anthropic/claude-opus-4-6",

185+

},

186+

sessionEntry: {

187+

sessionId: "acp-sanitized",

188+

updatedAt: 0,

189+

acp: {

190+

backend: "acpx\nrewritten",

191+

agent: "gemini\u001b[2K",

192+

runtimeSessionName: "status-test",

193+

mode: "persistent",

194+

state: "idle",

195+

lastActivityAt: 0,

196+

},

197+

},

198+

sessionKey: "agent:main:main",

199+

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

200+

});

201+202+

const normalized = normalizeTestText(text);

203+

expect(normalized).toContain("Runner: gemini (acp/acpx\\nrewritten)");

204+

expect(normalized).not.toContain("\u001b");

205+

});

206+104207

it("falls back to sessionEntry levels when resolved levels are not passed", () => {

105208

const text = buildStatusMessage({

106209

agent: {