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

推荐订阅源

D
Docker
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
A
About on SuperTechFans
博客园 - 【当耐特】
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
雷峰网
雷峰网
博客园_首页
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
IT之家
IT之家
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
博客园 - 聂微东
B
Blog RSS Feed
H
Help Net Security
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
D
DataBreaches.Net
L
LangChain Blog
Vercel News
Vercel News

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): stop dev updates after fetch failure · openc...
obviyus · 2026-05-05 · via Recent Commits to openclaw:main

@@ -737,11 +737,11 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<

737737

steps,

738738

durationMs: Date.now() - startedAt,

739739

});

740-

const runGitCheckoutOrFail = async (name: string, argv: string[]) => {

741-

const checkoutStep = await runStep(step(name, argv, gitRoot));

742-

steps.push(checkoutStep);

743-

if (checkoutStep.exitCode !== 0) {

744-

return buildGitErrorResult("checkout-failed");

740+

const runRequiredGitStep = async (name: string, argv: string[], reason: string) => {

741+

const gitStep = await runStep(step(name, argv, gitRoot));

742+

steps.push(gitStep);

743+

if (gitStep.exitCode !== 0) {

744+

return buildGitErrorResult(reason);

745745

}

746746

return null;

747747

};

@@ -770,22 +770,24 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<

770770771771

if (channel === "dev") {

772772

if (needsCheckoutMain) {

773-

const failure = await runGitCheckoutOrFail(`git checkout ${DEV_BRANCH}`, [

774-

"git",

775-

"-C",

776-

gitRoot,

777-

"checkout",

778-

DEV_BRANCH,

779-

]);

773+

const failure = await runRequiredGitStep(

774+

`git checkout ${DEV_BRANCH}`,

775+

["git", "-C", gitRoot, "checkout", DEV_BRANCH],

776+

"checkout-failed",

777+

);

780778

if (failure) {

781779

return failure;

782780

}

783781

}

784782785-

const fetchStep = await runStep(

786-

step("git fetch", ["git", "-C", gitRoot, "fetch", "--all", "--prune", "--tags"], gitRoot),

783+

const fetchFailure = await runRequiredGitStep(

784+

"git fetch",

785+

["git", "-C", gitRoot, "fetch", "--all", "--prune", "--tags"],

786+

"fetch-failed",

787787

);

788-

steps.push(fetchStep);

788+

if (fetchFailure) {

789+

return fetchFailure;

790+

}

789791

let preflightBaseSha: string | null = null;

790792

let candidates: string[] = [];

791793

if (devTargetRef) {

@@ -1091,14 +1093,11 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<

10911093

}

1092109410931095

if (devTargetRef) {

1094-

const failure = await runGitCheckoutOrFail(`git checkout ${selectedSha}`, [

1095-

"git",

1096-

"-C",

1097-

gitRoot,

1098-

"checkout",

1099-

"--detach",

1100-

selectedSha,

1101-

]);

1096+

const failure = await runRequiredGitStep(

1097+

`git checkout ${selectedSha}`,

1098+

["git", "-C", gitRoot, "checkout", "--detach", selectedSha],

1099+

"checkout-failed",

1100+

);

11021101

if (failure) {

11031102

return failure;

11041103

}

@@ -1133,20 +1132,13 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<

11331132

}

11341133

}

11351134

} else {

1136-

const fetchStep = await runStep(

1137-

step("git fetch", ["git", "-C", gitRoot, "fetch", "--all", "--prune", "--tags"], gitRoot),

1135+

const fetchFailure = await runRequiredGitStep(

1136+

"git fetch",

1137+

["git", "-C", gitRoot, "fetch", "--all", "--prune", "--tags"],

1138+

"fetch-failed",

11381139

);

1139-

steps.push(fetchStep);

1140-

if (fetchStep.exitCode !== 0) {

1141-

return {

1142-

status: "error",

1143-

mode: "git",

1144-

root: gitRoot,

1145-

reason: "fetch-failed",

1146-

before: { sha: beforeSha, version: beforeVersion },

1147-

steps,

1148-

durationMs: Date.now() - startedAt,

1149-

};

1140+

if (fetchFailure) {

1141+

return fetchFailure;

11501142

}

1151114311521144

const tag = await resolveChannelTag(runCommand, gitRoot, timeoutMs, channel);

@@ -1162,14 +1154,11 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<

11621154

};

11631155

}

116411561165-

const failure = await runGitCheckoutOrFail(`git checkout ${tag}`, [

1166-

"git",

1167-

"-C",

1168-

gitRoot,

1169-

"checkout",

1170-

"--detach",

1171-

tag,

1172-

]);

1157+

const failure = await runRequiredGitStep(

1158+

`git checkout ${tag}`,

1159+

["git", "-C", gitRoot, "checkout", "--detach", tag],

1160+

"checkout-failed",

1161+

);

11731162

if (failure) {

11741163

return failure;

11751164

}