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

推荐订阅源

H
Help Net Security
月光博客
月光博客
IT之家
IT之家
B
Blog RSS Feed
T
Tailwind CSS Blog
The GitHub Blog
The GitHub Blog
博客园 - 三生石上(FineUI控件)
MyScale Blog
MyScale Blog
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - Franky
博客园 - 叶小钗
阮一峰的网络日志
阮一峰的网络日志
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
U
Unit 42
博客园_首页
B
Blog
V
V2EX
腾讯CDC
Vercel News
Vercel News
量子位
Microsoft Security Blog
Microsoft Security 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
refactor(extensions): remove unused helper facades · open...
vincentkoc · 2026-06-19 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -10,7 +10,6 @@ import {

1010

computeInteractionCallbackUrl,

1111

createMattermostInteractionHandler,

1212

generateInteractionToken,

13-

getInteractionCallbackUrl,

1413

getInteractionSecret,

1514

resolveInteractionCallbackPath,

1615

resolveInteractionCallbackUrl,

@@ -197,21 +196,6 @@ describe("generateInteractionToken / verifyInteractionToken", () => {

197196

});

198197

});

199198
200-

// ── Callback URL registry ────────────────────────────────────────────

201-
202-

describe("callback URL registry", () => {

203-

it("stores and retrieves callback URLs", () => {

204-

setInteractionCallbackUrl("acct1", "http://localhost:18789/mattermost/interactions/acct1");

205-

expect(getInteractionCallbackUrl("acct1")).toBe(

206-

"http://localhost:18789/mattermost/interactions/acct1",

207-

);

208-

});

209-
210-

it("returns undefined for unknown account", () => {

211-

expect(getInteractionCallbackUrl("nonexistent-account-id")).toBeUndefined();

212-

});

213-

});

214-
215199

describe("resolveInteractionCallbackUrl", () => {

216200

afterEach(() => {

217201

for (const accountId of ["cached", "default", "acct", "myaccount"]) {

Original file line numberDiff line numberDiff line change

@@ -66,10 +66,6 @@ export function setInteractionCallbackUrl(accountId: string, url: string): void

6666

callbackUrls.set(accountId, url);

6767

}

6868
69-

export function getInteractionCallbackUrl(accountId: string): string | undefined {

70-

return callbackUrls.get(accountId);

71-

}

72-
7369

type InteractionCallbackConfig = Pick<OpenClawConfig, "gateway" | "channels"> & {

7470

interactions?: {

7571

callbackBaseUrl?: string;

Original file line numberDiff line numberDiff line change

@@ -15,7 +15,6 @@ import type { ApiClient } from "./api-client.js";

1515

import {

1616

ChunkedMediaApi,

1717

UploadDailyLimitExceededError,

18-

isChunkedUploadImplemented,

1918

} from "./media-chunked.js";

2019

import type { UploadCacheAdapter } from "./media.js";

2120

import { UPLOAD_PREPARE_FALLBACK_CODE } from "./retry.js";

@@ -115,12 +114,6 @@ describe("media-chunked: UploadDailyLimitExceededError", () => {

115114

});

116115

});

117116
118-

describe("media-chunked: isChunkedUploadImplemented", () => {

119-

it("returns true for the filled-in module", () => {

120-

expect(isChunkedUploadImplemented()).toBe(true);

121-

});

122-

});

123-
124117

describe("media-chunked: ChunkedMediaApi.uploadChunked", () => {

125118

beforeEach(() => {

126119

originalFetch = globalThis.fetch;

Original file line numberDiff line numberDiff line change

@@ -411,19 +411,6 @@ export class ChunkedMediaApi {

411411

}

412412

}

413413
414-

// ============ Legacy functional facade ============

415-
416-

/**

417-

* @deprecated The chunked uploader is always implemented.

418-

*

419-

* Legacy feature flag. The chunked uploader is fully implemented, so this

420-

* returns `true`. Retained so that older call sites can be converted

421-

* progressively.

422-

*/

423-

export function isChunkedUploadImplemented(): boolean {

424-

return true;

425-

}

426-
427414

// ============ Source resolution ============

428415
429416

/**

Original file line numberDiff line numberDiff line change

@@ -1,7 +1,6 @@

11

// Whatsapp tests cover approval reactions plugin behavior.

22

import { beforeEach, describe, expect, it, vi } from "vitest";

33

import {

4-

buildWhatsAppApprovalReactionHint,

54

clearWhatsAppApprovalReactionTargetsForTest,

65

extractWhatsAppApprovalPromptBinding,

76

maybeResolveWhatsAppApprovalReaction,

@@ -29,18 +28,6 @@ describe("WhatsApp approval reactions", () => {

2928

resolverMocks.isApprovalNotFoundError.mockReturnValue(false);

3029

});

3130
32-

it("renders thumbs-only reaction choices for allowed decisions", () => {

33-

expect(buildWhatsAppApprovalReactionHint(["allow-once", "deny"])).toBe(

34-

"React with:\n\n👍 Allow Once\n👎 Deny",

35-

);

36-

});

37-
38-

it("exposes allow-always as a reaction choice when allowed", () => {

39-

expect(buildWhatsAppApprovalReactionHint(["allow-once", "allow-always", "deny"])).toBe(

40-

"React with:\n\n👍 Allow Once\n♾️ Allow Always\n👎 Deny",

41-

);

42-

});

43-
4431

it("registers reaction state when only allow-always is available", async () => {

4532

expect(

4633

registerWhatsAppApprovalReactionTarget({

Original file line numberDiff line numberDiff line change

@@ -1,7 +1,6 @@

11

// Whatsapp plugin module implements approval reactions behavior.

22

import type { WAMessage } from "baileys";

33

import {

4-

buildApprovalReactionHint,

54

createApprovalReactionTargetStore,

65

listApprovalReactionBindings,

76

resolveApprovalReactionTarget,

@@ -94,12 +93,6 @@ export function listWhatsAppApprovalReactionBindings(

9493

return listApprovalReactionBindings({ allowedDecisions });

9594

}

9695
97-

export function buildWhatsAppApprovalReactionHint(

98-

allowedDecisions: readonly ExecApprovalReplyDecision[],

99-

): string | null {

100-

return buildApprovalReactionHint({ allowedDecisions });

101-

}

102-
10396

function normalizeApprovalDecision(value: string): ExecApprovalReplyDecision | null {

10497

const normalized = value.trim().toLowerCase();

10598

if (normalized === "always") {

Original file line numberDiff line numberDiff line change

@@ -4,7 +4,6 @@ import { afterEach, describe, expect, it, vi } from "vitest";

44

import {

55

isXaiToolEnabled,

66

resolveFallbackXaiAuth,

7-

resolveFallbackXaiApiKey,

87

resolveXaiToolApiKey,

98

resolveXaiToolApiKeyWithAuth,

109

} from "./tool-auth-shared.js";

@@ -16,7 +15,7 @@ describe("xai tool auth helpers", () => {

1615
1716

it("prefers plugin web search keys over legacy grok keys", () => {

1817

expect(

19-

resolveFallbackXaiApiKey({

18+

resolveFallbackXaiAuth({

2019

plugins: {

2120

entries: {

2221

xai: {

@@ -38,7 +37,10 @@ describe("xai tool auth helpers", () => {

3837

},

3938

},

4039

}),

41-

).toBe("plugin-key");

40+

).toEqual({

41+

apiKey: "plugin-key",

42+

source: "plugins.entries.xai.config.webSearch.apiKey",

43+

});

4244

});

4345
4446

it("returns source metadata and managed markers for fallback auth", () => {

Original file line numberDiff line numberDiff line change

@@ -157,18 +157,6 @@ export function resolveFallbackXaiAuth(cfg?: OpenClawConfig): XaiFallbackAuth |

157157

return readLegacyGrokFallbackAuth(cfg);

158158

}

159159
160-

export function resolveFallbackXaiApiKey(cfg?: OpenClawConfig): string | undefined {

161-

const plugin = readPluginXaiWebSearchApiKeyResult(cfg);

162-

if (plugin.status === "available") {

163-

return plugin.value;

164-

}

165-

if (plugin.status === "blocked") {

166-

return undefined;

167-

}

168-

const legacy = readLegacyGrokApiKeyResult(cfg);

169-

return legacy.status === "available" ? legacy.value : undefined;

170-

}

171-
172160

export function resolveXaiToolApiKey(params: {

173161

runtimeConfig?: OpenClawConfig;

174162

sourceConfig?: OpenClawConfig;