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

推荐订阅源

V
Visual Studio Blog
I
InfoQ
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 【当耐特】
小众软件
小众软件
B
Blog RSS Feed
大猫的无限游戏
大猫的无限游戏
博客园 - 三生石上(FineUI控件)
Engineering at Meta
Engineering at Meta
人人都是产品经理
人人都是产品经理
Microsoft Security Blog
Microsoft Security Blog
Last Week in AI
Last Week in AI
H
Help Net Security
爱范儿
爱范儿
云风的 BLOG
云风的 BLOG
博客园 - 司徒正美
Y
Y Combinator Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Microsoft Azure Blog
Microsoft Azure Blog
L
LangChain Blog
WordPress大学
WordPress大学
GbyAI
GbyAI
Google DeepMind News
Google DeepMind News
腾讯CDC

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): use secure dashboard links when TLS is enab...
deepkilo · 2026-04-25 · via Recent Commits to openclaw:main

@@ -6,6 +6,9 @@ const runtime = vi.hoisted(() => ({

66

log: vi.fn<(line: string) => void>(),

77

error: vi.fn<(line: string) => void>(),

88

}));

9+

const resolveControlUiLinksMock = vi.hoisted(() =>

10+

vi.fn((_opts?: unknown) => ({ httpUrl: "http://127.0.0.1:18789" })),

11+

);

9121013

vi.mock("../../runtime.js", () => ({

1114

defaultRuntime: runtime,

@@ -21,7 +24,7 @@ vi.mock("../../terminal/theme.js", async () => {

2124

});

22252326

vi.mock("../../gateway/control-ui-links.js", () => ({

24-

resolveControlUiLinks: () => ({ httpUrl: "http://127.0.0.1:18789" }),

27+

resolveControlUiLinks: resolveControlUiLinksMock,

2528

}));

26292730

vi.mock("../../daemon/inspect.js", () => ({

@@ -73,6 +76,7 @@ describe("printDaemonStatus", () => {

7376

beforeEach(() => {

7477

runtime.log.mockReset();

7578

runtime.error.mockReset();

79+

resolveControlUiLinksMock.mockClear();

7680

});

77817882

it("prints stale gateway pid guidance when runtime does not own the listener", () => {

@@ -152,4 +156,56 @@ describe("printDaemonStatus", () => {

152156

expect(runtime.log).toHaveBeenCalledWith(expect.stringContaining("Connectivity probe: ok"));

153157

expect(runtime.log).toHaveBeenCalledWith(expect.stringContaining("Capability: write-capable"));

154158

});

159+160+

it("passes daemon TLS state to dashboard link rendering", () => {

161+

printDaemonStatus(

162+

{

163+

service: {

164+

label: "LaunchAgent",

165+

loaded: true,

166+

loadedText: "loaded",

167+

notLoadedText: "not loaded",

168+

runtime: { status: "running", pid: 8000 },

169+

},

170+

config: {

171+

cli: {

172+

path: "/tmp/openclaw-cli/openclaw.json",

173+

exists: true,

174+

valid: true,

175+

},

176+

daemon: {

177+

path: "/tmp/openclaw-daemon/openclaw.json",

178+

exists: true,

179+

valid: true,

180+

controlUi: { basePath: "/ui" },

181+

},

182+

mismatch: true,

183+

},

184+

gateway: {

185+

bindMode: "lan",

186+

bindHost: "0.0.0.0",

187+

port: 19001,

188+

portSource: "service args",

189+

probeUrl: "wss://127.0.0.1:19001",

190+

tlsEnabled: true,

191+

},

192+

rpc: {

193+

ok: true,

194+

kind: "connect",

195+

capability: "write_capable",

196+

url: "wss://127.0.0.1:19001",

197+

},

198+

extraServices: [],

199+

},

200+

{ json: false },

201+

);

202+203+

expect(resolveControlUiLinksMock).toHaveBeenCalledWith({

204+

port: 19001,

205+

bind: "lan",

206+

customBindHost: undefined,

207+

basePath: "/ui",

208+

tlsEnabled: true,

209+

});

210+

});

155211

});