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

推荐订阅源

V
Visual Studio Blog
Recent Announcements
Recent Announcements
有赞技术团队
有赞技术团队
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium
腾讯CDC
A
About on SuperTechFans
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
小众软件
小众软件
D
DataBreaches.Net
D
Docker
宝玉的分享
宝玉的分享
量子位
Microsoft Azure Blog
Microsoft Azure Blog
Martin Fowler
Martin Fowler
博客园 - 三生石上(FineUI控件)
Jina AI
Jina AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
V
V2EX
Last Week in AI
Last Week in AI
H
Help Net Security
Hugging Face - Blog
Hugging Face - Blog
M
MIT News - Artificial intelligence

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): reject out-of-range lab CLI ports · openclaw/ope...
vincentkoc · 2026-06-23 · via Recent Commits to openclaw:main

@@ -62,6 +62,7 @@ const QA_RUN_PROFILE_ONLY_OPTIONS = [

6262

] as const;

63636464

const QA_RUN_SELF_CHECK_ONLY_OPTIONS = [{ optionName: "output", flag: "--output" }] as const;

65+

const MAX_QA_CLI_TCP_PORT = 65_535;

65666667

type QaSuiteCliOptions = QaScenarioRunCliOptions & {

6768

channelDriver?: QaSuiteCommandOptions["channelDriver"];

@@ -105,6 +106,14 @@ function parseQaCliPositiveIntegerOption(value: string, flag: string): number {

105106

return parsed;

106107

}

107108109+

function parseQaCliTcpPortOption(value: string, flag: string): number {

110+

const parsed = parseQaCliPositiveIntegerOption(value, flag);

111+

if (parsed > MAX_QA_CLI_TCP_PORT) {

112+

throw invalidQaCliArgument(`${flag} must be a TCP port between 1 and 65535.`);

113+

}

114+

return parsed;

115+

}

116+108117

function parseQaEvidenceModeOption(value: string): QaProfileCommandOptions["evidenceMode"] {

109118

const evidenceMode = value.trim();

110119

if (evidenceMode === "full" || evidenceMode === "slim") {

@@ -867,11 +876,11 @@ export function registerQaLabCli(program: Command) {

867876

.option("--repo-root <path>", "Repository root to target when running from a neutral cwd")

868877

.option("--host <host>", "Bind host", "127.0.0.1")

869878

.option("--port <port>", "Bind port", (value: string) =>

870-

parseQaCliPositiveIntegerOption(value, "--port"),

879+

parseQaCliTcpPortOption(value, "--port"),

871880

)

872881

.option("--advertise-host <host>", "Optional public host to advertise in bootstrap payloads")

873882

.option("--advertise-port <port>", "Optional public port to advertise", (value: string) =>

874-

parseQaCliPositiveIntegerOption(value, "--advertise-port"),

883+

parseQaCliTcpPortOption(value, "--advertise-port"),

875884

)

876885

.option("--control-ui-url <url>", "Optional Control UI URL to embed beside the QA panel")

877886

.option(

@@ -909,10 +918,10 @@ export function registerQaLabCli(program: Command) {

909918

.option("--repo-root <path>", "Repository root to target when running from a neutral cwd")

910919

.requiredOption("--output-dir <path>", "Output directory for docker-compose + state files")

911920

.option("--gateway-port <port>", "Gateway host port", (value: string) =>

912-

parseQaCliPositiveIntegerOption(value, "--gateway-port"),

921+

parseQaCliTcpPortOption(value, "--gateway-port"),

913922

)

914923

.option("--qa-lab-port <port>", "QA lab host port", (value: string) =>

915-

parseQaCliPositiveIntegerOption(value, "--qa-lab-port"),

924+

parseQaCliTcpPortOption(value, "--qa-lab-port"),

916925

)

917926

.option("--provider-base-url <url>", "Provider base URL for the QA gateway")

918927

.option("--image <name>", "Prebaked image name", "openclaw:qa-local-prebaked")

@@ -950,10 +959,10 @@ export function registerQaLabCli(program: Command) {

950959

.option("--repo-root <path>", "Repository root to target when running from a neutral cwd")

951960

.option("--output-dir <path>", "Output directory for docker-compose + state files")

952961

.option("--gateway-port <port>", "Gateway host port", (value: string) =>

953-

parseQaCliPositiveIntegerOption(value, "--gateway-port"),

962+

parseQaCliTcpPortOption(value, "--gateway-port"),

954963

)

955964

.option("--qa-lab-port <port>", "QA lab host port", (value: string) =>

956-

parseQaCliPositiveIntegerOption(value, "--qa-lab-port"),

965+

parseQaCliTcpPortOption(value, "--qa-lab-port"),

957966

)

958967

.option("--provider-base-url <url>", "Provider base URL for the QA gateway")

959968

.option("--image <name>", "Image tag", "openclaw:qa-local-prebaked")

@@ -985,7 +994,7 @@ export function registerQaLabCli(program: Command) {

985994

.description(providerCommand.description)

986995

.option("--host <host>", "Bind host", "127.0.0.1")

987996

.option("--port <port>", "Bind port", (value: string) =>

988-

parseQaCliPositiveIntegerOption(value, "--port"),

997+

parseQaCliTcpPortOption(value, "--port"),

989998

)

990999

.action(async (opts: { host?: string; port?: number }) => {

9911000

await runQaProviderServer(providerCommand.providerMode, opts);