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

推荐订阅源

S
SegmentFault 最新的问题
MongoDB | Blog
MongoDB | Blog
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
The GitHub Blog
The GitHub Blog
博客园 - Franky
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
V
Visual Studio Blog
IT之家
IT之家
美团技术团队
博客园 - 司徒正美
Martin Fowler
Martin Fowler
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
Vercel News
Vercel News
雷峰网
雷峰网
B
Blog
WordPress大学
WordPress大学
aimingoo的专栏
aimingoo的专栏
D
Docker
P
Proofpoint News Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
爱范儿
爱范儿

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): surface live transport failure phases · openclaw...
vincentkoc · 2026-06-19 · via Recent Commits to openclaw:main

@@ -275,6 +275,12 @@ type WhatsAppCredentialLease = Awaited<

275275

ReturnType<typeof acquireQaCredentialLease<WhatsAppQaRuntimeEnv>>

276276

>;

277277

type WhatsAppCredentialHeartbeat = ReturnType<typeof startQaCredentialLeaseHeartbeat>;

278+

type WhatsAppQaPreScenarioPhase =

279+

| "auth archive unpack"

280+

| "credential heartbeat start"

281+

| "credential lease acquisition"

282+

| "driver session start"

283+

| "scenario execution";

278284279285

const WHATSAPP_QA_CAPTURE_CONTENT_ENV = "OPENCLAW_QA_WHATSAPP_CAPTURE_CONTENT";

280286

const QA_REDACT_PUBLIC_METADATA_ENV = "OPENCLAW_QA_REDACT_PUBLIC_METADATA";

@@ -2890,6 +2896,12 @@ function redactWhatsAppQaScenarioResults(

2890289628912897

const SAFE_WHATSAPP_DRIVER_DIAGNOSTICS_PATTERN =

28922898

/observed \d+ WhatsApp driver message\(s\) after (?:(?:pending|resolved) approval )?wait lower bound(?:: [-A-Za-z0-9_#:=()., +;/]+)?/u;

2899+

const SAFE_WHATSAPP_PRE_SCENARIO_FAILURE_PATTERN =

2900+

/^WhatsApp QA failed during (?:auth archive unpack|credential heartbeat start|credential lease acquisition|driver session start|scenario execution)$/u;

2901+2902+

function formatWhatsAppPreScenarioFailureLabel(phase: WhatsAppQaPreScenarioPhase) {

2903+

return `WhatsApp QA failed during ${phase}`;

2904+

}

2893290528942906

function isRedactionSafeWhatsAppScenarioDetailSegment(segment: string) {

28952907

return (

@@ -2901,6 +2913,13 @@ function isRedactionSafeWhatsAppScenarioDetailSegment(segment: string) {

2901291329022914

function redactWhatsAppQaScenarioDetails(details: string) {

29032915

const normalized = details.trim();

2916+

const firstLine = normalized.split(/\r?\n/u, 1)[0] ?? "";

2917+

const separatorIndex = firstLine.indexOf(":");

2918+

const preScenarioFailureLabel =

2919+

separatorIndex < 0 ? firstLine.trim() : firstLine.slice(0, separatorIndex).trim();

2920+

if (SAFE_WHATSAPP_PRE_SCENARIO_FAILURE_PATTERN.test(preScenarioFailureLabel)) {

2921+

return preScenarioFailureLabel;

2922+

}

29042923

const safeDriverDiagnostics = normalized.match(SAFE_WHATSAPP_DRIVER_DIAGNOSTICS_PATTERN);

29052924

if (safeDriverDiagnostics) {

29062925

return safeDriverDiagnostics[0];

@@ -3051,6 +3070,7 @@ export async function runWhatsAppQaLive(params: {

30513070

let runtimeEnv: WhatsAppQaRuntimeEnv | undefined;

30523071

let tempAuthRoot: string | undefined;

30533072

let closeDriverSession: (() => Promise<void>) | undefined;

3073+

let preScenarioPhase: WhatsAppQaPreScenarioPhase = "credential lease acquisition";

3054307430553075

try {

30563076

credentialLease = await acquireQaCredentialLease({

@@ -3060,6 +3080,7 @@ export async function runWhatsAppQaLive(params: {

30603080

resolveEnvPayload: () => resolveWhatsAppQaRuntimeEnv(),

30613081

parsePayload: parseWhatsAppQaCredentialPayload,

30623082

});

3083+

preScenarioPhase = "credential heartbeat start";

30633084

leaseHeartbeat = startQaCredentialLeaseHeartbeat(credentialLease);

30643085

const assertLeaseHealthy = () => {

30653086

leaseHeartbeat?.throwIfFailed();

@@ -3068,6 +3089,7 @@ export async function runWhatsAppQaLive(params: {

30683089

tempAuthRoot = await fs.mkdtemp(

30693090

path.join(resolvePreferredOpenClawTmpDir(), "openclaw-whatsapp-qa-"),

30703091

);

3092+

preScenarioPhase = "auth archive unpack";

30713093

const [driverAuthDir, sutAuthDir] = await Promise.all([

30723094

unpackWhatsAppAuthArchive({

30733095

archiveBase64: runtimeEnv.driverAuthArchiveBase64,

@@ -3080,8 +3102,10 @@ export async function runWhatsAppQaLive(params: {

30803102

parentDir: tempAuthRoot,

30813103

}),

30823104

]);

3105+

preScenarioPhase = "driver session start";

30833106

let activeDriver = await startWhatsAppQaDriverSessionWithRetry({ authDir: driverAuthDir });

30843107

closeDriverSession = () => activeDriver.close();

3108+

preScenarioPhase = "scenario execution";

3085310930863110

for (const [scenarioIndex, scenario] of scenarios.entries()) {

30873111

const progressIndex = scenarioIndex + 1;

@@ -3207,9 +3231,10 @@ export async function runWhatsAppQaLive(params: {

32073231

}

32083232

}

32093233

} catch (error) {

3210-

appendLiveLaneIssue(cleanupIssues, "WhatsApp QA failed before scenario completion", error);

3234+

const failureLabel = formatWhatsAppPreScenarioFailureLabel(preScenarioPhase);

3235+

appendLiveLaneIssue(cleanupIssues, failureLabel, error);

32113236

appendPreScenarioFailureResults({

3212-

details: formatErrorMessage(error),

3237+

details: `${failureLabel}: ${formatErrorMessage(error)}`,

32133238

scenarioResults,

32143239

scenarios,

32153240

});

@@ -3320,6 +3345,7 @@ export const testing = {

33203345

findUnexpectedWhatsAppNoReplyMessage,

33213346

formatWhatsAppApprovalWaitDiagnostics,

33223347

formatWhatsAppBatchMessageDiagnostics,

3348+

formatWhatsAppPreScenarioFailureLabel,

33233349

formatWhatsAppScenarioProgressDetails,

33243350

formatWhatsAppScenarioProgressLine,

33253351

fingerprintWhatsAppCredentialId: fingerprintQaCredentialId,