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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
量子位
T
Tailwind CSS Blog
Vercel News
Vercel News
I
InfoQ
Stack Overflow Blog
Stack Overflow Blog
U
Unit 42
Engineering at Meta
Engineering at Meta
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
D
Docker
博客园_首页
P
Proofpoint News Feed
月光博客
月光博客
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Martin Fowler
Martin Fowler
腾讯CDC
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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: use refreshable manifest rows for provider list fast...
shakkernerd · 2026-04-28 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -53,8 +53,8 @@ Notes:

5353

unavailable until matching auth is configured.

5454

- Broad `models list --all` merges manifest catalog rows over registry rows

5555

without loading provider runtime supplement hooks. Provider-filtered manifest

56-

fast paths only use providers marked `static`, so partial `refreshable`

57-

manifest rows do not hide registry-backed provider lists.

56+

fast paths use `static` and `refreshable` manifest rows; providers marked

57+

`runtime` stay on registry/runtime discovery.

5858

- `models list` keeps native model metadata and runtime caps distinct. In table

5959

output, `Ctx` shows `contextTokens/contextWindow` when an effective runtime

6060

cap differs from the native context window; JSON rows include `contextTokens`

Original file line numberDiff line numberDiff line change

@@ -50,7 +50,7 @@ const openrouterPlugin = {

5050

};

5151
5252

describe("loadStaticManifestCatalogRowsForList", () => {

53-

it("loads all static manifest catalog rows without a provider filter", async () => {

53+

it("loads listable manifest catalog rows without a provider filter", async () => {

5454

const { loadStaticManifestCatalogRowsForList } = await import("./list.manifest-catalog.js");

5555

const index = { plugins: [], diagnostics: [] };

5656

mocks.loadPluginRegistrySnapshot.mockReturnValueOnce(index);

@@ -63,7 +63,7 @@ describe("loadStaticManifestCatalogRowsForList", () => {

6363

loadStaticManifestCatalogRowsForList({

6464

cfg: {},

6565

}).map((row) => row.ref),

66-

).toEqual(["moonshot/kimi-k2.6"]);

66+

).toEqual(["moonshot/kimi-k2.6", "openrouter/auto"]);

6767

expect(mocks.loadPluginManifestRegistryForInstalledIndex).toHaveBeenCalledWith({

6868

index,

6969

config: {},

Original file line numberDiff line numberDiff line change

@@ -37,13 +37,13 @@ function loadManifestCatalogRowsForPluginIds(params: {

3737

if (params.staticOnly === false) {

3838

return plan.rows;

3939

}

40-

const staticProviders = new Set(

41-

plan.entries.filter((entry) => entry.discovery === "static").map((entry) => entry.provider),

40+

const listableProviders = new Set(

41+

plan.entries.filter((entry) => entry.discovery !== "runtime").map((entry) => entry.provider),

4242

);

43-

if (staticProviders.size === 0) {

43+

if (listableProviders.size === 0) {

4444

return [];

4545

}

46-

return plan.rows.filter((row) => staticProviders.has(row.provider));

46+

return plan.rows.filter((row) => listableProviders.has(row.provider));

4747

}

4848
4949

function resolveConventionModelCatalogPluginIds(params: {

Original file line numberDiff line numberDiff line change

@@ -83,9 +83,9 @@ describe("planAllModelListSources", () => {

8383

expect(mocks.hasProviderStaticCatalogForFilter).not.toHaveBeenCalled();

8484

});

8585
86-

it("uses the registry when provider-filtered manifest rows are refreshable", async () => {

86+

it("uses provider-filtered refreshable manifest rows without loading the registry", async () => {

8787

const { planAllModelListSources } = await import("./list.source-plan.js");

88-

mocks.loadManifestCatalogRowsForList.mockReturnValueOnce([]).mockReturnValueOnce([catalogRow]);

88+

mocks.loadManifestCatalogRowsForList.mockReturnValueOnce([catalogRow]);

8989
9090

const plan = await planAllModelListSources({

9191

all: true,

@@ -94,21 +94,16 @@ describe("planAllModelListSources", () => {

9494

});

9595
9696

expect(plan).toMatchObject({

97-

kind: "registry",

98-

requiresInitialRegistry: true,

99-

skipRuntimeModelSuppression: false,

97+

kind: "manifest",

98+

requiresInitialRegistry: false,

99+

skipRuntimeModelSuppression: true,

100100

});

101101

expect(plan.manifestCatalogRows).toEqual([catalogRow]);

102-

expect(mocks.loadManifestCatalogRowsForList).toHaveBeenNthCalledWith(1, {

102+

expect(mocks.loadManifestCatalogRowsForList).toHaveBeenCalledWith({

103103

cfg: {},

104104

providerFilter: "openai",

105105

staticOnly: true,

106106

});

107-

expect(mocks.loadManifestCatalogRowsForList).toHaveBeenNthCalledWith(2, {

108-

cfg: {},

109-

providerFilter: "openai",

110-

staticOnly: false,

111-

});

112107

expect(mocks.loadProviderIndexCatalogRowsForList).not.toHaveBeenCalled();

113108

});

114109