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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
雷峰网
雷峰网
博客园 - 叶小钗
V
V2EX
博客园 - Franky
博客园_首页
小众软件
小众软件
Microsoft Security Blog
Microsoft Security Blog
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
H
Hackread – Cybersecurity News, Data Breaches, AI and More
阮一峰的网络日志
阮一峰的网络日志
WordPress大学
WordPress大学
Blog — PlanetScale
Blog — PlanetScale
J
Java Code Geeks
T
The Blog of Author Tim Ferriss
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
S
SegmentFault 最新的问题
B
Blog RSS Feed
博客园 - 【当耐特】
D
Docker
N
Netflix TechBlog - Medium

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(openai-codex): preserve image input capability (#8539...
valkyriweb · 2026-05-23 · via Recent Commits to openclaw:main

@@ -824,6 +824,93 @@ describe("openai codex provider", () => {

824824

});

825825

});

826826827+

it("restores [text,image] input on stale gpt-5.5 rows that omit the input field", () => {

828+

// Regression: persisted/configured catalog rows can omit the `input` field

829+

// for openai-codex models. When that row wins the catalog merge,

830+

// `modelSupportsInput(entry, "image")` returns false and the gateway routes

831+

// inbound images down the claim-check offload path (`media://inbound/<id>`)

832+

// instead of inlining them. Mirror of the Anthropic precedent set by

833+

// upstream #83756.

834+

const provider = buildOpenAICodexProviderPlugin();

835+836+

const model = provider.normalizeResolvedModel?.({

837+

provider: "openai-codex",

838+

modelId: "gpt-5.5",

839+

model: {

840+

id: "gpt-5.5",

841+

name: "gpt-5.5",

842+

provider: "openai-codex",

843+

api: "openai-codex-responses",

844+

baseUrl: "https://chatgpt.com/backend-api/codex",

845+

reasoning: true,

846+

// No `input` field at all — the stale persisted/configured row shape.

847+

cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },

848+

contextWindow: 1_050_000,

849+

contextTokens: 272_000,

850+

maxTokens: 128_000,

851+

},

852+

} as never);

853+854+

expect(model?.input).toEqual(["text", "image"]);

855+

});

856+857+

it("preserves [text,image] input on rows that already declare image capability", () => {

858+

const provider = buildOpenAICodexProviderPlugin();

859+860+

const model = provider.normalizeResolvedModel?.({

861+

provider: "openai-codex",

862+

modelId: "gpt-5.5",

863+

model: {

864+

id: "gpt-5.5",

865+

name: "gpt-5.5",

866+

provider: "openai-codex",

867+

api: "openai-codex-responses",

868+

baseUrl: "https://chatgpt.com/backend-api/codex",

869+

reasoning: true,

870+

input: ["text", "image"],

871+

cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },

872+

contextWindow: 1_050_000,

873+

contextTokens: 272_000,

874+

maxTokens: 128_000,

875+

},

876+

} as never);

877+878+

// Existing image capability untouched; transport is already canonical so

879+

// normalizeResolvedModel may return undefined (no-op).

880+

if (model) {

881+

expect(model.input).toEqual(["text", "image"]);

882+

}

883+

});

884+885+

it("leaves codex-suffix and legacy model rows text-only (not vision-capable)", () => {

886+

const provider = buildOpenAICodexProviderPlugin();

887+888+

const model = provider.normalizeResolvedModel?.({

889+

provider: "openai-codex",

890+

modelId: "gpt-5.3-codex",

891+

model: {

892+

id: "gpt-5.3-codex",

893+

name: "gpt-5.3-codex",

894+

provider: "openai-codex",

895+

api: "openai-codex-responses",

896+

baseUrl: "https://chatgpt.com/backend-api/codex",

897+

reasoning: true,

898+

cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },

899+

contextWindow: 400_000,

900+

contextTokens: 272_000,

901+

maxTokens: 128_000,

902+

},

903+

} as never);

904+905+

// No image capability should be added — gpt-5.X-codex models are

906+

// Codex CLI / agent-mode only and not in the documented vision list.

907+

// normalizeResolvedModel may return undefined (no transport change) or a

908+

// model with the existing input array; either way `image` must not appear.

909+

if (model?.input) {

910+

expect(model.input).not.toContain("image");

911+

}

912+

});

913+827914

it("normalizes transport metadata for stale /backend-api/v1 codex routes", () => {

828915

const provider = buildOpenAICodexProviderPlugin();

829916