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

推荐订阅源

freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
Visual Studio Blog
IT之家
IT之家
博客园 - 聂微东
The Cloudflare Blog
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
S
SegmentFault 最新的问题
Apple Machine Learning Research
Apple Machine Learning Research
酷 壳 – CoolShell
酷 壳 – CoolShell
爱范儿
爱范儿
H
Help Net Security
博客园 - 叶小钗
V
V2EX
WordPress大学
WordPress大学
J
Java Code Geeks
Hugging Face - Blog
Hugging Face - Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园_首页
C
Check Point Blog
B
Blog
D
DataBreaches.Net
美团技术团队
罗磊的独立博客

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(lint): reduce lint suppressions · openclaw/openclaw...
steipete · 2026-05-31 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -21,10 +21,8 @@ describe("profile name validation", () => {

2121
2222

it("rejects empty or missing names", () => {

2323

expect(isValidProfileName("")).toBe(false);

24-

// @ts-expect-error testing invalid input

25-

expect(isValidProfileName(null)).toBe(false);

26-

// @ts-expect-error testing invalid input

27-

expect(isValidProfileName(undefined)).toBe(false);

24+

expect(isValidProfileName(null as unknown as string)).toBe(false);

25+

expect(isValidProfileName(undefined as unknown as string)).toBe(false);

2826

});

2927
3028

it("rejects names that are too long", () => {

Original file line numberDiff line numberDiff line change

@@ -1,32 +1,29 @@

11

import { Routes } from "discord-api-types/v10";

22

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

3+

import { RequestClient } from "../internal/discord.js";

34

import { sendTyping } from "./typing.js";

45
56

describe("sendTyping", () => {

67

it("uses the direct Discord typing REST endpoint", async () => {

7-

const rest = {

8-

post: vi.fn(async () => {}),

9-

};

8+

const rest = new RequestClient("test-token");

9+

const post = vi.spyOn(rest, "post").mockResolvedValue(undefined);

1010
1111

await sendTyping({

12-

// @ts-expect-error test stub only needs rest.post

1312

rest,

1413

channelId: "12345",

1514

});

1615
17-

expect(rest.post).toHaveBeenCalledTimes(1);

18-

expect(rest.post).toHaveBeenCalledWith(Routes.channelTyping("12345"));

16+

expect(post).toHaveBeenCalledTimes(1);

17+

expect(post).toHaveBeenCalledWith(Routes.channelTyping("12345"));

1918

});

2019
2120

it("times out when the typing endpoint hangs", async () => {

2221

vi.useFakeTimers();

2322

try {

24-

const rest = {

25-

post: vi.fn(() => new Promise(() => {})),

26-

};

23+

const rest = new RequestClient("test-token");

24+

vi.spyOn(rest, "post").mockReturnValue(new Promise(() => {}));

2725
2826

const promise = sendTyping({

29-

// @ts-expect-error test stub only needs rest.post

3027

rest,

3128

channelId: "12345",

3229

});

Original file line numberDiff line numberDiff line change

@@ -22,8 +22,11 @@ let stopped = false;

2222

let activeController: AbortController | undefined;

2323
2424

function post(message: TelegramIngressWorkerMessage): void {

25-

// oxlint-disable-next-line unicorn/require-post-message-target-origin -- Node worker_threads ports do not accept a targetOrigin argument.

26-

parentPort?.postMessage(message);

25+

if (parentPort) {

26+

Reflect.apply(Reflect.get(parentPort, "postMessage") as (value: unknown) => void, parentPort, [

27+

message,

28+

]);

29+

}

2730

}

2831
2932

function sleep(ms: number): Promise<void> {

Original file line numberDiff line numberDiff line change

@@ -74,8 +74,9 @@ export const createTelegramIngressWorker: TelegramIngressWorkerFactory = (option

7474

};

7575

},

7676

async stop() {

77-

// oxlint-disable-next-line unicorn/require-post-message-target-origin -- Node worker_threads workers do not accept a targetOrigin argument.

78-

worker.postMessage({ type: "stop" });

77+

Reflect.apply(Reflect.get(worker, "postMessage") as (value: unknown) => void, worker, [

78+

{ type: "stop" },

79+

]);

7980

const timeout = setTimeout(() => {

8081

void worker.terminate();

8182

}, 15_000);

Original file line numberDiff line numberDiff line change

@@ -226,8 +226,7 @@ describe("Security: Bot Mention Detection", () => {

226226

it("handles empty/null inputs safely", () => {

227227

expect(isBotMentioned("", botShip)).toBe(false);

228228

expect(isBotMentioned("test", "")).toBe(false);

229-

// @ts-expect-error testing null input

230-

expect(isBotMentioned(null, botShip)).toBe(false);

229+

expect(isBotMentioned(null as unknown as string, botShip)).toBe(false);

231230

});

232231
233232

it("requires word boundary for nickname", () => {

Original file line numberDiff line numberDiff line change

@@ -687,5 +687,8 @@ async function main(): Promise<CodeModeWorkerResult> {

687687

}

688688

}

689689
690-

// oxlint-disable-next-line unicorn/require-post-message-target-origin -- Node worker_threads MessagePort, not window.postMessage.

691-

parentPort?.postMessage(await main());

690+

if (parentPort) {

691+

Reflect.apply(Reflect.get(parentPort, "postMessage") as (message: unknown) => void, parentPort, [

692+

await main(),

693+

]);

694+

}

Original file line numberDiff line numberDiff line change

@@ -2,10 +2,16 @@ import { html, nothing } from "lit";

22

import { t } from "../../i18n/index.ts";

33

import { icons } from "../icons.ts";

44
5+

const ESCAPE = String.fromCharCode(0x1b);

6+

const OSC8_LINK_RE = new RegExp(

7+

`${ESCAPE}\\]8;;.*?${ESCAPE}\\\\|${ESCAPE}\\]8;;${ESCAPE}\\\\`,

8+

"g",

9+

);

10+

const SGR_RE = new RegExp(`${ESCAPE}\\[[0-9;]*m`, "g");

11+
512

/** Strip ANSI escape codes (SGR, OSC-8) for readable log display. */

613

function stripAnsi(text: string): string {

7-

/* eslint-disable no-control-regex -- stripping ANSI escape sequences requires matching ESC */

8-

return text.replace(/\x1b\]8;;.*?\x1b\\|\x1b\]8;;\x1b\\/g, "").replace(/\x1b\[[0-9;]*m/g, "");

14+

return text.replace(OSC8_LINK_RE, "").replace(SGR_RE, "");

915

}

1016
1117

export type OverviewLogTailProps = {