@@ -5,10 +5,7 @@ import path from "node:path";
55import { promisify } from "node:util" ;
66import type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts" ;
77import { 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" ;
129import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/ssrf-runtime" ;
1310import { isRecord , uniqueStrings } from "openclaw/plugin-sdk/string-coerce-runtime" ;
1411import { 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" ;
2930import { startQaLiveLaneGateway } from "../shared/live-gateway.runtime.js" ;
3031import {
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
579580function resolveTelegramQaCanaryTimeoutMs ( env : NodeJS . ProcessEnv = process . env ) {
0 commit comments