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

推荐订阅源

Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
爱范儿
爱范儿
D
Docker
I
InfoQ
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Vercel News
Vercel News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
Tailwind CSS Blog
D
DataBreaches.Net
月光博客
月光博客
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
V
Visual Studio Blog
MyScale Blog
MyScale Blog
B
Blog
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
Recent Announcements
Recent Announcements
Microsoft Azure Blog
Microsoft Azure Blog
WordPress大学
WordPress大学

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(gateway): restart channels after timed-out reload sto...
obviyus · 2026-05-30 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -596,6 +596,26 @@ export function createChannelManager(opts: ChannelManagerOptions): ChannelManage

596596

if (manuallyStopped.has(rKey)) {

597597

return;

598598

}

599+

if (recoveryStopTimedOut.has(rKey)) {

600+

recoveryStopTimedOut.delete(rKey);

601+

restartAttempts.delete(rKey);

602+

log.info?.(`[${id}] restarting after timed-out channel stop completed`);

603+

setRuntime(channelId, id, {

604+

accountId: id,

605+

restartPending: true,

606+

reconnectAttempts: 0,

607+

});

608+

if (store.tasks.get(id) === trackedPromise) {

609+

store.tasks.delete(id);

610+

}

611+

if (store.aborts.get(id) === abort) {

612+

store.aborts.delete(id);

613+

}

614+

await startChannelInternal(channelId, id, {

615+

preserveManualStop: true,

616+

});

617+

return;

618+

}

599619

const attempt = (restartAttempts.get(rKey) ?? 0) + 1;

600620

restartAttempts.set(rKey, attempt);

601621

if (attempt > MAX_RESTART_ATTEMPTS) {

@@ -616,24 +636,15 @@ export function createChannelManager(opts: ChannelManagerOptions): ChannelManage

616636

restartPending: true,

617637

reconnectAttempts: attempt,

618638

});

619-

const recoveryRestartSleepAbort = recoveryStopTimedOut.has(rKey)

620-

? new AbortController()

621-

: undefined;

622-

if (recoveryRestartSleepAbort) {

623-

store.aborts.set(id, recoveryRestartSleepAbort);

624-

}

625639

try {

626-

const restartSleepAbort = recoveryRestartSleepAbort?.signal ?? abort.signal;

627-

await sleepWithAbort(delayMs, restartSleepAbort);

640+

await sleepWithAbort(delayMs, abort.signal);

628641

if (manuallyStopped.has(rKey)) {

629-

recoveryStopTimedOut.delete(rKey);

630642

return;

631643

}

632-

recoveryStopTimedOut.delete(rKey);

633644

if (store.tasks.get(id) === trackedPromise) {

634645

store.tasks.delete(id);

635646

}

636-

if (store.aborts.get(id) === (recoveryRestartSleepAbort ?? abort)) {

647+

if (store.aborts.get(id) === abort) {

637648

store.aborts.delete(id);

638649

}

639650

await startChannelInternal(channelId, id, {

@@ -642,13 +653,6 @@ export function createChannelManager(opts: ChannelManagerOptions): ChannelManage

642653

});

643654

} catch {

644655

// abort or startup failure — next crash will retry

645-

} finally {

646-

if (recoveryRestartSleepAbort) {

647-

recoveryStopTimedOut.delete(rKey);

648-

if (store.aborts.get(id) === recoveryRestartSleepAbort) {

649-

store.aborts.delete(id);

650-

}

651-

}

652656

}

653657

})

654658

.finally(() => {