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

推荐订阅源

小众软件
小众软件
博客园 - Franky
罗磊的独立博客
G
Google Developers Blog
The GitHub Blog
The GitHub Blog
P
Proofpoint News Feed
Recent Announcements
Recent Announcements
V
V2EX
F
Fortinet All Blogs
阮一峰的网络日志
阮一峰的网络日志
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
U
Unit 42
GbyAI
GbyAI
A
About on SuperTechFans
WordPress大学
WordPress大学
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
D
DataBreaches.Net
The Cloudflare Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
MongoDB | Blog
MongoDB | 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(qa): share progress formatting helpers · opencla...
vincentkoc · 2026-06-20 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -18,6 +18,10 @@ import {

1818

} from "../../evidence-summary.js";

1919

import { startQaGatewayChild } from "../../gateway-child.js";

2020

import { isTruthyOptIn } from "../../mantis-options.runtime.js";

21+

import {

22+

parseQaProgressBooleanEnv as parseTelegramQaProgressBooleanEnv,

23+

sanitizeQaProgressValue as sanitizeTelegramQaProgressValue,

24+

} from "../../progress-format.js";

2125

import { DEFAULT_QA_LIVE_PROVIDER_MODE } from "../../providers/index.js";

2226

import {

2327

defaultQaModelForMode,

@@ -574,20 +578,6 @@ function readConfigRecord(root: Record<string, unknown>, key: string): Record<st

574578

return value;

575579

}

576580
577-

function parseTelegramQaProgressBooleanEnv(value: string | undefined): boolean | undefined {

578-

const normalized = value?.trim().toLowerCase();

579-

if (!normalized) {

580-

return undefined;

581-

}

582-

if (normalized === "1" || normalized === "true" || normalized === "yes" || normalized === "on") {

583-

return true;

584-

}

585-

if (normalized === "0" || normalized === "false" || normalized === "no" || normalized === "off") {

586-

return false;

587-

}

588-

return undefined;

589-

}

590-
591581

function shouldLogTelegramQaLiveProgress(env: NodeJS.ProcessEnv = process.env) {

592582

const override = parseTelegramQaProgressBooleanEnv(env[QA_SUITE_PROGRESS_ENV]);

593583

if (override !== undefined) {

@@ -680,20 +670,6 @@ function writeTelegramQaProgress(enabled: boolean, message: string) {

680670

process.stderr.write(`${TELEGRAM_QA_PROGRESS_PREFIX} ${message}\n`);

681671

}

682672
683-

function sanitizeTelegramQaProgressValue(value: string): string {

684-

let normalized = "";

685-

for (const char of value) {

686-

const code = char.codePointAt(0);

687-

if (code === undefined) {

688-

continue;

689-

}

690-

const isControl = code <= 0x1f || (code >= 0x7f && code <= 0x9f);

691-

normalized += isControl ? " " : char;

692-

}

693-

normalized = normalized.replace(/\s+/gu, " ").trim();

694-

return normalized.length > 0 ? normalized : "<empty>";

695-

}

696-
697673

function formatTelegramQaProgressDetails(details: string): string {

698674

const sanitized = sanitizeTelegramQaProgressValue(details);

699675

if (sanitized.length <= TELEGRAM_QA_PROGRESS_DETAIL_LIMIT) {

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,27 @@

1+

export function parseQaProgressBooleanEnv(value: string | undefined): boolean | undefined {

2+

const normalized = value?.trim().toLowerCase();

3+

if (!normalized) {

4+

return undefined;

5+

}

6+

if (normalized === "1" || normalized === "true" || normalized === "yes" || normalized === "on") {

7+

return true;

8+

}

9+

if (normalized === "0" || normalized === "false" || normalized === "no" || normalized === "off") {

10+

return false;

11+

}

12+

return undefined;

13+

}

14+
15+

export function sanitizeQaProgressValue(value: string): string {

16+

let normalized = "";

17+

for (const char of value) {

18+

const code = char.codePointAt(0);

19+

if (code === undefined) {

20+

continue;

21+

}

22+

const isControl = code <= 0x1f || (code >= 0x7f && code <= 0x9f);

23+

normalized += isControl ? " " : char;

24+

}

25+

normalized = normalized.replace(/\s+/gu, " ").trim();

26+

return normalized.length > 0 ? normalized : "<empty>";

27+

}

Original file line numberDiff line numberDiff line change

@@ -27,6 +27,10 @@ import {

2727

normalizeQaProviderMode,

2828

type QaProviderMode,

2929

} from "./model-selection.js";

30+

import {

31+

parseQaProgressBooleanEnv as parseQaSuiteBooleanEnv,

32+

sanitizeQaProgressValue as sanitizeQaSuiteProgressValue,

33+

} from "./progress-format.js";

3034

import { DEFAULT_QA_LIVE_PROVIDER_MODE } from "./providers/index.js";

3135

import { startQaProviderServer } from "./providers/server-runtime.js";

3236

import type { QaThinkingLevel } from "./qa-gateway-config.js";

@@ -124,20 +128,6 @@ export type QaSuiteRunParams = {

124128

captureRuntimeParityCell?: boolean;

125129

};

126130
127-

function parseQaSuiteBooleanEnv(value: string | undefined): boolean | undefined {

128-

const normalized = value?.trim().toLowerCase();

129-

if (!normalized) {

130-

return undefined;

131-

}

132-

if (normalized === "1" || normalized === "true" || normalized === "yes" || normalized === "on") {

133-

return true;

134-

}

135-

if (normalized === "0" || normalized === "false" || normalized === "no" || normalized === "off") {

136-

return false;

137-

}

138-

return undefined;

139-

}

140-
141131

function shouldLogQaSuiteProgress(env: NodeJS.ProcessEnv = process.env) {

142132

const override = parseQaSuiteBooleanEnv(env.OPENCLAW_QA_SUITE_PROGRESS);

143133

if (override !== undefined) {

@@ -214,20 +204,6 @@ async function waitForQaLabReadyOrStopOwned(params: {

214204

}

215205

}

216206
217-

function sanitizeQaSuiteProgressValue(value: string): string {

218-

let normalized = "";

219-

for (const char of value) {

220-

const code = char.codePointAt(0);

221-

if (code === undefined) {

222-

continue;

223-

}

224-

const isControl = code <= 0x1f || (code >= 0x7f && code <= 0x9f);

225-

normalized += isControl ? " " : char;

226-

}

227-

normalized = normalized.replace(/\s+/gu, " ").trim();

228-

return normalized.length > 0 ? normalized : "<empty>";

229-

}

230-
231207

function requireQaSuiteStartLab(startLab: QaSuiteStartLabFn | undefined): QaSuiteStartLabFn {

232208

if (startLab) {

233209

return startLab;