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

推荐订阅源

Google DeepMind News
Google DeepMind News
S
Security Affairs
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
Microsoft Azure Blog
Microsoft Azure Blog
雷峰网
雷峰网
Recent Announcements
Recent Announcements
WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
博客园_首页
The Cloudflare Blog
M
MIT News - Artificial intelligence
博客园 - 【当耐特】
MyScale Blog
MyScale Blog
S
SegmentFault 最新的问题
P
Proofpoint News Feed
Y
Y Combinator Blog
Jina AI
Jina AI
博客园 - 聂微东
A
About on SuperTechFans
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
F
Full Disclosure
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Microsoft Security Blog
Microsoft Security Blog
爱范儿
爱范儿
T
Tailwind CSS Blog
J
Java Code Geeks
Vercel News
Vercel News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Stack Overflow Blog
Stack Overflow Blog
罗磊的独立博客
小众软件
小众软件
酷 壳 – CoolShell
酷 壳 – CoolShell
T
The Blog of Author Tim Ferriss
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
博客园 - 三生石上(FineUI控件)
W
WeLiveSecurity
PCI Perspectives
PCI Perspectives
Attack and Defense Labs
Attack and Defense Labs
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
宝玉的分享
宝玉的分享
IT之家
IT之家
Hacker News: Ask HN
Hacker News: Ask HN
The Register - Security
The Register - Security
T
The Exploit Database - CXSecurity.com
T
Threat Research - Cisco Blogs

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) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 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… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 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(whatsapp): normalize onboarding allowlist numbers · openclaw/openclaw@68a500c
vincentkoc · 2026-05-05 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -63,6 +63,7 @@ Docs: https://docs.openclaw.ai

6363
6464

### Fixes

6565
66+

- WhatsApp/onboarding: canonicalize setup and pairing allowlist entries to WhatsApp's digit-only phone ids while still accepting E.164, JID, and `whatsapp:` inputs, so personal-phone allowlists match WhatsApp Web sender ids after setup. Thanks @vincentkoc.

6667

- Slack/subagents: keep resumed parent `message.send` calls in the originating Slack thread when ambient session thread context is present, and suppress successful silent child completion rows from follow-up findings. Thanks @bek91.

6768

- Infra/Windows: skip the POSIX `/tmp/openclaw` preferred path on Windows in `resolvePreferredOpenClawTmpDir` so log files, TTS temp files, and other writes land in `%TEMP%\openclaw-<uid>` instead of `C:\tmp\openclaw`. Fixes #60713. Thanks @juan-flores077.

6869

- Gateway/diagnostics: make stuck-session recovery outcome-driven and generation-guarded, add `diagnostics.stuckSessionAbortMs`, and emit structured recovery requested/completed events so stale or skipped recovery no longer looks like a successful abort.

Original file line numberDiff line numberDiff line change

@@ -172,6 +172,23 @@ describe("whatsapp setup wizard", () => {

172172

expectWhatsAppOwnerAllowlistSetup(result.cfg, harness);

173173

});

174174
175+

it("rejects invalid owner numbers during prompt validation", async () => {

176+

const harness = createWhatsAppOwnerAllowlistHarness(createQueuedWizardPrompter);

177+
178+

await runConfigureWithHarness({

179+

harness,

180+

forceAllowFrom: true,

181+

});

182+
183+

const prompt = harness.text.mock.calls[0]?.[0] as

184+

| { validate?: (value: string) => string | undefined }

185+

| undefined;

186+

expect(prompt?.validate).toEqual(expect.any(Function));

187+

expect(prompt?.validate?.("abc")).toBe("Invalid number: abc");

188+

expect(prompt?.validate?.("whatsapp:")).toBe("Invalid number: whatsapp:");

189+

expect(prompt?.validate?.("+1 (555) 555-0123")).toBeUndefined();

190+

});

191+
175192

it("supports disabled DM policy for separate-phone setup", async () => {

176193

const { harness, result } = await runSeparatePhoneFlow({

177194

selectValues: ["separate", "disabled"],

Original file line numberDiff line numberDiff line change

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

3030

isWhatsAppGroupJid,

3131

isWhatsAppNewsletterJid,

3232

looksLikeWhatsAppTargetId,

33+

normalizeWhatsAppAllowFromEntry,

3334

normalizeWhatsAppMessagingTarget,

3435

normalizeWhatsAppTarget,

3536

} from "./normalize.js";

@@ -69,6 +70,7 @@ export const whatsappPlugin: ChannelPlugin<ResolvedWhatsAppAccount> =

6970

createChatChannelPlugin<ResolvedWhatsAppAccount>({

7071

pairing: {

7172

idLabel: "whatsappSenderId",

73+

normalizeAllowEntry: (entry) => normalizeWhatsAppAllowFromEntry(entry) ?? "",

7274

},

7375

outbound: whatsappChannelOutbound,

7476

threading: {

Original file line numberDiff line numberDiff line change

@@ -29,6 +29,6 @@ describe("whatsapp config accessors", () => {

2929

it("normalizes allowFrom entries like the channel plugin", () => {

3030

expect(

3131

formatWhatsAppConfigAllowFromEntries([" whatsapp:+49123 ", "*", "49124@s.whatsapp.net"]),

32-

).toEqual(["+49123", "*", "+49124"]);

32+

).toEqual(["49123", "*", "49124"]);

3333

});

3434

});

Original file line numberDiff line numberDiff line change

@@ -101,11 +101,30 @@ export function normalizeWhatsAppMessagingTarget(raw: string): string | undefine

101101

}

102102
103103

export function normalizeWhatsAppAllowFromEntries(allowFrom: Array<string | number>): string[] {

104-

return allowFrom

104+

const seen = new Set<string>();

105+

const normalized = allowFrom

105106

.map((entry) => String(entry).trim())

106107

.filter((entry): entry is string => Boolean(entry))

107-

.map((entry) => (entry === "*" ? entry : normalizeWhatsAppTarget(entry)))

108+

.map(normalizeWhatsAppAllowFromEntry)

108109

.filter((entry): entry is string => Boolean(entry));

110+

return normalized.filter((entry) => {

111+

if (seen.has(entry)) {

112+

return false;

113+

}

114+

seen.add(entry);

115+

return true;

116+

});

117+

}

118+
119+

export function normalizeWhatsAppAllowFromEntry(entry: string): string | null {

120+

if (entry === "*") {

121+

return entry;

122+

}

123+

const normalized = normalizeWhatsAppTarget(entry);

124+

if (!normalized) {

125+

return null;

126+

}

127+

return normalized.startsWith("+") ? normalized.slice(1) : normalized;

109128

}

110129
111130

export function looksLikeWhatsAppTargetId(raw: string): boolean {

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,6 @@

11

export {

22

looksLikeWhatsAppTargetId,

3+

normalizeWhatsAppAllowFromEntry,

34

normalizeWhatsAppMessagingTarget,

45

isWhatsAppGroupJid,

56

isWhatsAppNewsletterJid,

Original file line numberDiff line numberDiff line change

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

11

import path from "node:path";

22

import {

33

DEFAULT_ACCOUNT_ID,

4-

normalizeAllowFromEntries,

54

normalizeE164,

65

pathExists,

76

splitSetupEntries,

@@ -15,6 +14,10 @@ import {

1514

resolveWhatsAppAccount,

1615

resolveWhatsAppAuthDir,

1716

} from "./accounts.js";

17+

import {

18+

normalizeWhatsAppAllowFromEntries,

19+

normalizeWhatsAppAllowFromEntry,

20+

} from "./normalize-target.js";

1821

import { whatsappSetupAdapter } from "./setup-core.js";

1922
2023

type SetupPrompter = Parameters<NonNullable<ChannelSetupWizard["finalize"]>>[0]["prompter"];

@@ -177,22 +180,22 @@ async function promptWhatsAppOwnerAllowFrom(params: {

177180

if (!raw) {

178181

return "Required";

179182

}

180-

const normalized = normalizeE164(raw);

183+

const normalized = normalizeWhatsAppAllowFromEntry(raw);

181184

if (!normalized) {

182185

return `Invalid number: ${raw}`;

183186

}

184187

return undefined;

185188

},

186189

});

187190
188-

const normalized = normalizeE164(trimPromptText(entry));

191+

const normalized = normalizeWhatsAppAllowFromEntry(trimPromptText(entry));

189192

if (!normalized) {

190193

throw new Error("Invalid WhatsApp owner number (expected E.164 after validation).");

191194

}

192-

const allowFrom = normalizeAllowFromEntries(

193-

[...existingAllowFrom.filter((item) => item !== "*"), normalized],

194-

normalizeE164,

195-

);

195+

const allowFrom = normalizeWhatsAppAllowFromEntries([

196+

...existingAllowFrom.filter((item) => item !== "*"),

197+

normalized,

198+

]);

196199

return { normalized, allowFrom };

197200

}

198201

@@ -229,13 +232,13 @@ function parseWhatsAppAllowFromEntries(raw: string): { entries: string[]; invali

229232

entries.push("*");

230233

continue;

231234

}

232-

const normalized = normalizeE164(part);

235+

const normalized = normalizeWhatsAppAllowFromEntry(part);

233236

if (!normalized) {

234237

return { entries: [], invalidEntry: part };

235238

}

236239

entries.push(normalized);

237240

}

238-

return { entries: normalizeAllowFromEntries(entries, normalizeE164) };

241+

return { entries: normalizeWhatsAppAllowFromEntries(entries) };

239242

}

240243
241244

async function promptWhatsAppDmAccess(params: {

@@ -313,7 +316,7 @@ async function promptWhatsAppDmAccess(params: {

313316

let next = setWhatsAppSelfChatMode(params.cfg, accountId, false);

314317

next = setWhatsAppDmPolicy(next, accountId, policy);

315318

if (policy === "open") {

316-

const allowFrom = normalizeAllowFromEntries(["*", ...existingAllowFrom], normalizeE164);

319+

const allowFrom = normalizeWhatsAppAllowFromEntries(["*", ...existingAllowFrom]);

317320

next = setWhatsAppAllowFrom(next, accountId, allowFrom.length > 0 ? allowFrom : ["*"]);

318321

return next;

319322

}

Original file line numberDiff line numberDiff line change

@@ -24,17 +24,18 @@ type QueuedWizardPrompterFactory<T extends WizardPromptHarness> = (params: {

2424

}) => T;

2525
2626

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

27-

const WHATSAPP_OWNER_NUMBER = "+15555550123";

27+

const WHATSAPP_OWNER_NUMBER_E164 = "+15555550123";

28+

const WHATSAPP_OWNER_NUMBER = "15555550123";

2829

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

29-

const WHATSAPP_PERSONAL_NUMBER = "+15551112222";

30+

const WHATSAPP_PERSONAL_NUMBER = "15551112222";

3031

const WHATSAPP_ACCESS_NOTE_TITLE = "WhatsApp DM access";

3132

const WHATSAPP_LOGIN_NOTE_TITLE = "WhatsApp";

3233
3334

export function createWhatsAppRootAllowFromConfig(): WhatsAppSetupConfig {

3435

return {

3536

channels: {

3637

whatsapp: {

37-

allowFrom: [WHATSAPP_OWNER_NUMBER],

38+

allowFrom: [WHATSAPP_OWNER_NUMBER_E164],

3839

},

3940

},

4041

};

@@ -78,7 +79,7 @@ export function createWhatsAppWorkAccountConfig(

7879

whatsapp: {

7980

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

8081

dmPolicy: "disabled",

81-

allowFrom: [WHATSAPP_OWNER_NUMBER],

82+

allowFrom: [WHATSAPP_OWNER_NUMBER_E164],

8283

accounts: {

8384

work: {

8485

authDir: "/tmp/work",

@@ -118,7 +119,7 @@ function expectWhatsAppDmAccess(

118119
119120

export function expectWhatsAppWorkAccountOpenAccess(cfg: WhatsAppSetupConfig): void {

120121

expect(cfg.channels?.whatsapp?.dmPolicy).toBe("disabled");

121-

expect(cfg.channels?.whatsapp?.allowFrom).toEqual([WHATSAPP_OWNER_NUMBER]);

122+

expect(cfg.channels?.whatsapp?.allowFrom).toEqual([WHATSAPP_OWNER_NUMBER_E164]);

122123

expect(cfg.channels?.whatsapp?.accounts?.work?.dmPolicy).toBe("open");

123124

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

124125

}