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

推荐订阅源

博客园 - 三生石上(FineUI控件)
Y
Y Combinator Blog
aimingoo的专栏
aimingoo的专栏
B
Blog
小众软件
小众软件
D
DataBreaches.Net
T
The Blog of Author Tim Ferriss
L
LangChain Blog
WordPress大学
WordPress大学
罗磊的独立博客
GbyAI
GbyAI
S
SegmentFault 最新的问题
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
月光博客
月光博客
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网
美团技术团队
F
Fortinet All Blogs
Hugging Face - Blog
Hugging Face - Blog
The GitHub Blog
The GitHub 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): share embedded runner error normalizati...
vincentkoc · 2026-06-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -14,6 +14,7 @@ import {

1414

type OwnedSessionTranscriptCacheSnapshot,

1515

withOwnedSessionTranscriptWrites,

1616

} from "../../../config/sessions/transcript-write-context.js";

17+

import { toErrorObject } from "../../../infra/errors.js";

1718

import { resolveGlobalSingleton } from "../../../shared/global-singleton.js";

1819

import { isTranscriptOnlyOpenClawAssistantMessage } from "../../../shared/transcript-only-openclaw-assistant.js";

1920

import { isSessionWriteLockAcquireError } from "../../session-write-lock-error.js";

@@ -891,7 +892,7 @@ function waitForSessionFileOwnerRelease(params: {

891892

}): Promise<void> {

892893

if (params.signal?.aborted) {

893894

return Promise.reject(

894-

toLintErrorObject(abortOwnerWaitReason(params.signal), "Non-Error rejection"),

895+

toErrorObject(abortOwnerWaitReason(params.signal), "Non-Error rejection"),

895896

);

896897

}

897898

return new Promise<void>((resolve, reject) => {

@@ -915,21 +916,15 @@ function waitForSessionFileOwnerRelease(params: {

915916

};

916917

waiter.reject = (error) => {

917918

cleanup();

918-

reject(toLintErrorObject(error, "Non-Error rejection"));

919+

reject(toErrorObject(error, "Non-Error rejection"));

919920

};

920921

const timeoutMs = resolveSessionFileOwnerWaitTimeoutMs(params.timeoutMs);

921922

if (timeoutMs !== undefined) {

922-

waiter.timer = setTimeout(

923-

() => {

924-

waiter.reject(

925-

new EmbeddedAttemptSessionFileOwnerTimeoutError(

926-

params.sessionFile,

927-

timeoutMs,

928-

),

929-

);

930-

},

931-

timeoutMs,

932-

);

923+

waiter.timer = setTimeout(() => {

924+

waiter.reject(

925+

new EmbeddedAttemptSessionFileOwnerTimeoutError(params.sessionFile, timeoutMs),

926+

);

927+

}, timeoutMs);

933928

waiter.timer.unref?.();

934929

}

935930

if (params.signal) {

@@ -2084,17 +2079,3 @@ export function installPromptSubmissionLockRelease(params: {

20842079

wrappedStreamFn["__openclawSessionLockPromptReleaseInstalled"] = true;

20852080

agent.streamFn = wrappedStreamFn;

20862081

}

2087-
2088-

function toLintErrorObject(value: unknown, fallbackMessage: string): Error {

2089-

if (value instanceof Error) {

2090-

return value;

2091-

}

2092-

if (typeof value === "string") {

2093-

return new Error(value);

2094-

}

2095-

const error = new Error(fallbackMessage, { cause: value });

2096-

if ((typeof value === "object" && value !== null) || typeof value === "function") {

2097-

Object.assign(error, value);

2098-

}

2099-

return error;

2100-

}