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

推荐订阅源

D
DataBreaches.Net
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
云风的 BLOG
云风的 BLOG
B
Blog
博客园 - Franky
I
InfoQ
A
About on SuperTechFans
博客园_首页
L
LangChain Blog
量子位
腾讯CDC
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
美团技术团队
V
V2EX
Apple Machine Learning Research
Apple Machine Learning Research
雷峰网
雷峰网
MongoDB | Blog
MongoDB | Blog
Microsoft Azure Blog
Microsoft Azure Blog
月光博客
月光博客
T
The Blog of Author Tim Ferriss
P
Proofpoint News Feed
G
Google Developers Blog
Last Week in AI
Last Week in AI

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: expose active-run queue failure reasons · openclaw/o...
steipete · 2026-05-10 · via Recent Commits to openclaw:main

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

77

embeddedAgentLog,

88

nativeHookRelayTesting,

99

onAgentEvent,

10-

queueAgentHarnessMessage,

1110

resetAgentEventsForTest,

1211

type AgentEventPayload,

1312

type EmbeddedRunAttemptParams,

@@ -18,6 +17,13 @@ import {

1817

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

1918

import { createMockPluginRegistry } from "openclaw/plugin-sdk/plugin-test-runtime";

2019

import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";

20+

import { queueEmbeddedPiMessageWithOutcome } from "../../../../src/agents/pi-embedded-runner/runs.js";

21+22+

function queueActiveRunMessageForTest(

23+

...args: Parameters<typeof queueEmbeddedPiMessageWithOutcome>

24+

): boolean {

25+

return queueEmbeddedPiMessageWithOutcome(...args).queued;

26+

}

2127

import { CODEX_GPT5_BEHAVIOR_CONTRACT } from "../../prompt-overlay.js";

2228

import {

2329

buildCodexAppInventoryCacheKey,

@@ -1177,7 +1183,7 @@ describe("runCodexAppServerAttempt", () => {

11771183

}),

11781184

{ interval: 1 },

11791185

);

1180-

expect(queueAgentHarnessMessage("session-1", "after timeout")).toBe(false);

1186+

expect(queueActiveRunMessageForTest("session-1", "after timeout")).toBe(false);

11811187

});

1182118811831189

it("does not count account rate-limit updates as turn completion activity", async () => {

@@ -1486,7 +1492,7 @@ describe("runCodexAppServerAttempt", () => {

14861492

}),

14871493

{ interval: 1 },

14881494

);

1489-

expect(queueAgentHarnessMessage("session-1", "after silent turn")).toBe(false);

1495+

expect(queueActiveRunMessageForTest("session-1", "after silent turn")).toBe(false);

14901496

});

1491149714921498

it("applies before_prompt_build to Codex developer instructions and turn input", async () => {

@@ -2332,7 +2338,7 @@ describe("runCodexAppServerAttempt", () => {

23322338

);

23332339

await waitForMethod("turn/start");

233423402335-

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

2341+

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

23362342

await vi.waitFor(() => expect(requests.map((entry) => entry.method)).toContain("turn/steer"), {

23372343

interval: 1,

23382344

});

@@ -2377,8 +2383,8 @@ describe("runCodexAppServerAttempt", () => {

23772383

);

23782384

await waitForMethod("turn/start");

237923852380-

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

2381-

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

2386+

expect(queueActiveRunMessageForTest("session-1", "first", { debounceMs: 5 })).toBe(true);

2387+

expect(queueActiveRunMessageForTest("session-1", "second", { debounceMs: 5 })).toBe(true);

2382238823832389

await vi.waitFor(

23842390

() =>

@@ -2410,7 +2416,9 @@ describe("runCodexAppServerAttempt", () => {

24102416

);

24112417

await waitForMethod("turn/start");

241224182413-

expect(queueAgentHarnessMessage("session-1", "late steer", { debounceMs: 30_000 })).toBe(true);

2419+

expect(queueActiveRunMessageForTest("session-1", "late steer", { debounceMs: 30_000 })).toBe(

2420+

true,

2421+

);

2414242224152423

await completeTurn({ threadId: "thread-1", turnId: "turn-1" });

24162424

await run;

@@ -2435,12 +2443,12 @@ describe("runCodexAppServerAttempt", () => {

24352443

);

24362444

await waitForMethod("turn/start");

243724452438-

expect(queueAgentHarnessMessage("session-1", "first", { steeringMode: "one-at-a-time" })).toBe(

2439-

true,

2440-

);

2441-

expect(queueAgentHarnessMessage("session-1", "second", { steeringMode: "one-at-a-time" })).toBe(

2442-

true,

2443-

);

2446+

expect(

2447+

queueActiveRunMessageForTest("session-1", "first", { steeringMode: "one-at-a-time" }),

2448+

).toBe(true);

2449+

expect(

2450+

queueActiveRunMessageForTest("session-1", "second", { steeringMode: "one-at-a-time" }),

2451+

).toBe(true);

2444245224452453

await vi.waitFor(

24462454

() =>

@@ -2540,7 +2548,7 @@ describe("runCodexAppServerAttempt", () => {

25402548

});

2541254925422550

await vi.waitFor(() => expect(params.onBlockReply).toHaveBeenCalledTimes(1), { interval: 1 });

2543-

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

2551+

expect(queueActiveRunMessageForTest("session-1", "2")).toBe(true);

25442552

await expect(response).resolves.toEqual({

25452553

answers: { mode: { answers: ["Deep"] } },

25462554

});

@@ -3388,7 +3396,7 @@ describe("runCodexAppServerAttempt", () => {

33883396

await expect(runCodexAppServerAttempt(params, { startupTimeoutFloorMs: 1 })).rejects.toThrow(

33893397

"codex app-server startup timed out",

33903398

);

3391-

expect(queueAgentHarnessMessage("session-1", "after timeout")).toBe(false);

3399+

expect(queueActiveRunMessageForTest("session-1", "after timeout")).toBe(false);

33923400

});

3393340133943402

it("passes the selected auth profile into app-server startup", async () => {

@@ -3450,7 +3458,7 @@ describe("runCodexAppServerAttempt", () => {

34503458

params.timeoutMs = 1;

3451345934523460

await expect(runCodexAppServerAttempt(params)).rejects.toThrow("turn/start timed out");

3453-

expect(queueAgentHarnessMessage("session-1", "after timeout")).toBe(false);

3461+

expect(queueActiveRunMessageForTest("session-1", "after timeout")).toBe(false);

34543462

});

3455346334563464

it("keeps extended history enabled when resuming a bound Codex thread", async () => {