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

推荐订阅源

aimingoo的专栏
aimingoo的专栏
宝玉的分享
宝玉的分享
博客园 - 【当耐特】
博客园 - 司徒正美
L
LangChain Blog
有赞技术团队
有赞技术团队
大猫的无限游戏
大猫的无限游戏
Stack Overflow Blog
Stack Overflow Blog
Engineering at Meta
Engineering at Meta
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
博客园 - 叶小钗
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
月光博客
月光博客
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
Google DeepMind News
Google DeepMind News
云风的 BLOG
云风的 BLOG
D
DataBreaches.Net

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 codex app-server test setup · openclaw/opencla...
steipete · 2026-05-06 · via Recent Commits to openclaw:main

@@ -8,7 +8,6 @@ import {

88

type EmbeddedRunAttemptParams,

99

} from "openclaw/plugin-sdk/agent-harness";

1010

import {

11-

buildAgentRuntimePlan,

1211

embeddedAgentLog,

1312

nativeHookRelayTesting,

1413

onAgentEvent,

@@ -62,21 +61,25 @@ function createParamsWithRuntimePlan(

6261

workspaceDir: string,

6362

): EmbeddedRunAttemptParams {

6463

const params = createParams(sessionFile, workspaceDir);

65-

return {

66-

...params,

67-

runtimePlan: buildAgentRuntimePlan({

68-

provider: params.provider,

69-

modelId: params.modelId,

70-

model: params.model,

71-

modelApi: params.model.api,

64+

useLightweightCodexRuntimePlan(params);

65+

return params;

66+

}

67+68+

function useLightweightCodexRuntimePlan(params: EmbeddedRunAttemptParams): void {

69+

params.runtimePlan = {

70+

auth: {},

71+

prompt: {

72+

resolveSystemPromptContribution: () => undefined,

73+

},

74+

tools: {

75+

normalize: (tools: unknown) => tools,

76+

logDiagnostics: () => undefined,

77+

},

78+

observability: {

79+

resolvedRef: `${params.provider}/${params.modelId}`,

7280

harnessId: "codex",

73-

harnessRuntime: "codex",

74-

config: params.config,

75-

workspaceDir,

76-

agentDir: tempDir,

77-

thinkingLevel: params.thinkLevel,

78-

}),

79-

} as EmbeddedRunAttemptParams;

81+

},

82+

} as NonNullable<EmbeddedRunAttemptParams["runtimePlan"]>;

8083

}

81848285

function threadStartResult(threadId = "thread-1") {

@@ -364,6 +367,7 @@ function extractRelayIdFromThreadRequest(params: unknown): string {

364367

describe("runCodexAppServerAttempt", () => {

365368

beforeEach(async () => {

366369

resetAgentEventsForTest();

370+

vi.stubEnv("OPENCLAW_TRAJECTORY", "0");

367371

tempDir = await fs.mkdtemp(path.join(os.tmpdir(), "openclaw-codex-run-"));

368372

});

369373

@@ -376,6 +380,7 @@ describe("runCodexAppServerAttempt", () => {

376380

resetGlobalHookRunner();

377381

vi.useRealTimers();

378382

vi.restoreAllMocks();

383+

vi.unstubAllEnvs();

379384

await fs.rm(tempDir, { recursive: true, force: true });

380385

});

381386

@@ -476,6 +481,7 @@ describe("runCodexAppServerAttempt", () => {

476481

params.config = { tools: { profile: "coding" } };

477482

params.sourceReplyDeliveryMode = "message_tool_only";

478483

params.messageProvider = "whatsapp";

484+

useLightweightCodexRuntimePlan(params);

479485

let seenForceMessageTool: boolean | undefined;

480486

__testing.setOpenClawCodingToolsFactoryForTests((options) => {

481487

seenForceMessageTool = options?.forceMessageTool;

@@ -516,6 +522,7 @@ describe("runCodexAppServerAttempt", () => {

516522

session: { store: sessionsPath, mainKey: "main", scope: "per-sender" },

517523

tools: { profile: "coding" },

518524

};

525+

useLightweightCodexRuntimePlan(params);

519526

await fs.writeFile(

520527

sessionsPath,

521528

JSON.stringify({

@@ -1450,7 +1457,7 @@ describe("runCodexAppServerAttempt", () => {

14501457

);

14511458

await waitForMethod("turn/start");

145214591453-

expect(queueAgentHarnessMessage("session-1", "more context")).toBe(true);

1460+

expect(queueAgentHarnessMessage("session-1", "more context", { debounceMs: 1 })).toBe(true);

14541461

await vi.waitFor(

14551462

() => expect(requests.some((entry) => entry.method === "turn/steer")).toBe(true),

14561463

{ interval: 1 },