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

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
S
SegmentFault 最新的问题
大猫的无限游戏
大猫的无限游戏
The GitHub Blog
The GitHub Blog
M
MIT News - Artificial intelligence
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏
Last Week in AI
Last Week in AI
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
罗磊的独立博客
H
Help Net Security
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
阮一峰的网络日志
阮一峰的网络日志
J
Java Code Geeks
T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
C
Check Point Blog
F
Fortinet All Blogs
腾讯CDC
博客园 - Franky
WordPress大学
WordPress大学
U
Unit 42

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: constrain dev remote fallback · openclaw/openclaw@de...
shakkernerd · 2026-06-11 · via Recent Commits to openclaw:main

@@ -820,6 +820,7 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<

820820

gitTotalSteps = channel === "dev" ? (needsCheckoutMain ? 11 : 10) : 9;

821821

let gitMutationPrepared = false;

822822

let createdDevBranchDuringUpdate = false;

823+

let localDevBranchExists: boolean | null = null;

823824

const prepareGitMutation = async () => {

824825

if (gitMutationPrepared) {

825826

return;

@@ -1010,8 +1011,19 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<

10101011

preflightBaseSha = targetSha;

10111012

candidatesLocal = [targetSha];

10121013

} else {

1013-

let remoteBranchRefs: string[] = [];

10141014

if (needsCheckoutMain) {

1015+

const localMainStep = await runStep(

1016+

step(

1017+

`git show-ref ${DEV_BRANCH}`,

1018+

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

1019+

gitRoot,

1020+

),

1021+

);

1022+

steps.push(localMainStep);

1023+

localDevBranchExists = localMainStep.exitCode === 0;

1024+

}

1025+

let remoteBranchRefs: string[] = [];

1026+

if (needsCheckoutMain && localDevBranchExists === false) {

10151027

const remoteStep = await runStep(

10161028

step("git remote", ["git", "-C", gitRoot, "remote"], gitRoot),

10171029

);

@@ -1330,27 +1342,20 @@ export async function runGatewayUpdate(opts: UpdateRunnerOptions = {}): Promise<

13301342

await prepareGitMutation();

13311343

let checkedOutSelectedSha = false;

13321344

if (needsCheckoutMain) {

1333-

const localMainStep = await runStep(

1334-

step(

1335-

`git show-ref ${DEV_BRANCH}`,

1336-

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

1337-

gitRoot,

1338-

),

1339-

);

1340-

steps.push(localMainStep);

1345+

const hasLocalDevBranch = localDevBranchExists !== false;

13411346

const failure = await runRequiredGitStep(

1342-

localMainStep.exitCode === 0

1347+

hasLocalDevBranch

13431348

? `git checkout ${DEV_BRANCH}`

13441349

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

1345-

localMainStep.exitCode === 0

1350+

hasLocalDevBranch

13461351

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

13471352

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

13481353

"checkout-failed",

13491354

);

13501355

if (failure) {

13511356

return failure;

13521357

}

1353-

checkedOutSelectedSha = localMainStep.exitCode !== 0;

1358+

checkedOutSelectedSha = !hasLocalDevBranch;

13541359

createdDevBranchDuringUpdate = checkedOutSelectedSha;

13551360

if (checkedOutSelectedSha && selectedDevUpstream) {

13561361

const upstreamFailure = await runRequiredGitStep(