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

推荐订阅源

The Cloudflare Blog
Microsoft Security Blog
Microsoft Security Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
L
LangChain Blog
W
WeLiveSecurity
P
Proofpoint News Feed
月光博客
月光博客
NISL@THU
NISL@THU
L
LINUX DO - 最新话题
Webroot Blog
Webroot Blog
T
Threatpost
Y
Y Combinator Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
T
Threat Research - Cisco Blogs
Vercel News
Vercel News
Jina AI
Jina AI
阮一峰的网络日志
阮一峰的网络日志
S
Schneier on Security
J
Java Code Geeks
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
小众软件
小众软件
MyScale Blog
MyScale Blog
N
News and Events Feed by Topic
Stack Overflow Blog
Stack Overflow Blog
有赞技术团队
有赞技术团队
The Hacker News
The Hacker News
Schneier on Security
Schneier on Security
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Help Net Security
Help Net Security
Recent Announcements
Recent Announcements
S
Security @ Cisco Blogs
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Securelist
T
The Exploit Database - CXSecurity.com
云风的 BLOG
云风的 BLOG
C
Cisco Blogs
雷峰网
雷峰网
量子位
Google DeepMind News
Google DeepMind News
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Spread Privacy
Spread Privacy
L
Lohrmann on Cybersecurity
I
Intezer
T
The Blog of Author Tim Ferriss
G
GRAHAM CLULEY
D
DataBreaches.Net
V
Vulnerabilities – Threatpost
P
Privacy & Cybersecurity Law Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
罗磊的独立博客

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix: prefer OpenAI media for Codex defaults · openclaw/openclaw@35bc13f
steipete · 2026-04-28 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

1414

### Fixes

1515
1616

- Agents/media: register detached `video_generate` and `music_generate` tool run contexts until terminal status, so Discord-backed provider jobs stay live in `/tasks` instead of becoming `lost` when the parent chat run context disappears. Thanks @vincentkoc.

17+

- Agents/media: prefer OpenAI image and video providers when the default model uses the OpenAI Codex auth alias, so auto media generation no longer falls through to Fal before GPT Image or Sora. Thanks @vincentkoc.

1718

- Tasks/media: infer agent ownership for session-scoped task records so `/tasks` agent-local fallback includes session-backed `video_generate` and other async media jobs even when the current chat session has no linked rows. Thanks @vincentkoc.

1819

- Agents/media: keep long-running `video_generate` and `music_generate` tasks fresh while provider jobs are still pending, so task maintenance does not mark active Discord media renders lost before completion. Thanks @vincentkoc.

1920

- CLI/status: treat scope-limited gateway probes as reachable-but-degraded in shared status scans, so `openclaw status --all` no longer reports a live gateway as unreachable after `missing scope: operator.read`. Fixes #49180; supersedes #47981. Thanks @openjay.

Original file line numberDiff line numberDiff line change

@@ -194,6 +194,7 @@ describe("openai image generation provider", () => {

194194

const provider = buildOpenAIImageGenerationProvider();

195195
196196

expect(provider.defaultModel).toBe("gpt-image-2");

197+

expect(provider.aliases).toContain("openai-codex");

197198

expect(provider.models).toEqual([

198199

"gpt-image-2",

199200

"gpt-image-1.5",

Original file line numberDiff line numberDiff line change

@@ -537,6 +537,7 @@ function createOpenAIImageGenerationProviderBase(params: {

537537

}): ImageGenerationProvider {

538538

return {

539539

id: params.id,

540+

aliases: ["openai-codex"],

540541

label: params.label,

541542

defaultModel: DEFAULT_OPENAI_IMAGE_MODEL,

542543

models: [...OPENAI_IMAGE_MODELS],

Original file line numberDiff line numberDiff line change

@@ -17,6 +17,12 @@ beforeAll(async () => {

1717

installProviderHttpMockCleanup();

1818
1919

describe("openai video generation provider", () => {

20+

it("declares the openai-codex alias for default-model ordering", () => {

21+

const provider = buildOpenAIVideoGenerationProvider();

22+
23+

expect(provider.aliases).toContain("openai-codex");

24+

});

25+
2026

it("declares explicit mode capabilities", () => {

2127

expectExplicitVideoGenerationCapabilities(buildOpenAIVideoGenerationProvider());

2228

});

Original file line numberDiff line numberDiff line change

@@ -180,6 +180,7 @@ async function downloadOpenAIVideo(params: {

180180

export function buildOpenAIVideoGenerationProvider(): VideoGenerationProvider {

181181

return {

182182

id: "openai",

183+

aliases: ["openai-codex"],

183184

label: "OpenAI",

184185

defaultModel: DEFAULT_OPENAI_VIDEO_MODEL,

185186

models: [DEFAULT_OPENAI_VIDEO_MODEL, "sora-2-pro"],

Original file line numberDiff line numberDiff line change

@@ -339,6 +339,55 @@ describe("createImageGenerateTool", () => {

339339

});

340340

});

341341
342+

it("prefers OpenAI image generation when the default model uses its Codex provider alias", () => {

343+

vi.spyOn(imageGenerationRuntime, "listRuntimeImageGenerationProviders").mockReturnValue([

344+

{

345+

id: "fal",

346+

defaultModel: "fal-ai/flux/dev",

347+

models: ["fal-ai/flux/dev"],

348+

isConfigured: () => true,

349+

capabilities: {

350+

generate: { maxCount: 4 },

351+

edit: { enabled: true, maxInputImages: 1 },

352+

},

353+

generateImage: vi.fn(async () => {

354+

throw new Error("not used");

355+

}),

356+

},

357+

{

358+

id: "openai",

359+

aliases: ["openai-codex"],

360+

defaultModel: "gpt-image-2",

361+

models: ["gpt-image-2"],

362+

isConfigured: () => true,

363+

capabilities: {

364+

generate: { maxCount: 4 },

365+

edit: { enabled: true, maxInputImages: 5 },

366+

},

367+

generateImage: vi.fn(async () => {

368+

throw new Error("not used");

369+

}),

370+

},

371+

]);

372+
373+

expect(

374+

resolveImageGenerationModelConfigForTool({

375+

cfg: {

376+

agents: {

377+

defaults: {

378+

model: {

379+

primary: "openai-codex/gpt-5.5",

380+

},

381+

},

382+

},

383+

},

384+

}),

385+

).toEqual({

386+

primary: "openai/gpt-image-2",

387+

fallbacks: ["fal/fal-ai/flux/dev"],

388+

});

389+

});

390+
342391

it("prefers the primary model provider when multiple image providers have auth", () => {

343392

stubImageGenerationProviders();

344393

vi.stubEnv("OPENAI_API_KEY", "openai-test");

Original file line numberDiff line numberDiff line change

@@ -192,7 +192,7 @@ export function resolveCapabilityModelCandidatesForTool(params: {

192192

agentDir?: string;

193193

providers: CapabilityProvider[];

194194

}): string[] {

195-

const providerDefaults = new Map<string, string>();

195+

const providerDefaults = new Map<string, { ref: string; aliases: string[] }>();

196196

for (const provider of params.providers) {

197197

const providerId = provider.id.trim();

198198

const modelId = provider.defaultModel?.trim();

@@ -209,25 +209,36 @@ export function resolveCapabilityModelCandidatesForTool(params: {

209209

) {

210210

continue;

211211

}

212-

providerDefaults.set(providerId, `${providerId}/${modelId}`);

212+

const aliases = (provider.aliases ?? []).flatMap((alias) => {

213+

const normalized = normalizeProviderId(alias);

214+

return normalized ? [normalized] : [];

215+

});

216+

providerDefaults.set(providerId, { ref: `${providerId}/${modelId}`, aliases });

213217

}

214218
215219

const primaryProvider = resolveDefaultModelRef(params.cfg).provider;

220+

const normalizedPrimaryProvider = normalizeProviderId(primaryProvider);

221+

const providerIds = [...providerDefaults.keys()].toSorted();

222+

const matchesPrimaryProvider = (providerId: string): boolean => {

223+

const entry = providerDefaults.get(providerId);

224+

return (

225+

normalizeProviderId(providerId) === normalizedPrimaryProvider ||

226+

(entry?.aliases ?? []).includes(normalizedPrimaryProvider)

227+

);

228+

};

216229

const orderedProviders = [

217-

primaryProvider,

218-

...[...providerDefaults.keys()]

219-

.filter((providerId) => providerId !== primaryProvider)

220-

.toSorted(),

230+

...providerIds.filter(matchesPrimaryProvider),

231+

...providerIds.filter((providerId) => !matchesPrimaryProvider(providerId)),

221232

];

222233

const orderedRefs: string[] = [];

223234

const seen = new Set<string>();

224235

for (const providerId of orderedProviders) {

225-

const ref = providerDefaults.get(providerId);

226-

if (!ref || seen.has(ref)) {

236+

const entry = providerDefaults.get(providerId);

237+

if (!entry || seen.has(entry.ref)) {

227238

continue;

228239

}

229-

seen.add(ref);

230-

orderedRefs.push(ref);

240+

seen.add(entry.ref);

241+

orderedRefs.push(entry.ref);

231242

}

232243

return orderedRefs;

233244

}

Original file line numberDiff line numberDiff line change

@@ -5,7 +5,10 @@ import * as mediaStore from "../../media/store.js";

55

import * as webMedia from "../../media/web-media.js";

66

import * as videoGenerationRuntime from "../../video-generation/runtime.js";

77

import * as videoGenerateBackground from "./video-generate-background.js";

8-

import { createVideoGenerateTool } from "./video-generate-tool.js";

8+

import {

9+

createVideoGenerateTool,

10+

resolveVideoGenerationModelConfigForTool,

11+

} from "./video-generate-tool.js";

912
1013

const taskRuntimeInternalMocks = vi.hoisted(() => ({

1114

listTasksForOwnerKey: vi.fn(),

@@ -110,6 +113,45 @@ describe("createVideoGenerateTool", () => {

110113

).not.toBeNull();

111114

});

112115
116+

it("orders auto-detected provider defaults by canonical aliases", () => {

117+

vi.spyOn(videoGenerationRuntime, "listRuntimeVideoGenerationProviders").mockReturnValue([

118+

{

119+

id: "fal",

120+

defaultModel: "fal-ai/minimax/video-01-live",

121+

models: ["fal-ai/minimax/video-01-live"],

122+

capabilities: {},

123+

isConfigured: () => true,

124+

generateVideo: vi.fn(async () => ({ videos: [] })),

125+

},

126+

{

127+

id: "openai",

128+

aliases: ["openai-codex"],

129+

defaultModel: "sora-2",

130+

models: ["sora-2"],

131+

capabilities: {},

132+

isConfigured: () => true,

133+

generateVideo: vi.fn(async () => ({ videos: [] })),

134+

},

135+

]);

136+
137+

expect(

138+

resolveVideoGenerationModelConfigForTool({

139+

cfg: asConfig({

140+

agents: {

141+

defaults: {

142+

model: {

143+

primary: "openai-codex/gpt-5.5",

144+

},

145+

},

146+

},

147+

}),

148+

}),

149+

).toEqual({

150+

primary: "openai/sora-2",

151+

fallbacks: ["fal/fal-ai/minimax/video-01-live"],

152+

});

153+

});

154+
113155

it("generates videos, saves them, and emits MEDIA paths without a session-backed detach", async () => {

114156

taskExecutorMocks.createRunningTaskRun.mockReturnValue({

115157

taskId: "task-123",

Original file line numberDiff line numberDiff line change

@@ -95,6 +95,40 @@ describe("media-generation runtime shared candidates", () => {

9595

]);

9696

});

9797
98+

it("orders auto-detected provider defaults by canonical aliases", () => {

99+

const candidates = resolveCapabilityModelCandidates({

100+

cfg: {

101+

agents: {

102+

defaults: {

103+

model: {

104+

primary: "openai-codex/gpt-5.5",

105+

},

106+

},

107+

},

108+

} as OpenClawConfig,

109+

modelConfig: undefined,

110+

parseModelRef,

111+

listProviders: () => [

112+

{

113+

id: "fal",

114+

defaultModel: "fal-ai/flux/dev",

115+

isConfigured: () => true,

116+

},

117+

{

118+

id: "openai",

119+

aliases: ["openai-codex"],

120+

defaultModel: "gpt-image-2",

121+

isConfigured: () => true,

122+

},

123+

],

124+

});

125+
126+

expect(candidates).toEqual([

127+

{ provider: "openai", model: "gpt-image-2" },

128+

{ provider: "fal", model: "fal-ai/flux/dev" },

129+

]);

130+

});

131+
98132

it("disables implicit provider expansion when mediaGenerationAutoProviderFallback=false", () => {

99133

const candidates = resolveCapabilityModelCandidates({

100134

cfg: {

Original file line numberDiff line numberDiff line change

@@ -62,6 +62,7 @@ const IMAGE_RESOLUTION_ORDER = ["1K", "2K", "4K"] as const;

6262
6363

type CapabilityProviderCandidate = {

6464

id: string;

65+

aliases?: readonly string[];

6566

defaultModel?: string | null;

6667

isConfigured?: (ctx: { cfg?: OpenClawConfig; agentDir?: string }) => boolean;

6768

};

@@ -122,7 +123,7 @@ function resolveAutoCapabilityFallbackRefs(params: {

122123

agentDir?: string;

123124

listProviders: (cfg?: OpenClawConfig) => CapabilityProviderCandidate[];

124125

}): string[] {

125-

const providerDefaults = new Map<string, string>();

126+

const providerDefaults = new Map<string, { ref: string; aliases: string[] }>();

126127

for (const provider of params.listProviders(params.cfg)) {

127128

const providerId = normalizeOptionalString(provider.id);

128129

const modelId = normalizeOptionalString(provider.defaultModel);

@@ -138,19 +139,26 @@ function resolveAutoCapabilityFallbackRefs(params: {

138139

) {

139140

continue;

140141

}

141-

providerDefaults.set(providerId, `${providerId}/${modelId}`);

142+

const aliases = (provider.aliases ?? []).flatMap((alias) => {

143+

const normalized = normalizeOptionalString(alias);

144+

return normalized ? [normalized] : [];

145+

});

146+

providerDefaults.set(providerId, { ref: `${providerId}/${modelId}`, aliases });

142147

}

143148
144149

const defaultProvider = resolveCurrentDefaultProviderId(params.cfg);

150+

const providerIds = [...providerDefaults.keys()].toSorted();

151+

const matchesDefaultProvider = (providerId: string): boolean => {

152+

const entry = providerDefaults.get(providerId);

153+

return providerId === defaultProvider || (entry?.aliases ?? []).includes(defaultProvider);

154+

};

145155

const orderedProviders = [

146-

defaultProvider,

147-

...[...providerDefaults.keys()]

148-

.filter((providerId) => providerId !== defaultProvider)

149-

.toSorted(),

156+

...providerIds.filter(matchesDefaultProvider),

157+

...providerIds.filter((providerId) => !matchesDefaultProvider(providerId)),

150158

];

151159

return orderedProviders.flatMap((providerId) => {

152-

const ref = providerDefaults.get(providerId);

153-

return ref ? [ref] : [];

160+

const entry = providerDefaults.get(providerId);

161+

return entry ? [entry.ref] : [];

154162

});

155163

}

156164