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

推荐订阅源

MongoDB | Blog
MongoDB | Blog
B
Blog
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
博客园 - Franky
V
V2EX
IT之家
IT之家
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
F
Fortinet All Blogs
I
InfoQ
云风的 BLOG
云风的 BLOG
腾讯CDC
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
月光博客
月光博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
N
Netflix TechBlog - Medium
宝玉的分享
宝玉的分享
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
P
Proofpoint News Feed
Microsoft Security Blog
Microsoft Security 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(test): update codex app-server client fixtures · open...
vincentkoc · 2026-06-18 · via Recent Commits to openclaw:main

@@ -55,7 +55,9 @@ import {

5555

createResumeHarness,

5656

createStartedThreadHarness,

5757

fastWait,

58+

getMockRuntimeIdentity,

5859

mockCall,

60+

mockClientRuntimeMethods,

5961

queueActiveRunMessageForTest,

6062

runCodexAppServerAttempt,

6163

setCodexAppServerClientFactoryForTest,

@@ -577,7 +579,7 @@ describe("runCodexAppServerAttempt", () => {

577579

throw new Error(`unexpected method: ${method}`);

578580

});

579581

const client = {

580-

getServerVersion: () => "0.132.0",

582+

...mockClientRuntimeMethods(),

581583

request,

582584

};

583585

try {

@@ -728,7 +730,7 @@ describe("runCodexAppServerAttempt", () => {

728730

throw new Error(`unexpected method: ${method}`);

729731

});

730732

const client = {

731-

getServerVersion: () => "0.132.0",

733+

...mockClientRuntimeMethods(),

732734

request,

733735

};

734736

try {

@@ -805,7 +807,7 @@ describe("runCodexAppServerAttempt", () => {

805807

throw new Error(`unexpected method: ${method}`);

806808

});

807809

const client = {

808-

getServerVersion: () => "0.132.0",

810+

...mockClientRuntimeMethods(),

809811

request,

810812

};

811813

try {

@@ -864,7 +866,7 @@ describe("runCodexAppServerAttempt", () => {

864866

throw new Error(`unexpected method: ${method}`);

865867

});

866868

const client = {

867-

getServerVersion: () => "0.132.0",

869+

...mockClientRuntimeMethods(),

868870

request,

869871

};

870872

try {

@@ -1046,7 +1048,7 @@ describe("runCodexAppServerAttempt", () => {

1046104810471049

await startOrResumeThread({

10481050

client: {

1049-

getServerVersion: () => "0.132.0",

1051+

...mockClientRuntimeMethods(),

10501052

request: async (method: string, requestParams?: unknown) => {

10511053

requests.push({ method, params: requestParams });

10521054

if (method === "thread/start") {

@@ -1901,6 +1903,7 @@ describe("runCodexAppServerAttempt", () => {

19011903

let notify: ((notification: CodexServerNotification) => Promise<void>) | undefined;

19021904

setCodexAppServerClientFactoryForTest(async () => {

19031905

const client = {

1906+

...mockClientRuntimeMethods(),

19041907

request: vi.fn(async (method: string) => {

19051908

events.push(`request:${method}`);

19061909

if (method === "thread/start") {

@@ -1962,6 +1965,7 @@ describe("runCodexAppServerAttempt", () => {

19621965

let startedClient: unknown;

19631966

setCodexAppServerClientFactoryForTest(async () => {

19641967

const client = {

1968+

...mockClientRuntimeMethods(),

19651969

request: vi.fn(async (method: string) => {

19661970

events.push(`request:${method}`);

19671971

if (method === "thread/start") {

@@ -2003,6 +2007,7 @@ describe("runCodexAppServerAttempt", () => {

20032007

setCodexAppServerClientFactoryForTest(

20042008

async () =>

20052009

({

2010+

...mockClientRuntimeMethods(),

20062011

request: vi.fn(async (method: string) => {

20072012

if (method === "thread/start") {

20082013

return threadStartResult();

@@ -3925,6 +3930,7 @@ describe("runCodexAppServerAttempt", () => {

39253930

setCodexAppServerClientFactoryForTest(

39263931

async () =>

39273932

({

3933+

...mockClientRuntimeMethods(),

39283934

request,

39293935

addNotificationHandler: (handler: typeof notify) => {

39303936

notify = handler;

@@ -4026,6 +4032,7 @@ describe("runCodexAppServerAttempt", () => {

40264032

key: buildCodexPluginAppCacheKey({

40274033

appServer,

40284034

agentDir,

4035+

runtimeIdentity: getMockRuntimeIdentity(),

40294036

}),

40304037

request: async () => ({

40314038

data: [

@@ -4128,6 +4135,7 @@ describe("runCodexAppServerAttempt", () => {

41284135

setCodexAppServerClientFactoryForTest(

41294136

async () =>

41304137

({

4138+

...mockClientRuntimeMethods(),

41314139

request,

41324140

addNotificationHandler: (handler: typeof notify) => {

41334141

notify = handler;

@@ -4230,6 +4238,7 @@ describe("runCodexAppServerAttempt", () => {

42304238

agentDir,

42314239

authProfileId,

42324240

accountId: "account-work",

4241+

runtimeIdentity: getMockRuntimeIdentity(),

42334242

}),

42344243

request: async () => ({

42354244

data: [

@@ -4373,6 +4382,7 @@ describe("runCodexAppServerAttempt", () => {

43734382

startOptions: appServer.start,

43744383

baseEnv: { CODEX_API_KEY: "old-codex-env-key" },

43754384

}),

4385+

runtimeIdentity: getMockRuntimeIdentity(),

43764386

}),

43774387

request: async () => ({

43784388

data: [

@@ -4564,6 +4574,7 @@ describe("runCodexAppServerAttempt", () => {

45644574

setCodexAppServerClientFactoryForTest(

45654575

async () =>

45664576

({

4577+

...mockClientRuntimeMethods(),

45674578

request,

45684579

addNotificationHandler: () => () => undefined,

45694580

addRequestHandler: () => () => undefined,

@@ -4609,6 +4620,7 @@ describe("runCodexAppServerAttempt", () => {

46094620

setCodexAppServerClientFactoryForTest(

46104621

async () =>

46114622

({

4623+

...mockClientRuntimeMethods(),

46124624

request,

46134625

addNotificationHandler: () => () => undefined,

46144626

addRequestHandler: () => () => undefined,

@@ -4911,6 +4923,7 @@ describe("runCodexAppServerAttempt", () => {

49114923

const methods: string[] = [];

49124924

requests.push(methods);

49134925

return {

4926+

...mockClientRuntimeMethods(),

49144927

request: vi.fn(async (method: string) => {

49154928

methods.push(method);

49164929

if (method === "thread/resume" && startIndex === 0) {

@@ -4963,6 +4976,7 @@ describe("runCodexAppServerAttempt", () => {

49634976

const methods: string[] = [];

49644977

requests.push(methods);

49654978

return {

4979+

...mockClientRuntimeMethods(),

49664980

request: vi.fn(async (method: string) => {

49674981

methods.push(method);

49684982

if (method === "thread/resume" && startIndex < 2) {

@@ -5010,6 +5024,7 @@ describe("runCodexAppServerAttempt", () => {

50105024

let failedClient: unknown;

50115025

setCodexAppServerClientFactoryForTest(async () => {

50125026

const c = {

5027+

...mockClientRuntimeMethods(),

50135028

request: vi.fn(async (method: string) => {

50145029

if (method === "thread/start") {

50155030

throw new CodexAppServerRpcError(

@@ -5043,6 +5058,7 @@ describe("runCodexAppServerAttempt", () => {

50435058

let failedClient: unknown;

50445059

setCodexAppServerClientFactoryForTest(async () => {

50455060

const c = {

5061+

...mockClientRuntimeMethods(),

50465062

request: vi.fn(async (method: string) => {

50475063

if (method === "thread/start") {

50485064

return await new Promise<never>(() => {});

@@ -5076,6 +5092,7 @@ describe("runCodexAppServerAttempt", () => {

50765092

let failedClient: unknown;

50775093

setCodexAppServerClientFactoryForTest(async () => {

50785094

const c = {

5095+

...mockClientRuntimeMethods(),

50795096

request: vi.fn(async (method: string) => {

50805097

if (method === "thread/start") {

50815098

throw new Error("write EPIPE");

@@ -5106,6 +5123,7 @@ describe("runCodexAppServerAttempt", () => {

51065123

let failedClient: unknown;

51075124

setCodexAppServerClientFactoryForTest(async () => {

51085125

const c = {

5126+

...mockClientRuntimeMethods(),

51095127

request: vi.fn(async (method: string) => {

51105128

if (method === "thread/start") {

51115129

throw new CodexAppServerRpcError(