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

推荐订阅源

N
Netflix TechBlog - Medium
I
InfoQ
Engineering at Meta
Engineering at Meta
Jina AI
Jina AI
Recent Announcements
Recent Announcements
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
D
Docker
Microsoft Security Blog
Microsoft Security Blog
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
博客园 - Franky
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 叶小钗
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog RSS Feed
WordPress大学
WordPress大学
MyScale Blog
MyScale 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
fix(update): pipe post-core child stdio on Windows (#7848...
Beandon13 · 2026-05-08 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -33,6 +33,7 @@ Docs: https://docs.openclaw.ai

3333

- Discord/streaming: default Discord replies to progress draft previews so tool/work activity appears in one edited Discord message unless `channels.discord.streaming.mode` is set to `off`.

3434

- OpenAI: support `openai/chat-latest` as an explicit direct API-key model override for trying the moving ChatGPT Instant API alias without changing the stable default model.

3535

- OpenAI/realtime: default realtime voice to `gpt-realtime-2`, use the GA Realtime WebSocket session shape for backend OpenAI bridges, and cover backend, WebRTC, Google Live, and Gateway relay paths in the live Talk smoke. (#79130)

36+

- Update/Windows: spawn the post-core-update child process with `stdio:"pipe"` on Windows so PowerShell/CMD console handles are not inherited, preventing the terminal from hanging after `openclaw update` completes. Fixes #78445. (#78483) Thanks @Beandon13.

3637

- Plugins/install: add `npm-pack:<path.tgz>` installs so local npm pack artifacts run through the same managed npm-root install, lockfile verification, dependency scan, and install-record path as registry npm plugins.

3738

- Channels/plugins: show configured official external channels as missing-plugin status rows and send errors with exact install/doctor repair commands after raw package-manager upgrades leave Feishu or WhatsApp uninstalled. Fixes #78702 and #78593. Thanks @MarkMa84 and @mkupiainen.

3839

- Codex app-server: disarm the short post-tool completion watchdog after current-turn activity, expose `appServer.turnCompletionIdleTimeoutMs`, and include raw assistant item context in idle-timeout diagnostics so status-only post-tool stalls stop failing as idle. Fixes #77984. Thanks @roseware-dev and @rubencu.

Original file line numberDiff line numberDiff line change

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

1010

collectMissingPluginInstallPayloads,

1111

recoverInstalledLaunchAgentAfterUpdate,

1212

recoverLaunchAgentAndRecheckGatewayHealth,

13+

resolvePostCoreUpdateChildStdio,

1314

resolvePostInstallDoctorEnv,

1415

shouldPrepareUpdatedInstallRestart,

1516

resolveUpdatedGatewayRestartPort,

@@ -544,3 +545,17 @@ describe("recoverLaunchAgentAndRecheckGatewayHealth", () => {

544545

});

545546

});

546547

});

548+
549+

describe("resolvePostCoreUpdateChildStdio", () => {

550+

it('returns "pipe" on Windows so the child never inherits the parent console handles', () => {

551+

// On Windows, stdio:"inherit" passes the parent's console HANDLE to the child process.

552+

// PowerShell/CMD will not return the prompt until every holder of those handles exits,

553+

// causing the terminal to hang after `openclaw update` completes (#78445).

554+

expect(resolvePostCoreUpdateChildStdio("win32")).toBe("pipe");

555+

});

556+
557+

it('returns "inherit" on non-Windows platforms', () => {

558+

expect(resolvePostCoreUpdateChildStdio("linux")).toBe("inherit");

559+

expect(resolvePostCoreUpdateChildStdio("darwin")).toBe("inherit");

560+

});

561+

});

Original file line numberDiff line numberDiff line change

@@ -1801,6 +1801,22 @@ function stopPostCoreUpdateChild(child: ChildProcess): void {

18011801

child.kill();

18021802

}

18031803
1804+

/**

1805+

* Returns the stdio mode for the post-core-update child process.

1806+

*

1807+

* Windows shells (PowerShell/CMD) wait for all processes that hold inherited console handles to

1808+

* exit before returning the prompt, even after the immediate child has exited. Using "pipe" on

1809+

* Windows prevents the child (and any grandchildren it spawns) from ever receiving a reference to

1810+

* the parent's console handles, eliminating the terminal hang seen in #78445.

1811+

*

1812+

* @internal exported for testing

1813+

*/

1814+

export function resolvePostCoreUpdateChildStdio(

1815+

platform: NodeJS.Platform = process.platform,

1816+

): "inherit" | "pipe" {

1817+

return platform === "win32" ? "pipe" : "inherit";

1818+

}

1819+
18041820

async function continuePostCoreUpdateInFreshProcess(params: {

18051821

root: string;

18061822

channel: "stable" | "beta" | "dev";

@@ -1832,8 +1848,9 @@ async function continuePostCoreUpdateInFreshProcess(params: {

18321848
18331849

try {

18341850

await writePostCorePluginInstallRecordsFile(installRecordsPath, params.pluginInstallRecords);

1851+

const childStdio = resolvePostCoreUpdateChildStdio();

18351852

const child = spawn(resolveNodeRunner(), argv, {

1836-

stdio: "inherit",

1853+

stdio: childStdio,

18371854

env: {

18381855

...stripGatewayServiceMarkerEnv(disableUpdatedPackageCompileCacheEnv(process.env)),

18391856

[POST_CORE_UPDATE_ENV]: "1",

@@ -1845,6 +1862,11 @@ async function continuePostCoreUpdateInFreshProcess(params: {

18451862

[POST_CORE_UPDATE_INSTALL_RECORDS_PATH_ENV]: installRecordsPath,

18461863

},

18471864

});

1865+

// When piped, relay child output to the parent process so terminal output is preserved.

1866+

if (childStdio === "pipe") {

1867+

child.stdout?.pipe(process.stdout);

1868+

child.stderr?.pipe(process.stderr);

1869+

}

18481870
18491871

const childResult = await new Promise<

18501872

| { kind: "exit"; exitCode: number }