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

推荐订阅源

Vercel News
Vercel News
B
Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
GbyAI
GbyAI
IT之家
IT之家
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
博客园_首页
C
Check Point Blog
博客园 - 【当耐特】
美团技术团队
Last Week in AI
Last Week in AI
A
About on SuperTechFans
雷峰网
雷峰网
MongoDB | Blog
MongoDB | Blog
Microsoft Azure Blog
Microsoft Azure Blog
M
MIT News - Artificial intelligence
Martin Fowler
Martin Fowler
J
Java Code Geeks
B
Blog RSS Feed
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
Google Developers Blog
F
Fortinet All Blogs

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
refactor(configure): distill fallback selection merge · o...
obviyus · 2026-04-26 · via Recent Commits to openclaw:main

@@ -933,16 +933,14 @@ export function applyModelFallbacksFromSelection(

933933

scopeKeySet && !includesResolvedPrimary

934934

? rawSelectedFallbacks.filter((key) => existingFallbackSet.has(key))

935935

: rawSelectedFallbacks;

936-

const fallbacks = scopeKeySet

937-

? mergeScopedFallbackSelection({

938-

existingFallbacks,

939-

selectedFallbacks,

940-

scopeKeySet,

941-

})

942-

: mergeUnscopedFallbackSelection({

943-

existingFallbacks,

944-

selectedFallbacks,

945-

});

936+

const preserveExistingFallback = scopeKeySet

937+

? (fallback: string) => !scopeKeySet.has(fallback)

938+

: (fallback: string) => !isModelPickerVisibleModelRef(fallback);

939+

const fallbacks = mergeFallbackSelection({

940+

existingFallbacks,

941+

selectedFallbacks,

942+

preserveExistingFallback,

943+

});

946944

const nextModel = {

947945

...preservedModelFields,

948946

...(existingPrimary != null ? { primary: existingPrimary } : {}),

@@ -973,41 +971,16 @@ export function applyModelFallbacksFromSelection(

973971

};

974972

}

975973976-

function mergeScopedFallbackSelection(params: {

977-

existingFallbacks: string[];

978-

selectedFallbacks: string[];

979-

scopeKeySet: Set<string>;

980-

}): string[] {

981-

const selected = new Set(params.selectedFallbacks);

982-

const fallbacks: string[] = [];

983-

for (const fallback of params.existingFallbacks) {

984-

if (!params.scopeKeySet.has(fallback)) {

985-

fallbacks.push(fallback);

986-

continue;

987-

}

988-

if (selected.delete(fallback)) {

989-

fallbacks.push(fallback);

990-

}

991-

}

992-

for (const fallback of params.selectedFallbacks) {

993-

if (selected.has(fallback)) {

994-

fallbacks.push(fallback);

995-

}

996-

}

997-

return fallbacks;

998-

}

999-1000-

function mergeUnscopedFallbackSelection(params: {

974+

function mergeFallbackSelection(params: {

1001975

existingFallbacks: string[];

1002976

selectedFallbacks: string[];

977+

preserveExistingFallback: (fallback: string) => boolean;

1003978

}): string[] {

1004979

const selected = new Set(params.selectedFallbacks);

1005980

const fallbacks: string[] = [];

1006981

for (const fallback of params.existingFallbacks) {

1007-

if (!isModelPickerVisibleModelRef(fallback)) {

982+

if (params.preserveExistingFallback(fallback)) {

1008983

fallbacks.push(fallback);

1009-

// Defensive: future callers may pass a hidden fallback in the selected list.

1010-

selected.delete(fallback);

1011984

continue;

1012985

}

1013986

if (selected.delete(fallback)) {