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

推荐订阅源

博客园 - 司徒正美
M
MIT News - Artificial intelligence
博客园_首页
IT之家
IT之家
L
LangChain Blog
D
DataBreaches.Net
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
Blog — PlanetScale
Blog — PlanetScale
人人都是产品经理
人人都是产品经理
博客园 - Franky
云风的 BLOG
云风的 BLOG
罗磊的独立博客
量子位
G
Google Developers Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 【当耐特】
博客园 - 叶小钗
S
SegmentFault 最新的问题
Stack Overflow Blog
Stack Overflow Blog
B
Blog
T
Tailwind CSS Blog
A
About on SuperTechFans
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

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
fix(qa): match Windows RPC sampling ports exactly · openc...
vincentkoc · 2026-06-17 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -1874,8 +1874,7 @@ export async function sampleWindowsProcessByPort(port, options = {}) {

18741874

const pid = stdout

18751875

.split(/\r?\n/u)

18761876

.map((line) => line.trim())

1877-

.filter((line) => line.includes(`:${safePort}`) && /\bLISTENING\b/iu.test(line))

1878-

.map((line) => Number.parseInt(line.split(/\s+/u).at(-1) ?? "", 10))

1877+

.map((line) => parseWindowsNetstatListeningPid(line, safePort))

18791878

.find((candidate) => Number.isInteger(candidate) && candidate > 0);

18801879

if (!pid) {

18811880

return null;

@@ -1886,6 +1885,19 @@ export async function sampleWindowsProcessByPort(port, options = {}) {

18861885

}

18871886

}

18881887
1888+

function parseWindowsNetstatListeningPid(line, port) {

1889+

if (!/\bLISTENING\b/iu.test(line)) {

1890+

return null;

1891+

}

1892+

const fields = line.trim().split(/\s+/u);

1893+

const localPortMatch = fields[1]?.match(/:(\d+)$/u);

1894+

if (!localPortMatch || Number(localPortMatch[1]) !== port) {

1895+

return null;

1896+

}

1897+

const processId = Number(fields.at(-1) ?? "");

1898+

return Number.isSafeInteger(processId) && processId > 0 ? processId : null;

1899+

}

1900+
18891901

function powershellSingleQuoted(value) {

18901902

return `'${String(value).replace(/'/gu, "''")}'`;

18911903

}

Original file line numberDiff line numberDiff line change

@@ -1358,6 +1358,8 @@ describe("kitchen-sink RPC process sampling", () => {

13581358

return {

13591359

stdout: [

13601360

" Proto Local Address Foreign Address State PID",

1361+

" TCP 127.0.0.1:196750 0.0.0.0:0 LISTENING 1111",

1362+

" TCP 127.0.0.1:1967 0.0.0.0:0 LISTENING 2222",

13611363

" TCP 127.0.0.1:19675 0.0.0.0:0 LISTENING 6789",

13621364

].join("\r\n"),

13631365

stderr: "",