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

推荐订阅源

爱范儿
爱范儿
MyScale Blog
MyScale Blog
Recent Announcements
Recent Announcements
N
Netflix TechBlog - Medium
GbyAI
GbyAI
Vercel News
Vercel News
The GitHub Blog
The GitHub Blog
阮一峰的网络日志
阮一峰的网络日志
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Visual Studio Blog
Martin Fowler
Martin Fowler
腾讯CDC
大猫的无限游戏
大猫的无限游戏
aimingoo的专栏
aimingoo的专栏
云风的 BLOG
云风的 BLOG
J
Java Code Geeks
WordPress大学
WordPress大学
P
Proofpoint News Feed
雷峰网
雷峰网
酷 壳 – CoolShell
酷 壳 – CoolShell
有赞技术团队
有赞技术团队
人人都是产品经理
人人都是产品经理
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Y
Y Combinator 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: stop unknown-root git services · openclaw/openclaw@4...
shakkernerd · 2026-06-11 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -2877,6 +2877,34 @@ describe("update-cli", () => {

28772877

expect(updateCall?.beforeGitMutation).toEqual(expect.any(Function));

28782878

});

28792879
2880+

it("stops a running managed git gateway when wrapper commands hide the service root", async () => {

2881+

const wrapperPath = path.join(

2882+

createCaseDir("openclaw-update-wrapper-service"),

2883+

"gateway-wrapper",

2884+

);

2885+

serviceReadCommand.mockResolvedValue({

2886+

programArguments: [wrapperPath, "gateway", "run"],

2887+

environment: {

2888+

OPENCLAW_SERVICE_MARKER: "openclaw",

2889+

OPENCLAW_SERVICE_KIND: "gateway",

2890+

},

2891+

});

2892+

serviceLoaded.mockResolvedValue(true);

2893+

serviceReadRuntime.mockResolvedValue({

2894+

status: "running",

2895+

pid: 4242,

2896+

state: "running",

2897+

});

2898+

mockGitUpdateAfterMutation();

2899+
2900+

await updateCommand({ yes: true });

2901+
2902+

expect(serviceStop).toHaveBeenCalledTimes(1);

2903+

expect(runGatewayUpdate).toHaveBeenCalledTimes(1);

2904+

expect(prepareRestartScript).toHaveBeenCalled();

2905+

expect(runDaemonRestart).not.toHaveBeenCalled();

2906+

});

2907+
28802908

it("fails managed git restart when the gateway responds but the service stays stopped", async () => {

28812909

const serviceEntrypoint = path.join(process.cwd(), "dist", "index.js");

28822910

serviceReadCommand.mockResolvedValue({

Original file line numberDiff line numberDiff line change

@@ -926,7 +926,8 @@ async function maybeStopManagedServiceBeforeMutableUpdate(params: {

926926
927927

if (

928928

params.updateInstallKind === "git" &&

929-

!(await gatewayServiceCommandUsesRoot({ root: params.root, command: serviceState.command }))

929+

(await gatewayServiceCommandUsesRoot({ root: params.root, command: serviceState.command })) ===

930+

false

930931

) {

931932

if (!params.jsonMode) {

932933

defaultRuntime.log(

@@ -1459,10 +1460,10 @@ async function gatewayServiceCommandUsesRoot(params: {

14591460

root: string | undefined;

14601461

env?: NodeJS.ProcessEnv;

14611462

command?: GatewayServiceCommandConfig | null;

1462-

}): Promise<boolean> {

1463+

}): Promise<boolean | null> {

14631464

const expectedRoot = normalizeOptionalString(params.root);

14641465

if (!expectedRoot) {

1465-

return false;

1466+

return null;

14661467

}

14671468

const command =

14681469

params.command === undefined

@@ -1473,7 +1474,7 @@ async function gatewayServiceCommandUsesRoot(params: {

14731474

const layout = await summarizeGatewayServiceLayout(command);

14741475

const serviceRoot = layout?.packageRoot;

14751476

if (!serviceRoot) {

1476-

return false;

1477+

return null;

14771478

}

14781479

const [expectedRootReal, serviceRootReal] = await Promise.all([

14791480

tryRealpathOrResolve(expectedRoot),

@@ -2242,10 +2243,10 @@ async function maybeRestartService(params: {

22422243

});

22432244

if (

22442245

updatedInstallRestartNeedsServiceRootProof &&

2245-

!(await gatewayServiceCommandUsesRoot({

2246+

(await gatewayServiceCommandUsesRoot({

22462247

root: params.result.root,

22472248

env: params.serviceEnv,

2248-

}))

2249+

})) !== true

22492250

) {

22502251

if (!params.opts.json) {

22512252

defaultRuntime.log(

@@ -3820,7 +3821,7 @@ async function updateCommandInternal(opts: UpdateCommandOptions): Promise<void>

38203821

serviceState.installed &&

38213822

serviceState.loaded &&

38223823

preManagedServiceStop?.stopped !== true &&

3823-

serviceMatchesUpdateRoot !== true;

3824+

serviceMatchesUpdateRoot === false;

38243825

if (

38253826

shouldPrepareUpdatedInstallRestart({

38263827

updateMode: resultWithPostUpdate.mode,