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

推荐订阅源

Google DeepMind News
Google DeepMind News
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
爱范儿
爱范儿
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
M
MIT News - Artificial intelligence
D
Docker
量子位
T
Tailwind CSS Blog
人人都是产品经理
人人都是产品经理
月光博客
月光博客
有赞技术团队
有赞技术团队
J
Java Code Geeks
A
About on SuperTechFans
P
Proofpoint News Feed
Jina AI
Jina AI
Y
Y Combinator Blog
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
V
V2EX
GbyAI
GbyAI
F
Fortinet All 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
chore(deadcode): remove test-only channel helpers · openc...
vincentkoc · 2026-06-22 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

44

buildIrcAllowlistCandidates,

55

normalizeIrcAllowEntry,

66

normalizeIrcMessagingTarget,

7-

resolveIrcAllowlistMatch,

87

} from "./normalize.js";

98
109

describe("irc normalize", () => {

@@ -33,24 +32,5 @@ describe("irc normalize", () => {

3332

expect(buildIrcAllowlistCandidates(message)).toContain("alice!ident@example.org");

3433

expect(buildIrcAllowlistCandidates(message)).not.toContain("alice");

3534

expect(buildIrcAllowlistCandidates(message, { allowNameMatching: true })).toContain("alice");

36-

expect(

37-

resolveIrcAllowlistMatch({

38-

allowFrom: ["alice!ident@example.org"],

39-

message,

40-

}).allowed,

41-

).toBe(true);

42-

expect(

43-

resolveIrcAllowlistMatch({

44-

allowFrom: ["alice"],

45-

message,

46-

}).allowed,

47-

).toBe(false);

48-

expect(

49-

resolveIrcAllowlistMatch({

50-

allowFrom: ["alice"],

51-

message,

52-

allowNameMatching: true,

53-

}).allowed,

54-

).toBe(true);

5535

});

5636

});

Original file line numberDiff line numberDiff line change

@@ -2,7 +2,6 @@

22

import {

33

normalizeLowercaseStringOrEmpty,

44

normalizeOptionalLowercaseString,

5-

normalizeStringEntriesLower,

65

} from "openclaw/plugin-sdk/string-coerce-runtime";

76

import { hasIrcControlChars } from "./control-chars.js";

87

import type { IrcInboundMessage } from "./types.js";

@@ -85,23 +84,3 @@ export function buildIrcAllowlistCandidates(

8584

}

8685

return [...candidates];

8786

}

88-
89-

export function resolveIrcAllowlistMatch(params: {

90-

allowFrom: string[];

91-

message: IrcInboundMessage;

92-

allowNameMatching?: boolean;

93-

}): { allowed: boolean; source?: string } {

94-

const allowFrom = new Set(normalizeStringEntriesLower(params.allowFrom));

95-

if (allowFrom.has("*")) {

96-

return { allowed: true, source: "wildcard" };

97-

}

98-

const candidates = buildIrcAllowlistCandidates(params.message, {

99-

allowNameMatching: params.allowNameMatching,

100-

});

101-

for (const candidate of candidates) {

102-

if (allowFrom.has(candidate)) {

103-

return { allowed: true, source: candidate };

104-

}

105-

}

106-

return { allowed: false };

107-

}

Original file line numberDiff line numberDiff line change

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

55

import { installWebAutoReplyUnitTestHooks, makeSessionStore } from "./auto-reply.test-harness.js";

66

import { buildMentionConfig } from "./auto-reply/mentions.js";

77

import { createEchoTracker } from "./auto-reply/monitor/echo.js";

8-

import { awaitBackgroundTasks } from "./auto-reply/monitor/last-route.js";

98

import { createWebOnMessageHandler } from "./auto-reply/monitor/on-message.js";

109

import { createTestWebInboundMessage } from "./inbound/test-message.test-helper.js";

1110

@@ -134,7 +133,8 @@ describe("web auto-reply last-route", () => {

134133

}),

135134

);

136135
137-

await awaitBackgroundTasks(backgroundTasks);

136+

await Promise.allSettled(backgroundTasks);

137+

backgroundTasks.clear();

138138
139139

expect(updateLastRouteInBackgroundMock).toHaveBeenCalledTimes(1);

140140

const updateParams = updateLastRouteInBackgroundMock.mock.calls.at(0)?.[0] as

@@ -211,7 +211,8 @@ describe("web auto-reply last-route", () => {

211211

}),

212212

);

213213
214-

await awaitBackgroundTasks(backgroundTasks);

214+

await Promise.allSettled(backgroundTasks);

215+

backgroundTasks.clear();

215216
216217

expect(updateLastRouteInBackgroundMock).toHaveBeenCalledTimes(1);

217218

const updateParams = updateLastRouteInBackgroundMock.mock.calls.at(0)?.[0] as

Original file line numberDiff line numberDiff line change

@@ -51,12 +51,3 @@ export function updateLastRouteInBackground(params: {

5151

});

5252

trackBackgroundTask(params.backgroundTasks, task);

5353

}

54-
55-

export function awaitBackgroundTasks(backgroundTasks: Set<Promise<unknown>>) {

56-

if (backgroundTasks.size === 0) {

57-

return Promise.resolve();

58-

}

59-

return Promise.allSettled(backgroundTasks).then(() => {

60-

backgroundTasks.clear();

61-

});

62-

}