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

推荐订阅源

爱范儿
爱范儿
博客园 - 叶小钗
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
腾讯CDC
S
SegmentFault 最新的问题
D
DataBreaches.Net
Hugging Face - Blog
Hugging Face - Blog
L
LangChain Blog
Recent Announcements
Recent Announcements
阮一峰的网络日志
阮一峰的网络日志
N
Netflix TechBlog - Medium
大猫的无限游戏
大猫的无限游戏
M
MIT News - Artificial intelligence
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
F
Fortinet All Blogs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Martin Fowler
Martin Fowler
雷峰网
雷峰网
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
小众软件
小众软件
云风的 BLOG
云风的 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(stepfun): drop stale auth choice metadata · openclaw/...
vincentkoc · 2026-05-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -48,6 +48,7 @@ Docs: https://docs.openclaw.ai

4848

### Fixes

4949
5050

- Agents/tools: honor configured custom provider API keys when deciding whether media, image-generation, video-generation, music-generation, and PDF tools are available. (#85570)

51+

- StepFun: stop advertising stale generic API key auth choices so onboarding only offers runtime-backed Standard and Step Plan choices.

5152

- Windows installer: fail Git checkout installs when `pnpm install` or `pnpm build` fails instead of writing a wrapper to a missing CLI build.

5253

- Sessions: surface previous-transcript archive failures during `/new` rotation so disk rename errors are logged instead of silently hiding stranded transcript files. Fixes #81984. (#85586, from #82081) Thanks @0xghost42.

5354

- TUI/agents: mirror internal-ui message-tool replies into final chat output so message-tool-only agents remain visible in `openclaw tui`. Fixes #85538. Thanks @danpolasek.

Original file line numberDiff line numberDiff line change

@@ -0,0 +1,64 @@

1+

import { readFileSync } from "node:fs";

2+

import { resolve } from "node:path";

3+

import {

4+

registerProviderPlugin,

5+

requireRegisteredProvider,

6+

} from "openclaw/plugin-sdk/plugin-test-runtime";

7+

import { describe, expect, it } from "vitest";

8+

import stepfunPlugin from "./index.js";

9+
10+

type StepFunManifest = {

11+

setup?: {

12+

providers?: Array<{

13+

id?: string;

14+

authMethods?: string[];

15+

envVars?: string[];

16+

}>;

17+

};

18+

providerAuthChoices?: Array<{

19+

provider?: string;

20+

method?: string;

21+

choiceId?: string;

22+

}>;

23+

};

24+
25+

function readManifest(): StepFunManifest {

26+

return JSON.parse(readFileSync(resolve(import.meta.dirname, "openclaw.plugin.json"), "utf-8"));

27+

}

28+
29+

describe("stepfun provider registration", () => {

30+

it("keeps manifest auth choices aligned with runtime provider methods", async () => {

31+

const { providers } = await registerProviderPlugin({

32+

plugin: stepfunPlugin,

33+

id: "stepfun",

34+

name: "StepFun",

35+

});

36+

const manifest = readManifest();

37+

const runtimeChoices = ["stepfun", "stepfun-plan"].flatMap((providerId) => {

38+

const provider = requireRegisteredProvider(providers, providerId);

39+

return provider.auth.map((method) => ({

40+

provider: provider.id,

41+

method: method.id,

42+

choiceId: method.wizard?.choiceId,

43+

}));

44+

});

45+
46+

const manifestChoices = manifest.providerAuthChoices?.map((choice) => ({

47+

provider: choice.provider,

48+

method: choice.method,

49+

choiceId: choice.choiceId,

50+

}));

51+
52+

expect(runtimeChoices).toEqual(manifestChoices);

53+

expect(manifest.setup?.providers).toEqual([

54+

{

55+

id: "stepfun",

56+

envVars: ["STEPFUN_API_KEY"],

57+

},

58+

{

59+

id: "stepfun-plan",

60+

envVars: ["STEPFUN_API_KEY"],

61+

},

62+

]);

63+

});

64+

});

Original file line numberDiff line numberDiff line change

@@ -10,12 +10,10 @@

1010

"providers": [

1111

{

1212

"id": "stepfun",

13-

"authMethods": ["api-key"],

1413

"envVars": ["STEPFUN_API_KEY"]

1514

},

1615

{

1716

"id": "stepfun-plan",

18-

"authMethods": ["api-key"],

1917

"envVars": ["STEPFUN_API_KEY"]

2018

}

2119

]