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

推荐订阅源

WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
Vercel News
Vercel News
U
Unit 42
L
LangChain Blog
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog
F
Fortinet All Blogs
小众软件
小众软件
I
InfoQ
P
Proofpoint News Feed
D
DataBreaches.Net
Martin Fowler
Martin Fowler
H
Help Net Security
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
有赞技术团队
有赞技术团队
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
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
refactor: trim whatsapp test helper exports · openclaw/op...
steipete · 2026-05-02 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

1616

} from "./test-helpers.js";

1717
1818

export {

19-

resetBaileysMocks,

2019

resetLoadConfigMock,

2120

setLoadConfigMock,

2221

setRuntimeConfigSourceSnapshotMock,

@@ -56,7 +55,7 @@ type MockSessionSocket = {

5655

user: { id: string };

5756

};

5857
59-

export const TEST_NET_IP = "93.184.216.34";

58+

const TEST_NET_IP = "93.184.216.34";

6059

const WEB_AUTO_REPLY_SOCKETS_KEY = Symbol.for("openclaw:webAutoReplySessionSockets");

6160
6261

function getSessionSockets(): MockSessionSocket[] {

@@ -97,7 +96,7 @@ export function getLastWebAutoReplySessionSocket(): MockSessionSocket {

9796

return last;

9897

}

9998
100-

export function resetWebAutoReplySessionSockets() {

99+

function resetWebAutoReplySessionSockets() {

101100

getSessionSockets().length = 0;

102101

}

103102

@@ -115,7 +114,7 @@ vi.mock("openclaw/plugin-sdk/agent-runtime", () => ({

115114

runEmbeddedPiAgent: vi.fn(),

116115

}));

117116
118-

export async function rmDirWithRetries(

117+

async function rmDirWithRetries(

119118

dir: string,

120119

opts?: { attempts?: number; delayMs?: number },

121120

): Promise<void> {

@@ -314,7 +313,7 @@ export function createWebInboundDeliverySpies(): AnyExport {

314313

};

315314

}

316315
317-

export function createWebAutoReplyRuntime(): WebAutoReplyRuntime {

316+

function createWebAutoReplyRuntime(): WebAutoReplyRuntime {

318317

return {

319318

log: vi.fn(),

320319

error: vi.fn(),

Original file line numberDiff line numberDiff line change

@@ -152,10 +152,7 @@ function setWhatsAppSelfChatMode(

152152

return mergeWhatsAppConfig(cfg, accountId, { selfChatMode });

153153

}

154154
155-

export async function detectWhatsAppLinked(

156-

cfg: OpenClawConfig,

157-

accountId: string,

158-

): Promise<boolean> {

155+

async function detectWhatsAppLinked(cfg: OpenClawConfig, accountId: string): Promise<boolean> {

159156

const { authDir } = resolveWhatsAppAuthDir({ cfg, accountId });

160157

const credsPath = path.join(authDir, "creds.json");

161158

return await pathExists(credsPath);

Original file line numberDiff line numberDiff line change

@@ -23,12 +23,12 @@ type QueuedWizardPrompterFactory<T extends WizardPromptHarness> = (params: {

2323

textValues?: string[];

2424

}) => T;

2525
26-

export const WHATSAPP_OWNER_NUMBER_INPUT = "+1 (555) 555-0123";

27-

export const WHATSAPP_OWNER_NUMBER = "+15555550123";

28-

export const WHATSAPP_PERSONAL_NUMBER_INPUT = "+1 (555) 111-2222";

29-

export const WHATSAPP_PERSONAL_NUMBER = "+15551112222";

30-

export const WHATSAPP_ACCESS_NOTE_TITLE = "WhatsApp DM access";

31-

export const WHATSAPP_LOGIN_NOTE_TITLE = "WhatsApp";

26+

const WHATSAPP_OWNER_NUMBER_INPUT = "+1 (555) 555-0123";

27+

const WHATSAPP_OWNER_NUMBER = "+15555550123";

28+

const WHATSAPP_PERSONAL_NUMBER_INPUT = "+1 (555) 111-2222";

29+

const WHATSAPP_PERSONAL_NUMBER = "+15551112222";

30+

const WHATSAPP_ACCESS_NOTE_TITLE = "WhatsApp DM access";

31+

const WHATSAPP_LOGIN_NOTE_TITLE = "WhatsApp";

3232
3333

export function createWhatsAppRootAllowFromConfig(): WhatsAppSetupConfig {

3434

return {

@@ -99,7 +99,7 @@ export function createWhatsAppAllowlistModeInput(): {

9999

};

100100

}

101101
102-

export function expectWhatsAppDmAccess(

102+

function expectWhatsAppDmAccess(

103103

cfg: WhatsAppSetupConfig,

104104

expected: {

105105

selfChatMode: boolean;

@@ -123,7 +123,7 @@ export function expectWhatsAppWorkAccountOpenAccess(cfg: WhatsAppSetupConfig): v

123123

expect(cfg.channels?.whatsapp?.accounts?.work?.allowFrom).toEqual(["*", WHATSAPP_OWNER_NUMBER]);

124124

}

125125
126-

export function expectWhatsAppOwnerNumberPrompt(harness: WizardPromptHarness): void {

126+

function expectWhatsAppOwnerNumberPrompt(harness: WizardPromptHarness): void {

127127

expect(harness.text).toHaveBeenCalledWith(

128128

expect.objectContaining({

129129

message: "Your personal WhatsApp number (the phone you will message from)",