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

推荐订阅源

WordPress大学
WordPress大学
Engineering at Meta
Engineering at Meta
D
DataBreaches.Net
月光博客
月光博客
Recent Announcements
Recent Announcements
Google DeepMind News
Google DeepMind News
U
Unit 42
腾讯CDC
爱范儿
爱范儿
J
Java Code Geeks
有赞技术团队
有赞技术团队
Blog — PlanetScale
Blog — PlanetScale
N
Netflix TechBlog - Medium
B
Blog
Stack Overflow Blog
Stack Overflow Blog
GbyAI
GbyAI
T
The Blog of Author Tim Ferriss
小众软件
小众软件
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
T
Tailwind CSS 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: honor selected dev preflight fallback · openclaw/ope...
shakkernerd · 2026-06-11 · via Recent Commits to openclaw:main

@@ -588,10 +588,17 @@ function isSupersededInstallFailure(

588588

return steps.some((candidate) => candidate.name === retryName && candidate.exitCode === 0);

589589

}

590590591+

function isPreflightCandidateFailure(step: UpdateStepResult): boolean {

592+

return /^preflight (?:checkout|deps install(?: \(ignore scripts\))?|build|lint) \(.+\)$/u.test(

593+

step.name,

594+

);

595+

}

596+591597

function findBlockingGitFailure(steps: readonly UpdateStepResult[]): UpdateStepResult | undefined {

592598

return steps.find(

593599

(step, index) =>

594600

step.exitCode !== 0 &&

601+

!isPreflightCandidateFailure(step) &&

595602

!isSupersededInstallFailure(step, steps) &&

596603

!isSupersededTargetRefFailure(step, steps.slice(index + 1)),

597604

);

@@ -604,9 +611,16 @@ function isSupersededTargetRefFailure(

604611

const isTargetRefProbe = step.name.startsWith("git rev-parse ");

605612

const isTargetTagFetch = step.name.startsWith("git fetch ") && step.name.includes(" refs/tags/");

606613

const isUpstreamProbe = step.name === "upstream check";

607-

if (!isTargetRefProbe && !isTargetTagFetch && !isUpstreamProbe) {

614+

const isLocalDevBranchProbe = step.name === `git show-ref ${DEV_BRANCH}`;

615+

if (!isTargetRefProbe && !isTargetTagFetch && !isUpstreamProbe && !isLocalDevBranchProbe) {

608616

return false;

609617

}

618+

if (isLocalDevBranchProbe) {

619+

return followingSteps.some(

620+

(candidate) =>

621+

candidate.name.startsWith(`git checkout -B ${DEV_BRANCH} `) && candidate.exitCode === 0,

622+

);

623+

}

610624

return followingSteps.some(

611625

(candidate) => candidate.name.startsWith("git rev-parse ") && candidate.exitCode === 0,

612626

);

@@ -1290,43 +1304,68 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<

12901304

}

12911305

} else {

12921306

await prepareGitMutation();

1307+

let checkedOutSelectedSha = false;

12931308

if (needsCheckoutMain) {

1309+

const localMainStep = await runStep(

1310+

step(

1311+

`git show-ref ${DEV_BRANCH}`,

1312+

["git", "-C", gitRoot, "show-ref", "--verify", `refs/heads/${DEV_BRANCH}`],

1313+

gitRoot,

1314+

),

1315+

);

1316+

steps.push(localMainStep);

12941317

const failure = await runRequiredGitStep(

1295-

`git checkout ${DEV_BRANCH}`,

1296-

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

1318+

localMainStep.exitCode === 0

1319+

? `git checkout ${DEV_BRANCH}`

1320+

: `git checkout -B ${DEV_BRANCH} ${selectedSha}`,

1321+

localMainStep.exitCode === 0

1322+

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

1323+

: ["git", "-C", gitRoot, "checkout", "-B", DEV_BRANCH, selectedSha],

12971324

"checkout-failed",

12981325

);

12991326

if (failure) {

13001327

return failure;

13011328

}

1329+

checkedOutSelectedSha = localMainStep.exitCode !== 0;

13021330

}

1303-

const rebaseStep = await runStep(

1304-

step("git rebase", ["git", "-C", gitRoot, "rebase", selectedSha], gitRoot),

1305-

);

1306-

steps.push(rebaseStep);

1307-

if (rebaseStep.exitCode !== 0) {

1308-

const abortResult = await runCommand(["git", "-C", gitRoot, "rebase", "--abort"], {

1309-

cwd: gitRoot,

1310-

timeoutMs,

1311-

});

1331+

if (checkedOutSelectedSha) {

13121332

steps.push({

1313-

name: "git rebase --abort",

1314-

command: "git rebase --abort",

1333+

name: "git rebase",

1334+

command: `git rebase ${selectedSha}`,

13151335

cwd: gitRoot,

13161336

durationMs: 0,

1317-

exitCode: abortResult.code,

1318-

stdoutTail: trimLogTail(abortResult.stdout, MAX_LOG_CHARS),

1319-

stderrTail: trimLogTail(abortResult.stderr, MAX_LOG_CHARS),

1337+

exitCode: 0,

1338+

stdoutTail: `skipped; ${DEV_BRANCH} was created at selected preflight SHA`,

13201339

});

1321-

return {

1322-

status: "error",

1323-

mode: "git",

1324-

root: gitRoot,

1325-

reason: "rebase-failed",

1326-

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

1327-

steps,

1328-

durationMs: Date.now() - startedAt,

1329-

};

1340+

} else {

1341+

const rebaseStep = await runStep(

1342+

step("git rebase", ["git", "-C", gitRoot, "rebase", selectedSha], gitRoot),

1343+

);

1344+

steps.push(rebaseStep);

1345+

if (rebaseStep.exitCode !== 0) {

1346+

const abortResult = await runCommand(["git", "-C", gitRoot, "rebase", "--abort"], {

1347+

cwd: gitRoot,

1348+

timeoutMs,

1349+

});

1350+

steps.push({

1351+

name: "git rebase --abort",

1352+

command: "git rebase --abort",

1353+

cwd: gitRoot,

1354+

durationMs: 0,

1355+

exitCode: abortResult.code,

1356+

stdoutTail: trimLogTail(abortResult.stdout, MAX_LOG_CHARS),

1357+

stderrTail: trimLogTail(abortResult.stderr, MAX_LOG_CHARS),

1358+

});

1359+

return {

1360+

status: "error",

1361+

mode: "git",

1362+

root: gitRoot,

1363+

reason: "rebase-failed",

1364+

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

1365+

steps,

1366+

durationMs: Date.now() - startedAt,

1367+

};

1368+

}

13301369

}

13311370

}

13321371

} else {