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

推荐订阅源

小众软件
小众软件
博客园_首页
博客园 - 聂微东
T
Tailwind CSS Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
J
Java Code Geeks
The Cloudflare Blog
aimingoo的专栏
aimingoo的专栏
Martin Fowler
Martin Fowler
D
Docker
人人都是产品经理
人人都是产品经理
WordPress大学
WordPress大学
博客园 - 三生石上(FineUI控件)
Microsoft Azure Blog
Microsoft Azure Blog
Recent Announcements
Recent Announcements
Apple Machine Learning Research
Apple Machine Learning Research
阮一峰的网络日志
阮一峰的网络日志
B
Blog RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
Jina AI
Jina AI
博客园 - Franky
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
fix(compaction): route codex oauth compaction natively (#...
sallyom · 2026-06-24 · via Recent Commits to openclaw:main

@@ -1846,7 +1846,7 @@ describe("compactEmbeddedAgentSession hooks (ownsCompaction engine)", () => {

18461846

});

18471847

});

184818481849-

it("keeps selected Codex harness queued compaction on canonical OpenAI context", async () => {

1849+

it("runs selected Codex harness queued compaction on canonical OpenAI context", async () => {

18501850

resolveAgentHarnessPolicyMock.mockReturnValue({ runtime: "codex" });

18511851

maybeCompactAgentHarnessSessionMock.mockResolvedValueOnce({

18521852

ok: true,

@@ -1874,7 +1874,16 @@ describe("compactEmbeddedAgentSession hooks (ownsCompaction engine)", () => {

18741874

);

1875187518761876

expect(result.ok).toBe(true);

1877-

expect(maybeCompactAgentHarnessSessionMock).not.toHaveBeenCalled();

1877+

expect(contextEngineCompactMock).toHaveBeenCalledTimes(1);

1878+

expect(maybeCompactAgentHarnessSessionMock).toHaveBeenCalledTimes(1);

1879+

expect(maybeCompactAgentHarnessSessionMock).toHaveBeenCalledWith(

1880+

expect.objectContaining({

1881+

provider: "openai",

1882+

model: "gpt-5.5",

1883+

agentHarnessId: "codex",

1884+

}),

1885+

{ nativeCompactionRequest: "after_context_engine" },

1886+

);

18781887

const compactArg = mockCallArg(contextEngineCompactMock) as {

18791888

runtimeContext?: Record<string, unknown>;

18801889

};

@@ -1915,7 +1924,15 @@ describe("compactEmbeddedAgentSession hooks (ownsCompaction engine)", () => {

19151924

);

1916192519171926

expect(result.ok).toBe(true);

1918-

expect(maybeCompactAgentHarnessSessionMock).not.toHaveBeenCalled();

1927+

expect(contextEngineCompactMock).toHaveBeenCalledTimes(1);

1928+

expect(maybeCompactAgentHarnessSessionMock).toHaveBeenCalledTimes(1);

1929+

expect(maybeCompactAgentHarnessSessionMock).toHaveBeenCalledWith(

1930+

expect.objectContaining({

1931+

provider: "openai",

1932+

model: "gpt-5.5",

1933+

}),

1934+

{ nativeCompactionRequest: "after_context_engine" },

1935+

);

19191936

const compactArg = mockCallArg(contextEngineCompactMock) as {

19201937

runtimeContext?: Record<string, unknown>;

19211938

};

@@ -1968,7 +1985,7 @@ describe("compactEmbeddedAgentSession hooks (ownsCompaction engine)", () => {

19681985

});

19691986

});

197019871971-

it("keeps concrete Codex pins on canonical OpenAI for queued compaction", async () => {

1988+

it("uses concrete Codex pins on canonical OpenAI for queued compaction", async () => {

19721989

resolveAgentHarnessPolicyMock.mockReturnValue({

19731990

runtime: "auto",

19741991

runtimeSource: "model",

@@ -1999,7 +2016,16 @@ describe("compactEmbeddedAgentSession hooks (ownsCompaction engine)", () => {

19992016

);

2000201720012018

expect(result.ok).toBe(true);

2002-

expect(maybeCompactAgentHarnessSessionMock).not.toHaveBeenCalled();

2019+

expect(contextEngineCompactMock).toHaveBeenCalledTimes(1);

2020+

expect(maybeCompactAgentHarnessSessionMock).toHaveBeenCalledTimes(1);

2021+

expect(maybeCompactAgentHarnessSessionMock).toHaveBeenCalledWith(

2022+

expect.objectContaining({

2023+

provider: "openai",

2024+

model: "gpt-5.5",

2025+

agentHarnessId: "codex",

2026+

}),

2027+

{ nativeCompactionRequest: "after_context_engine" },

2028+

);

20032029

const compactArg = mockCallArg(contextEngineCompactMock) as {

20042030

runtimeContext?: Record<string, unknown>;

20052031

};

@@ -2068,7 +2094,10 @@ describe("compactEmbeddedAgentSession hooks (ownsCompaction engine)", () => {

20682094

config: {

20692095

models: {

20702096

providers: {

2071-

openai: { models: [{ id: "gpt-5.5", contextWindow: 350_000 }] },

2097+

openai: {

2098+

baseUrl: "https://example.test/v1",

2099+

models: [{ id: "gpt-5.5", contextWindow: 350_000 }],

2100+

},

20722101

},

20732102

},

20742103

},

@@ -2125,7 +2154,7 @@ describe("compactEmbeddedAgentSession hooks (ownsCompaction engine)", () => {

21252154

expect(contextEngineCompactMock).not.toHaveBeenCalled();

21262155

});

212721562128-

it("uses context-engine compaction when no Codex native binding is selected", async () => {

2157+

it("keeps context-engine compaction successful when Codex native binding is missing", async () => {

21292158

resolveAgentHarnessPolicyMock.mockReturnValue({ runtime: "codex" });

21302159

maybeCompactAgentHarnessSessionMock.mockResolvedValueOnce({

21312160

ok: false,

@@ -2146,8 +2175,25 @@ describe("compactEmbeddedAgentSession hooks (ownsCompaction engine)", () => {

21462175

expect(result.ok).toBe(true);

21472176

expect(result.compacted).toBe(true);

21482177

expect(result.result?.summary).toBe("engine-summary");

2149-

expect(maybeCompactAgentHarnessSessionMock).not.toHaveBeenCalled();

21502178

expect(contextEngineCompactMock).toHaveBeenCalledTimes(1);

2179+

expect(maybeCompactAgentHarnessSessionMock).toHaveBeenCalledTimes(1);

2180+

expect(maybeCompactAgentHarnessSessionMock).toHaveBeenCalledWith(

2181+

expect.objectContaining({

2182+

provider: "openai",

2183+

model: "gpt-5.4",

2184+

agentHarnessId: "codex",

2185+

}),

2186+

{ nativeCompactionRequest: "after_context_engine" },

2187+

);

2188+

const details = result.result?.details as

2189+

| { codexNativeCompaction?: Record<string, unknown> }

2190+

| undefined;

2191+

expect(details?.codexNativeCompaction).toMatchObject({

2192+

ok: false,

2193+

compacted: false,

2194+

reason: "no codex app-server thread binding",

2195+

failure: { reason: "missing_thread_binding" },

2196+

});

21512197

});

2152219821532199

it("keeps owning context-engine compaction primary for legacy Codex native sessions", async () => {