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

推荐订阅源

J
Java Code Geeks
GbyAI
GbyAI
Google DeepMind News
Google DeepMind News
Jina AI
Jina AI
B
Blog
aimingoo的专栏
aimingoo的专栏
酷 壳 – CoolShell
酷 壳 – CoolShell
T
The Blog of Author Tim Ferriss
Last Week in AI
Last Week in AI
月光博客
月光博客
H
Help Net Security
V
Visual Studio Blog
量子位
A
About on SuperTechFans
博客园 - Franky
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
Martin Fowler
Martin Fowler
Microsoft Security Blog
Microsoft Security Blog
博客园 - 叶小钗
P
Proofpoint News Feed
MongoDB | Blog
MongoDB | 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(cli): reject codex simple-completion probes · opencla...
steipete · 2026-05-03 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

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

1212
1313

### Fixes

1414
15+

- CLI/infer: reject local `codex/*` one-shot model probes before simple-completion dispatch and point operators at the Codex app-server runtime path instead of ending with an empty-output error.

1516

- Agents/sessions: preserve terminal lifecycle state when final run metadata persists from a stale in-memory snapshot, preventing `main` sessions from staying stuck as running after completed or timed-out turns.

1617

- Gateway/CLI: make `openclaw gateway start` repair stale managed service definitions that point at old OpenClaw versions, missing binaries, or temporary installer paths before starting.

1718

- Heartbeat/scheduler: make heartbeat phase scheduling active-hours-aware so the scheduler seeks forward to the first in-window phase slot instead of arming timers for quiet-hours slots and relying solely on the runtime guard. Non-UTC `activeHours.timezone` values (e.g. `Asia/Shanghai`) now correctly influence when the next heartbeat timer fires, avoiding wasted quiet-hours ticks and long dormant gaps after gateway restarts. Fixes #75487. Thanks @amknight.

Original file line numberDiff line numberDiff line change

@@ -547,6 +547,48 @@ describe("capability cli", () => {

547547

expect(mocks.runtime.writeJson).not.toHaveBeenCalled();

548548

});

549549
550+

it("rejects local Codex provider probes before simple-completion dispatch", async () => {

551+

mocks.prepareSimpleCompletionModelForAgent.mockResolvedValueOnce({

552+

selection: {

553+

provider: "codex",

554+

modelId: "gpt-5.4",

555+

agentDir: "/tmp/agent",

556+

},

557+

model: {

558+

provider: "codex",

559+

id: "gpt-5.4",

560+

api: "openai-codex-responses",

561+

},

562+

auth: {

563+

apiKey: "codex-app-server",

564+

source: "codex-app-server",

565+

mode: "token",

566+

},

567+

} as never);

568+
569+

await expect(

570+

runRegisteredCli({

571+

register: registerCapabilityCli as (program: Command) => void,

572+

argv: [

573+

"capability",

574+

"model",

575+

"run",

576+

"--model",

577+

"codex/gpt-5.4",

578+

"--prompt",

579+

"hello",

580+

"--json",

581+

],

582+

}),

583+

).rejects.toThrow("exit 1");

584+
585+

expect(mocks.runtime.error).toHaveBeenCalledWith(

586+

expect.stringContaining("Codex app-server agent runtime"),

587+

);

588+

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

589+

expect(mocks.runtime.writeJson).not.toHaveBeenCalled();

590+

});

591+
550592

it.each(["", " ", "\n\t"])(

551593

"rejects empty model run prompts before local dispatch (%j)",

552594

async (prompt) => {

Original file line numberDiff line numberDiff line change

@@ -654,6 +654,11 @@ async function runModelRun(params: {

654654

if ("error" in prepared) {

655655

throw new Error(prepared.error);

656656

}

657+

if (prepared.selection.provider === "codex") {

658+

throw new Error(

659+

'The codex provider is served by the Codex app-server agent runtime, not the local simple-completion transport. Use an openai/<model> ref with agents.defaults.agentRuntime.id: "codex", run through the gateway, or use /codex commands.',

660+

);

661+

}

657662

const result = await completeWithPreparedSimpleCompletionModel({

658663

model: prepared.model,

659664

auth: prepared.auth,