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

推荐订阅源

Martin Fowler
Martin Fowler
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Threat Research - Cisco Blogs
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cyber Attacks, Cyber Crime and Cyber Security
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Troy Hunt's Blog
V
V2EX - 技术
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Heimdal Security Blog
T
Tor Project blog
IT之家
IT之家
Project Zero
Project Zero
GbyAI
GbyAI
Security Latest
Security Latest
S
Security Archives - TechRepublic
人人都是产品经理
人人都是产品经理
大猫的无限游戏
大猫的无限游戏
Spread Privacy
Spread Privacy
S
Security Affairs
A
Arctic Wolf
C
Cybersecurity and Infrastructure Security Agency CISA
I
Intezer
P
Palo Alto Networks Blog
宝玉的分享
宝玉的分享
Google DeepMind News
Google DeepMind News
T
Threatpost
I
InfoQ
F
Full Disclosure
Blog — PlanetScale
Blog — PlanetScale
Last Week in AI
Last Week in AI
Cisco Talos Blog
Cisco Talos Blog
N
Netflix TechBlog - Medium
MyScale Blog
MyScale Blog
H
Help Net Security
S
Securelist
Y
Y Combinator Blog
月光博客
月光博客
博客园_首页
Engineering at Meta
Engineering at Meta
酷 壳 – CoolShell
酷 壳 – CoolShell
J
Java Code Geeks
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
A
About on SuperTechFans
K
Kaspersky official blog
Microsoft Azure Blog
Microsoft Azure Blog
Vercel News
Vercel News
阮一峰的网络日志
阮一峰的网络日志
T
The Exploit Database - CXSecurity.com
B
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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… fix: restrict HTML timeout short-circuit to transient statuses fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) Gateway/skills: dedupe skills prefix-match + drop dead fallback on log Extensions/lmstudio: back off inference preload after consecutive fai… TUI/streaming: add watchdog that resets the activity indicator after … Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write fix: classify HTML provider error pages correctly (#67642) (thanks @s… fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… fix(deps): bump dompurify to 3.4.0 (#67614) CI: add explicit permissions to all workflow jobs (fixes code-scannin… fix: register bundled TTS providers and route overrides correctly (#6… fix: align host tilde paths with OS home (#62804) (thanks @stainlu) fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(gateway): require auth for control ui bootstrap config (#70247) · openclaw/openclaw@2321d67
drobison00 · 2026-04-23 · via Recent Commits to openclaw:main

@@ -48,15 +48,15 @@ describe("handleControlUiHttpRequest", () => {

4848

expect(params.end).toHaveBeenCalledWith("Not Found");

4949

}

505051-

function runControlUiRequest(params: {

51+

async function runControlUiRequest(params: {

5252

url: string;

5353

method: "GET" | "HEAD" | "POST";

5454

rootPath: string;

5555

basePath?: string;

5656

rootKind?: "resolved" | "bundled";

5757

}) {

5858

const { res, end } = makeMockHttpResponse();

59-

const handled = handleControlUiHttpRequest(

59+

const handled = await handleControlUiHttpRequest(

6060

{ url: params.url, method: params.method } as IncomingMessage,

6161

res,

6262

{

@@ -67,6 +67,33 @@ describe("handleControlUiHttpRequest", () => {

6767

return { res, end, handled };

6868

}

696970+

async function runBootstrapConfigRequest(params: {

71+

rootPath: string;

72+

basePath?: string;

73+

auth?: ResolvedGatewayAuth;

74+

headers?: IncomingMessage["headers"];

75+

}) {

76+

const { res, end } = makeMockHttpResponse();

77+

const url = params.basePath

78+

? `${params.basePath}${CONTROL_UI_BOOTSTRAP_CONFIG_PATH}`

79+

: CONTROL_UI_BOOTSTRAP_CONFIG_PATH;

80+

const handled = await handleControlUiHttpRequest(

81+

{

82+

url,

83+

method: "GET",

84+

headers: params.headers ?? {},

85+

socket: { remoteAddress: "127.0.0.1" },

86+

} as IncomingMessage,

87+

res,

88+

{

89+

...(params.basePath ? { basePath: params.basePath } : {}),

90+

...(params.auth ? { auth: params.auth } : {}),

91+

root: { kind: "resolved", path: params.rootPath },

92+

},

93+

);

94+

return { res, end, handled };

95+

}

96+7097

async function runAvatarRequest(params: {

7198

url: string;

7299

method: "GET" | "HEAD";

@@ -241,7 +268,7 @@ describe("handleControlUiHttpRequest", () => {

241268

await withControlUiRoot({

242269

fn: async (tmp) => {

243270

const { res, setHeader } = makeMockHttpResponse();

244-

const handled = handleControlUiHttpRequest(

271+

const handled = await handleControlUiHttpRequest(

245272

{ url: "/", method: "GET" } as IncomingMessage,

246273

res,

247274

{

@@ -405,7 +432,7 @@ describe("handleControlUiHttpRequest", () => {

405432

indexHtml: html,

406433

fn: async (tmp) => {

407434

const { res, setHeader } = makeMockHttpResponse();

408-

handleControlUiHttpRequest({ url: "/", method: "GET" } as IncomingMessage, res, {

435+

await handleControlUiHttpRequest({ url: "/", method: "GET" } as IncomingMessage, res, {

409436

root: { kind: "resolved", path: tmp },

410437

});

411438

const cspCalls = setHeader.mock.calls.filter(

@@ -424,7 +451,7 @@ describe("handleControlUiHttpRequest", () => {

424451

indexHtml: html,

425452

fn: async (tmp) => {

426453

const { res, end } = makeMockHttpResponse();

427-

const handled = handleControlUiHttpRequest(

454+

const handled = await handleControlUiHttpRequest(

428455

{ url: "/", method: "GET" } as IncomingMessage,

429456

res,

430457

{

@@ -445,7 +472,7 @@ describe("handleControlUiHttpRequest", () => {

445472

await withControlUiRoot({

446473

fn: async (tmp) => {

447474

const { res, end } = makeMockHttpResponse();

448-

const handled = handleControlUiHttpRequest(

475+

const handled = await handleControlUiHttpRequest(

449476

{ url: CONTROL_UI_BOOTSTRAP_CONFIG_PATH, method: "GET" } as IncomingMessage,

450477

res,

451478

{

@@ -467,11 +494,43 @@ describe("handleControlUiHttpRequest", () => {

467494

});

468495

});

469496497+

it("rejects bootstrap config requests without a valid auth token when auth is enabled", async () => {

498+

await withControlUiRoot({

499+

fn: async (tmp) => {

500+

const { res, handled, end } = await runBootstrapConfigRequest({

501+

rootPath: tmp,

502+

auth: { mode: "token", token: "test-token", allowTailscale: false },

503+

});

504+

expect(handled).toBe(true);

505+

expect(res.statusCode).toBe(401);

506+

expect(String(end.mock.calls[0]?.[0] ?? "")).toContain("Unauthorized");

507+

},

508+

});

509+

});

510+511+

it("serves bootstrap config JSON when auth is enabled and the token is valid", async () => {

512+

await withControlUiRoot({

513+

fn: async (tmp) => {

514+

const { res, handled, end } = await runBootstrapConfigRequest({

515+

rootPath: tmp,

516+

auth: { mode: "token", token: "test-token", allowTailscale: false },

517+

headers: {

518+

authorization: "Bearer test-token",

519+

},

520+

});

521+

expect(handled).toBe(true);

522+

expect(res.statusCode).toBe(200);

523+

const parsed = parseBootstrapPayload(end);

524+

expect(parsed.assistantAgentId).toBe("main");

525+

},

526+

});

527+

});

528+470529

it("serves bootstrap config JSON under basePath", async () => {

471530

await withControlUiRoot({

472531

fn: async (tmp) => {

473532

const { res, end } = makeMockHttpResponse();

474-

const handled = handleControlUiHttpRequest(

533+

const handled = await handleControlUiHttpRequest(

475534

{ url: `/openclaw${CONTROL_UI_BOOTSTRAP_CONFIG_PATH}`, method: "GET" } as IncomingMessage,

476535

res,

477536

{

@@ -613,7 +672,7 @@ describe("handleControlUiHttpRequest", () => {

613672

await fs.symlink(outsideFile, path.join(assetsDir, "leak.txt"));

614673615674

const { res, end } = makeMockHttpResponse();

616-

const handled = handleControlUiHttpRequest(

675+

const handled = await handleControlUiHttpRequest(

617676

{ url: "/assets/leak.txt", method: "GET" } as IncomingMessage,

618677

res,

619678

{

@@ -634,7 +693,7 @@ describe("handleControlUiHttpRequest", () => {

634693

const { assetsDir, filePath } = await writeAssetFile(tmp, "actual.txt", "inside-ok\n");

635694

await fs.symlink(filePath, path.join(assetsDir, "linked.txt"));

636695637-

const { res, end, handled } = runControlUiRequest({

696+

const { res, end, handled } = await runControlUiRequest({

638697

url: "/assets/linked.txt",

639698

method: "GET",

640699

rootPath: tmp,

@@ -652,7 +711,7 @@ describe("handleControlUiHttpRequest", () => {

652711

fn: async (tmp) => {

653712

await writeAssetFile(tmp, "actual.txt", "inside-ok\n");

654713655-

const { res, end, handled } = runControlUiRequest({

714+

const { res, end, handled } = await runControlUiRequest({

656715

url: "/assets/actual.txt",

657716

method: "HEAD",

658717

rootPath: tmp,

@@ -675,7 +734,7 @@ describe("handleControlUiHttpRequest", () => {

675734

await fs.rm(path.join(tmp, "index.html"));

676735

await fs.symlink(outsideIndex, path.join(tmp, "index.html"));

677736678-

const { res, end, handled } = runControlUiRequest({

737+

const { res, end, handled } = await runControlUiRequest({

679738

url: "/app/route",

680739

method: "GET",

681740

rootPath: tmp,

@@ -698,7 +757,7 @@ describe("handleControlUiHttpRequest", () => {

698757

await fs.rm(path.join(tmp, "index.html"));

699758

await fs.link(outsideIndex, path.join(tmp, "index.html"));

700759701-

const { res, end, handled } = runControlUiRequest({

760+

const { res, end, handled } = await runControlUiRequest({

702761

url: "/",

703762

method: "GET",

704763

rootPath: tmp,

@@ -716,7 +775,7 @@ describe("handleControlUiHttpRequest", () => {

716775

fn: async (tmp) => {

717776

await createHardlinkedAssetFile(tmp);

718777719-

const { res, end, handled } = runControlUiRequest({

778+

const { res, end, handled } = await runControlUiRequest({

720779

url: "/assets/app.hl.js",

721780

method: "GET",

722781

rootPath: tmp,

@@ -734,7 +793,7 @@ describe("handleControlUiHttpRequest", () => {

734793

fn: async (tmp) => {

735794

await createHardlinkedAssetFile(tmp);

736795737-

const { res, end, handled } = runControlUiRequest({

796+

const { res, end, handled } = await runControlUiRequest({

738797

url: "/assets/app.hl.js",

739798

method: "GET",

740799

rootPath: tmp,

@@ -753,7 +812,7 @@ describe("handleControlUiHttpRequest", () => {

753812

fn: async (tmp) => {

754813

for (const webhookPath of ["/bluebubbles-webhook", "/custom-webhook", "/callback"]) {

755814

const { res } = makeMockHttpResponse();

756-

const handled = handleControlUiHttpRequest(

815+

const handled = await handleControlUiHttpRequest(

757816

{ url: webhookPath, method: "POST" } as IncomingMessage,

758817

res,

759818

{ root: { kind: "resolved", path: tmp } },

@@ -770,7 +829,7 @@ describe("handleControlUiHttpRequest", () => {

770829

await withControlUiRoot({

771830

fn: async (tmp) => {

772831

const { res } = makeMockHttpResponse();

773-

const handled = handleControlUiHttpRequest(

832+

const handled = await handleControlUiHttpRequest(

774833

{ url: "/bluebubbles-webhook", method: "POST" } as IncomingMessage,

775834

res,

776835

{ basePath: "/openclaw", root: { kind: "resolved", path: tmp } },

@@ -784,7 +843,7 @@ describe("handleControlUiHttpRequest", () => {

784843

await withControlUiRoot({

785844

fn: async (tmp) => {

786845

for (const apiPath of ["/api", "/api/sessions", "/api/channels/nostr"]) {

787-

const { handled } = runControlUiRequest({

846+

const { handled } = await runControlUiRequest({

788847

url: apiPath,

789848

method: "GET",

790849

rootPath: tmp,

@@ -799,7 +858,7 @@ describe("handleControlUiHttpRequest", () => {

799858

await withControlUiRoot({

800859

fn: async (tmp) => {

801860

for (const pluginPath of ["/plugins", "/plugins/diffs/view/abc/def"]) {

802-

const { handled } = runControlUiRequest({

861+

const { handled } = await runControlUiRequest({

803862

url: pluginPath,

804863

method: "GET",

805864

rootPath: tmp,

@@ -813,7 +872,7 @@ describe("handleControlUiHttpRequest", () => {

813872

it("falls through POST requests when basePath is empty", async () => {

814873

await withControlUiRoot({

815874

fn: async (tmp) => {

816-

const { handled, end } = runControlUiRequest({

875+

const { handled, end } = await runControlUiRequest({

817876

url: "/webhook/bluebubbles",

818877

method: "POST",

819878

rootPath: tmp,

@@ -828,7 +887,7 @@ describe("handleControlUiHttpRequest", () => {

828887

await withControlUiRoot({

829888

fn: async (tmp) => {

830889

for (const route of ["/openclaw", "/openclaw/", "/openclaw/some-page"]) {

831-

const { handled, end } = runControlUiRequest({

890+

const { handled, end } = await runControlUiRequest({

832891

url: route,

833892

method: "POST",

834893

rootPath: tmp,

@@ -850,7 +909,7 @@ describe("handleControlUiHttpRequest", () => {

850909851910

const secretPathUrl = secretPath.split(path.sep).join("/");

852911

const absolutePathUrl = secretPathUrl.startsWith("/") ? secretPathUrl : `/${secretPathUrl}`;

853-

const { res, end, handled } = runControlUiRequest({

912+

const { res, end, handled } = await runControlUiRequest({

854913

url: `/openclaw/${absolutePathUrl}`,

855914

method: "GET",

856915

rootPath: root,

@@ -879,7 +938,7 @@ describe("handleControlUiHttpRequest", () => {

879938

throw error;

880939

}

881940882-

const { res, end, handled } = runControlUiRequest({

941+

const { res, end, handled } = await runControlUiRequest({

883942

url: "/openclaw/assets/leak.txt",

884943

method: "GET",

885944

rootPath: root,