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

推荐订阅源

Microsoft Azure Blog
Microsoft Azure Blog
宝玉的分享
宝玉的分享
博客园 - 【当耐特】
有赞技术团队
有赞技术团队
G
Google Developers Blog
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
The Cloudflare Blog
Blog — PlanetScale
Blog — PlanetScale
博客园_首页
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
Last Week in AI
Last Week in AI
Y
Y Combinator Blog
罗磊的独立博客
T
Tailwind CSS Blog
博客园 - 叶小钗
T
The Blog of Author Tim Ferriss
Engineering at Meta
Engineering at Meta
博客园 - 聂微东
博客园 - Franky
B
Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
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(clownfish): address review for repair-94016-live-pr-i...
openclaw-clo · 2026-06-25 · via Recent Commits to openclaw:main

@@ -570,6 +570,8 @@ export function createChannelManager(opts: ChannelManagerOptions): ChannelManage

570570

return;

571571

}

572572573+

let trackedPromise: Promise<unknown>;

574+

const isCurrentTask = () => store.tasks.get(id) === trackedPromise;

573575

scopedChannelRuntime = await measureStartup(`channels.${channelId}.runtime`, async () =>

574576

createTaskScopedChannelRuntime({

575577

channelRuntime: await getChannelRuntime(),

@@ -628,7 +630,10 @@ export function createChannelManager(opts: ChannelManagerOptions): ChannelManage

628630

abortSignal: abort.signal,

629631

log,

630632

getStatus: () => getRuntime(channelId, id),

631-

setStatus: (next) => setRuntimeFromTaskStatus(channelId, id, next, abort.signal),

633+

setStatus: (next) =>

634+

isCurrentTask()

635+

? setRuntimeFromTaskStatus(channelId, id, next, abort.signal)

636+

: getRuntime(channelId, id),

632637

...(channelRuntimeForTask ? { channelRuntime: channelRuntimeForTask } : {}),

633638

});

634639

const routeRegistry = getPluginHttpRouteRegistry?.();

@@ -641,27 +646,38 @@ export function createChannelManager(opts: ChannelManagerOptions): ChannelManage

641646

}

642647

await startAccountTask;

643648

});

644-

const trackedPromise = task

649+

// Recovery can replace a timed-out task before the old promise settles.

650+

// Only the task that still owns the store slot may write lifecycle state.

651+

trackedPromise = task

645652

.then(() => {

646-

if (abort.signal.aborted || manuallyStopped.has(rKey)) {

653+

if (abort.signal.aborted || manuallyStopped.has(rKey) || !isCurrentTask()) {

647654

return;

648655

}

649656

const message = "channel exited without an error";

650657

setRuntime(channelId, id, { accountId: id, lastError: message });

651658

log.error?.(`[${id}] ${message}`);

652659

})

653660

.catch((err: unknown) => {

661+

if (!isCurrentTask()) {

662+

return;

663+

}

654664

const message = formatErrorMessage(err);

655665

setRuntime(channelId, id, { accountId: id, lastError: message });

656666

log.error?.(`[${id}] channel exited: ${message}`);

657667

})

658668

.then(async () => {

659669

await cleanupTaskScopedApprovalRuntime("channel cleanup failed");

670+

if (!isCurrentTask()) {

671+

return;

672+

}

660673

setStoppedRuntime(channelId, id, {

661674

lastStopAt: Date.now(),

662675

});

663676

})

664677

.then(async () => {

678+

if (!isCurrentTask()) {

679+

return;

680+

}

665681

if (manuallyStopped.has(rKey)) {

666682

recoveryStopTimedOut.delete(rKey);

667683

recoveryStartRequested.delete(rKey);