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

推荐订阅源

博客园 - 【当耐特】
小众软件
小众软件
S
SegmentFault 最新的问题
GbyAI
GbyAI
量子位
爱范儿
爱范儿
L
LangChain Blog
Vercel News
Vercel News
A
About on SuperTechFans
腾讯CDC
博客园_首页
酷 壳 – CoolShell
酷 壳 – CoolShell
月光博客
月光博客
博客园 - 聂微东
Stack Overflow Blog
Stack Overflow Blog
H
Help Net Security
U
Unit 42
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
V2EX
V
Visual Studio Blog
美团技术团队
D
DataBreaches.Net
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium

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
config: accept browser.tabCleanup keys in zod schema (#74...
lonexreb · 2026-04-30 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -40,6 +40,7 @@ Docs: https://docs.openclaw.ai

4040
4141

### Fixes

4242
43+

- Config: accept documented `browser.tabCleanup` keys in strict root config validation, so configured tab cleanup no longer fails before runtime reads it. Fixes #74577. Thanks @lonexreb and @ezdlp.

4344

- Channels/status: keep Telegram, Slack, and Google Chat read-only allowlist/default-target accessors on config-only paths, so status and channel summaries do not resolve SecretRef-backed runtime credentials. Thanks @eusine.

4445

- Active Memory: clarify the deprecated `modelFallbackPolicy` warning and config help so `modelFallback` is described as a chain-resolution last resort, not runtime failover. (#74602) Thanks @jeffrey701.

4546

- Channels/Discord: keep read-only allowlist/default-target accessors from resolving SecretRef-backed bot tokens, so status and channel summaries no longer fail when tokens are only available in gateway runtime. (#74737) Thanks @eusine.

Original file line numberDiff line numberDiff line change

@@ -1,4 +1,4 @@

1-

cb32b51492306179b4537514b0650ab24e2f5f8f6c2eda92154cb1420a11e560 config-baseline.json

2-

ab9a004ec78ed51e646be29eb10aa6700de1d47fee77331a85ca5e2cd15b6e93 config-baseline.core.json

1+

c3bcb3a3da46bbbe15a7798869911cab109df950ee51c79fd86c96bb809dfdf1 config-baseline.json

2+

8f573caa7f4cf01ae9d4805d3d14e1ba6772f651f6da182baaf2b469592749a4 config-baseline.core.json

33

92712871defa92eeda8161b516db85574681f2b70678b940508a808b987aeae2 config-baseline.channel.json

4-

ede8b3d9bd7848a09abfcd9fa4f007d289d05742f66b0e38ef459da6dbf40897 config-baseline.plugin.json

4+

aca3215b7382af82b5060d73c631a7f82661c6e99193fa5eb1c5b4b499fb657b config-baseline.plugin.json

Original file line numberDiff line numberDiff line change

@@ -248,6 +248,45 @@ describe("config schema regressions", () => {

248248

expect(res.ok).toBe(false);

249249

});

250250
251+

it("accepts browser.tabCleanup overrides", () => {

252+

const res = validateConfigObject({

253+

browser: {

254+

tabCleanup: {

255+

enabled: true,

256+

idleMinutes: 10,

257+

maxTabsPerSession: 10,

258+

sweepMinutes: 5,

259+

},

260+

},

261+

});

262+
263+

expect(res.ok).toBe(true);

264+

});

265+
266+

it("rejects browser.tabCleanup.sweepMinutes when not positive", () => {

267+

const res = validateConfigObject({

268+

browser: {

269+

tabCleanup: {

270+

sweepMinutes: 0,

271+

},

272+

},

273+

});

274+
275+

expect(res.ok).toBe(false);

276+

});

277+
278+

it("rejects unknown keys under browser.tabCleanup", () => {

279+

const res = validateConfigObject({

280+

browser: {

281+

tabCleanup: {

282+

unknownKey: true as unknown,

283+

},

284+

},

285+

});

286+
287+

expect(res.ok).toBe(false);

288+

});

289+
251290

it("accepts tools.media.asyncCompletion.directSend", () => {

252291

const res = validateConfigObject({

253292

tools: {

Original file line numberDiff line numberDiff line change

@@ -871,6 +871,45 @@ export const GENERATED_BASE_CONFIG_SCHEMA: BaseConfigSchemaResponse = {

871871

type: "string",

872872

},

873873

},

874+

tabCleanup: {

875+

type: "object",

876+

properties: {

877+

enabled: {

878+

type: "boolean",

879+

title: "Browser Tab Cleanup Enabled",

880+

description:

881+

"Enables cleanup of idle tracked browser tabs for primary-agent sessions. Disable only when external tooling owns tab lifecycle completely.",

882+

},

883+

idleMinutes: {

884+

type: "integer",

885+

minimum: 0,

886+

maximum: 9007199254740991,

887+

title: "Browser Tab Cleanup Idle Minutes",

888+

description:

889+

"Minutes of inactivity before a tracked primary-agent browser tab is eligible for closure. Set 0 to disable idle-time cleanup while keeping the per-session tab cap.",

890+

},

891+

maxTabsPerSession: {

892+

type: "integer",

893+

minimum: 0,

894+

maximum: 9007199254740991,

895+

title: "Browser Tab Cleanup Max Tabs Per Session",

896+

description:

897+

"Maximum tracked browser tabs kept per primary-agent session. Oldest inactive tabs are closed first. Set 0 to disable the cap.",

898+

},

899+

sweepMinutes: {

900+

type: "integer",

901+

exclusiveMinimum: 0,

902+

maximum: 9007199254740991,

903+

title: "Browser Tab Cleanup Sweep Minutes",

904+

description:

905+

"Minutes between browser tab cleanup sweeps. Keep this modest so idle tabs are reclaimed without adding frequent background work.",

906+

},

907+

},

908+

additionalProperties: false,

909+

title: "Browser Tab Cleanup",

910+

description:

911+

"Best-effort cleanup policy for browser tabs opened by primary-agent sessions. Keep enabled to avoid stale sandbox or managed-browser tabs accumulating across long-lived gateways.",

912+

},

874913

},

875914

additionalProperties: false,

876915

title: "Browser",

Original file line numberDiff line numberDiff line change

@@ -463,6 +463,15 @@ export const OpenClawSchema = z

463463

)

464464

.optional(),

465465

extraArgs: z.array(z.string()).optional(),

466+

tabCleanup: z

467+

.object({

468+

enabled: z.boolean().optional(),

469+

idleMinutes: z.number().int().nonnegative().optional(),

470+

maxTabsPerSession: z.number().int().nonnegative().optional(),

471+

sweepMinutes: z.number().int().positive().optional(),

472+

})

473+

.strict()

474+

.optional(),

466475

})

467476

.strict()

468477

.optional(),