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

推荐订阅源

M
MIT News - Artificial intelligence
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
Apple Machine Learning Research
Apple Machine Learning Research
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
The Cloudflare Blog
IT之家
IT之家
雷峰网
雷峰网
小众软件
小众软件
博客园 - 叶小钗
博客园 - 聂微东
爱范儿
爱范儿
博客园 - 司徒正美
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
博客园 - 【当耐特】
V
V2EX
博客园_首页
T
Tailwind CSS Blog

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
refactor(agents): narrow runtime guard exports · openclaw...
vincentkoc · 2026-06-17 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -27,7 +27,7 @@ export function truncateErrorDetail(detail: string, limit = 220): string {

2727

}

2828
2929

/** Redacts secrets before preserving a bounded provider error body preview. */

30-

export function redactProviderErrorBody(body: string): string {

30+

function redactProviderErrorBody(body: string): string {

3131

return truncateErrorDetail(redactSensitiveText(body), ERROR_BODY_METADATA_LIMIT);

3232

}

3333

@@ -145,7 +145,7 @@ function extractProviderErrorPayloadMetadata(payload: unknown): ProviderErrorPay

145145

}

146146
147147

/** Metadata extracted from a non-2xx provider response body and headers. */

148-

export type ProviderHttpErrorInfo = {

148+

type ProviderHttpErrorInfo = {

149149

detail?: string;

150150

code?: string;

151151

type?: string;

Original file line numberDiff line numberDiff line change

@@ -9,8 +9,8 @@ import { parseStrictPositiveInteger } from "../infra/parse-finite-number.js";

99

// Cleanup steps must not block run completion forever. This module bounds each

1010

// cleanup step and logs enough context to debug late failures.

1111

export const AGENT_CLEANUP_STEP_TIMEOUT_MS = 10_000;

12-

export const AGENT_CLEANUP_STEP_TIMEOUT_ENV = "OPENCLAW_AGENT_CLEANUP_TIMEOUT_MS";

13-

export const TRAJECTORY_FLUSH_TIMEOUT_ENV = "OPENCLAW_TRAJECTORY_FLUSH_TIMEOUT_MS";

12+

const AGENT_CLEANUP_STEP_TIMEOUT_ENV = "OPENCLAW_AGENT_CLEANUP_TIMEOUT_MS";

13+

const TRAJECTORY_FLUSH_TIMEOUT_ENV = "OPENCLAW_TRAJECTORY_FLUSH_TIMEOUT_MS";

1414

export const CLEANUP_TIMEOUT_DETAILS_MAX_CHARS = 512;

1515
1616

const CLEANUP_TIMEOUT_DETAILS_TRUNCATED_SUFFIX = "...[truncated]";

Original file line numberDiff line numberDiff line change

@@ -5,7 +5,7 @@

55

* controller aborts without matching free-form error text.

66

*/

77

/** Stop reason emitted when an agent run is aborted. */

8-

export const AGENT_RUN_ABORTED_STOP_REASON = "aborted" as const;

8+

const AGENT_RUN_ABORTED_STOP_REASON = "aborted" as const;

99

/** Error text used for aborted agent runs. */

1010

export const AGENT_RUN_ABORTED_ERROR = "agent run aborted" as const;

1111

export const AGENT_RUN_RESTART_ABORT_STOP_REASON = "restart" as const;

Original file line numberDiff line numberDiff line change

@@ -1,5 +1,5 @@

11

/** Agent run phases used when attributing timeout/cancellation sources. */

2-

export const AGENT_RUN_TIMEOUT_PHASES = [

2+

const AGENT_RUN_TIMEOUT_PHASES = [

33

"queue",

44

"preflight",

55

"provider",

Original file line numberDiff line numberDiff line change

@@ -46,9 +46,9 @@ type CleanupSignal = (typeof CLEANUP_SIGNALS)[number];

4646

const CLEANUP_STATE_KEY = Symbol.for("openclaw.sessionWriteLockCleanupState");

4747

const WATCHDOG_STATE_KEY = Symbol.for("openclaw.sessionWriteLockWatchdogState");

4848
49-

export const DEFAULT_SESSION_WRITE_LOCK_STALE_MS = 30 * 60 * 1000;

50-

export const DEFAULT_SESSION_WRITE_LOCK_MAX_HOLD_MS = 5 * 60 * 1000;

51-

export const DEFAULT_SESSION_WRITE_LOCK_ACQUIRE_TIMEOUT_MS = 60_000;

49+

const DEFAULT_SESSION_WRITE_LOCK_STALE_MS = 30 * 60 * 1000;

50+

const DEFAULT_SESSION_WRITE_LOCK_MAX_HOLD_MS = 5 * 60 * 1000;

51+

const DEFAULT_SESSION_WRITE_LOCK_ACQUIRE_TIMEOUT_MS = 60_000;

5252

const DEFAULT_WATCHDOG_INTERVAL_MS = 60_000;

5353

const DEFAULT_TIMEOUT_GRACE_MS = 2 * 60 * 1000;

5454

const REPORT_ONLY_STALE_LOCK_REASONS = new Set(["too-old", "hold-exceeded"]);

@@ -189,7 +189,7 @@ export function resolveSessionWriteLockStaleMs(

189189

});

190190

}

191191
192-

export function resolveSessionWriteLockMaxHoldMs(

192+

function resolveSessionWriteLockMaxHoldMs(

193193

config?: SessionWriteLockAcquireTimeoutConfig,

194194

params: { env?: NodeJS.ProcessEnv; fallback?: number } = {},

195195

): number {