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

推荐订阅源

罗磊的独立博客
Recent Announcements
Recent Announcements
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
J
Java Code Geeks
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
aimingoo的专栏
aimingoo的专栏
U
Unit 42
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
T
Tailwind CSS Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美
腾讯CDC
I
InfoQ
GbyAI
GbyAI
博客园_首页

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: parse telegram qa timeout env strictly · openclaw/op...
steipete · 2026-05-29 · via Recent Commits to openclaw:main

File tree

  • extensions/qa-lab/src/live-transports/telegram

  • src/agents/embedded-agent-runner/run

Original file line numberDiff line numberDiff line change

@@ -120,6 +120,13 @@ describe("telegram live qa runtime", () => {

120120

OPENCLAW_QA_TELEGRAM_CANARY_TIMEOUT_MS: "nope",

121121

}),

122122

).toBe(30_000);

123+

for (const value of ["0x10", "1e3", "10.5"]) {

124+

expect(

125+

testing.resolveTelegramQaCanaryTimeoutMs({

126+

OPENCLAW_QA_TELEGRAM_CANARY_TIMEOUT_MS: value,

127+

}),

128+

).toBe(30_000);

129+

}

123130

});

124131
125132

it("normalizes the Telegram QA scenario timeout env", () => {

@@ -134,6 +141,13 @@ describe("telegram live qa runtime", () => {

134141

OPENCLAW_QA_TELEGRAM_SCENARIO_TIMEOUT_MS: "nope",

135142

}),

136143

).toBe(45_000);

144+

for (const value of ["0x10", "1e3", "10.5"]) {

145+

expect(

146+

testing.resolveTelegramQaScenarioTimeoutMs(45_000, {

147+

OPENCLAW_QA_TELEGRAM_SCENARIO_TIMEOUT_MS: value,

148+

}),

149+

).toBe(45_000);

150+

}

137151

});

138152
139153

it("sanitizes and truncates Telegram live progress details", () => {

Original file line numberDiff line numberDiff line change

@@ -5,10 +5,7 @@ import path from "node:path";

55

import { promisify } from "node:util";

66

import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";

77

import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime";

8-

import {

9-

appendQaLiveLaneIssue as appendLiveLaneIssue,

10-

buildQaLiveLaneArtifactsError as buildLiveLaneArtifactsError,

11-

} from "../shared/live-artifacts.js";

8+

import { parseStrictPositiveInteger } from "openclaw/plugin-sdk/number-runtime";

129

import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/ssrf-runtime";

1310

import { isRecord, uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime";

1411

import { resolvePreferredOpenClawTmpDir } from "openclaw/plugin-sdk/temp-path";

@@ -26,6 +23,10 @@ import {

2623

startQaCredentialLeaseHeartbeat,

2724

type QaCredentialRole,

2825

} from "../shared/credential-lease.runtime.js";

26+

import {

27+

appendQaLiveLaneIssue as appendLiveLaneIssue,

28+

buildQaLiveLaneArtifactsError as buildLiveLaneArtifactsError,

29+

} from "../shared/live-artifacts.js";

2930

import { startQaLiveLaneGateway } from "../shared/live-gateway.runtime.js";

3031

import {

3132

collectLiveTransportStandardScenarioCoverage,

@@ -569,11 +570,11 @@ function parsePositiveTelegramQaEnvMs(env: NodeJS.ProcessEnv, name: string, fall

569570

if (raw === undefined) {

570571

return fallbackMs;

571572

}

572-

const parsed = Number(raw);

573-

if (!Number.isFinite(parsed) || parsed < 1) {

573+

const parsed = parseStrictPositiveInteger(raw);

574+

if (parsed === undefined) {

574575

return fallbackMs;

575576

}

576-

return Math.floor(parsed);

577+

return parsed;

577578

}

578579
579580

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

Original file line numberDiff line numberDiff line change

@@ -1,11 +1,6 @@

11

import { parseStrictPositiveInteger } from "../../../infra/parse-finite-number.js";

22
3-

export function resolveEmbeddedAbortSettleTimeoutMs(

4-

env: Pick<

5-

NodeJS.ProcessEnv,

6-

"OPENCLAW_EMBEDDED_ABORT_SETTLE_TIMEOUT_MS" | "OPENCLAW_TEST_FAST"

7-

> = process.env,

8-

): number {

3+

export function resolveEmbeddedAbortSettleTimeoutMs(env: NodeJS.ProcessEnv = process.env): number {

94

const override = parseStrictPositiveInteger(env.OPENCLAW_EMBEDDED_ABORT_SETTLE_TIMEOUT_MS);

105

if (override !== undefined) {

116

return override;