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

推荐订阅源

Martin Fowler
Martin Fowler
有赞技术团队
有赞技术团队
博客园_首页
H
Help Net Security
GbyAI
GbyAI
aimingoo的专栏
aimingoo的专栏
V
Visual Studio Blog
The Cloudflare Blog
腾讯CDC
Jina AI
Jina AI
Last Week in AI
Last Week in AI
月光博客
月光博客
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
Blog — PlanetScale
Blog — PlanetScale
人人都是产品经理
人人都是产品经理
Engineering at Meta
Engineering at Meta
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
爱范儿
爱范儿
N
Netflix TechBlog - Medium
F
Fortinet All Blogs

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(diffs): restore viewer ttl config · openclaw/openclaw...
VACInc · 2026-05-10 · via Recent Commits to openclaw:main

@@ -47,6 +47,7 @@ type DiffsPluginConfig = {

4747

/** @deprecated Use fileMaxWidth. */

4848

imageMaxWidth?: number;

4949

mode?: DiffMode;

50+

ttlSeconds?: number;

5051

};

5152

security?: {

5253

allowRemoteViewer?: boolean;

@@ -89,6 +90,7 @@ export const DEFAULT_DIFFS_TOOL_DEFAULTS: DiffToolDefaults = {

8990

fileScale: DEFAULT_IMAGE_QUALITY_PROFILES.standard.scale,

9091

fileMaxWidth: DEFAULT_IMAGE_QUALITY_PROFILES.standard.maxWidth,

9192

mode: "both",

93+

ttlSeconds: 1800,

9294

};

93959496

type DiffsPluginSecurityConfig = {

@@ -168,6 +170,12 @@ const DiffsPluginJsonSchemaSource = z.strictObject({

168170

.optional()

169171

.describe("Deprecated alias for fileMaxWidth."),

170172

mode: z.enum(DIFF_MODES).default(DEFAULT_DIFFS_TOOL_DEFAULTS.mode).optional(),

173+

ttlSeconds: z

174+

.number()

175+

.min(1)

176+

.max(21_600)

177+

.default(DEFAULT_DIFFS_TOOL_DEFAULTS.ttlSeconds)

178+

.optional(),

171179

})

172180

.optional(),

173181

security: z

@@ -281,6 +289,7 @@ export function resolveDiffsPluginDefaults(config: unknown): DiffToolDefaults {

281289

fileScale: normalizeFileScale(fileScale, profile.scale),

282290

fileMaxWidth: normalizeFileMaxWidth(fileMaxWidth, profile.maxWidth),

283291

mode: normalizeMode(defaults.mode),

292+

ttlSeconds: normalizeTtlSeconds(defaults.ttlSeconds),

284293

};

285294

}

286295

@@ -379,6 +388,14 @@ function normalizeMode(mode?: DiffMode): DiffMode {

379388

return mode && DIFF_MODES.includes(mode) ? mode : DEFAULT_DIFFS_TOOL_DEFAULTS.mode;

380389

}

381390391+

function normalizeTtlSeconds(ttlSeconds?: number): number {

392+

if (ttlSeconds === undefined || !Number.isFinite(ttlSeconds)) {

393+

return DEFAULT_DIFFS_TOOL_DEFAULTS.ttlSeconds;

394+

}

395+

const rounded = Math.floor(ttlSeconds);

396+

return Math.min(Math.max(rounded, 1), 21_600);

397+

}

398+382399

export function resolveDiffImageRenderOptions(params: {

383400

defaults: DiffFileDefaults;

384401

fileFormat?: DiffOutputFormat;