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

推荐订阅源

D
DataBreaches.Net
IT之家
IT之家
博客园_首页
博客园 - 【当耐特】
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
G
Google Developers Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Recent Announcements
Recent Announcements
F
Fortinet All Blogs
GbyAI
GbyAI
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
I
InfoQ
H
Help Net Security
T
Tailwind CSS Blog
B
Blog RSS Feed
Martin Fowler
Martin Fowler
人人都是产品经理
人人都是产品经理
The Cloudflare 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: write complete release provider config · openclaw/op...
steipete · 2026-05-02 · via Recent Commits to openclaw:main

@@ -86,6 +86,19 @@ function shouldSeedProviderConfigModels(providerMeta) {

8686

);

8787

}

888889+

function buildReleaseProviderConfigOverride(providerMeta) {

90+

if (!shouldSeedProviderConfigModels(providerMeta)) {

91+

return null;

92+

}

93+

return {

94+

...(typeof providerMeta.baseUrl === "string" ? { baseUrl: providerMeta.baseUrl } : {}),

95+

models: [],

96+

...(typeof providerMeta.timeoutSeconds === "number"

97+

? { timeoutSeconds: providerMeta.timeoutSeconds }

98+

: {}),

99+

};

100+

}

101+89102

const PACKAGE_DIST_INVENTORY_RELATIVE_PATH = "dist/postinstall-inventory.json";

90103

const OMITTED_QA_EXTENSION_PREFIXES = [

91104

"dist/extensions/qa-channel/",

@@ -1848,14 +1861,15 @@ async function runInstalledModelsSet(params) {

18481861

logPath: params.logPath,

18491862

timeoutMs: 2 * 60 * 1000,

18501863

});

1851-

if (shouldSeedProviderConfigModels(params.providerConfig)) {

1864+

const providerConfigOverride = buildReleaseProviderConfigOverride(params.providerConfig);

1865+

if (providerConfigOverride) {

18521866

await runInstalledCli({

18531867

cliPath: params.cliPath,

18541868

args: [

18551869

"config",

18561870

"set",

1857-

`models.providers.${params.providerConfig.extensionId}.models`,

1858-

"[]",

1871+

`models.providers.${params.providerConfig.extensionId}`,

1872+

JSON.stringify(providerConfigOverride),

18591873

"--strict-json",

18601874

"--merge",

18611875

],

@@ -1865,52 +1879,6 @@ async function runInstalledModelsSet(params) {

18651879

timeoutMs: 2 * 60 * 1000,

18661880

});

18671881

}

1868-

if (typeof params.providerConfig.timeoutSeconds === "number") {

1869-

await runInstalledCli({

1870-

cliPath: params.cliPath,

1871-

args: [

1872-

"config",

1873-

"set",

1874-

`models.providers.${params.providerConfig.extensionId}.models`,

1875-

"[]",

1876-

"--strict-json",

1877-

],

1878-

cwd: params.cwd,

1879-

env: params.env,

1880-

logPath: params.logPath,

1881-

timeoutMs: 2 * 60 * 1000,

1882-

});

1883-

if (typeof params.providerConfig.baseUrl === "string") {

1884-

await runInstalledCli({

1885-

cliPath: params.cliPath,

1886-

args: [

1887-

"config",

1888-

"set",

1889-

`models.providers.${params.providerConfig.extensionId}.baseUrl`,

1890-

JSON.stringify(params.providerConfig.baseUrl),

1891-

"--strict-json",

1892-

],

1893-

cwd: params.cwd,

1894-

env: params.env,

1895-

logPath: params.logPath,

1896-

timeoutMs: 2 * 60 * 1000,

1897-

});

1898-

}

1899-

await runInstalledCli({

1900-

cliPath: params.cliPath,

1901-

args: [

1902-

"config",

1903-

"set",

1904-

`models.providers.${params.providerConfig.extensionId}.timeoutSeconds`,

1905-

String(params.providerConfig.timeoutSeconds),

1906-

"--strict-json",

1907-

],

1908-

cwd: params.cwd,

1909-

env: params.env,

1910-

logPath: params.logPath,

1911-

timeoutMs: 2 * 60 * 1000,

1912-

});

1913-

}

19141882

await runInstalledCli({

19151883

cliPath: params.cliPath,

19161884

args: [

@@ -2687,65 +2655,23 @@ async function runModelsSet(params) {

26872655

logPath: params.logPath,

26882656

timeoutMs: 2 * 60 * 1000,

26892657

});

2690-

if (shouldSeedProviderConfigModels(params.providerConfig)) {

2658+

const providerConfigOverride = buildReleaseProviderConfigOverride(params.providerConfig);

2659+

if (providerConfigOverride) {

26912660

await runOpenClaw({

26922661

lane: params.lane,

26932662

env: params.env,

26942663

args: [

26952664

"config",

26962665

"set",

2697-

`models.providers.${params.providerConfig.extensionId}.models`,

2698-

"[]",

2666+

`models.providers.${params.providerConfig.extensionId}`,

2667+

JSON.stringify(providerConfigOverride),

26992668

"--strict-json",

27002669

"--merge",

27012670

],

27022671

logPath: params.logPath,

27032672

timeoutMs: 2 * 60 * 1000,

27042673

});

27052674

}

2706-

if (typeof params.providerConfig.timeoutSeconds === "number") {

2707-

await runOpenClaw({

2708-

lane: params.lane,

2709-

env: params.env,

2710-

args: [

2711-

"config",

2712-

"set",

2713-

`models.providers.${params.providerConfig.extensionId}.models`,

2714-

"[]",

2715-

"--strict-json",

2716-

],

2717-

logPath: params.logPath,

2718-

timeoutMs: 2 * 60 * 1000,

2719-

});

2720-

if (typeof params.providerConfig.baseUrl === "string") {

2721-

await runOpenClaw({

2722-

lane: params.lane,

2723-

env: params.env,

2724-

args: [

2725-

"config",

2726-

"set",

2727-

`models.providers.${params.providerConfig.extensionId}.baseUrl`,

2728-

JSON.stringify(params.providerConfig.baseUrl),

2729-

"--strict-json",

2730-

],

2731-

logPath: params.logPath,

2732-

timeoutMs: 2 * 60 * 1000,

2733-

});

2734-

}

2735-

await runOpenClaw({

2736-

lane: params.lane,

2737-

env: params.env,

2738-

args: [

2739-

"config",

2740-

"set",

2741-

`models.providers.${params.providerConfig.extensionId}.timeoutSeconds`,

2742-

String(params.providerConfig.timeoutSeconds),

2743-

"--strict-json",

2744-

],

2745-

logPath: params.logPath,

2746-

timeoutMs: 2 * 60 * 1000,

2747-

});

2748-

}

27492675

await runOpenClaw({

27502676

lane: params.lane,

27512677

env: params.env,