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

推荐订阅源

MyScale Blog
MyScale Blog
Jina AI
Jina AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
P
Proofpoint News Feed
Last Week in AI
Last Week in AI
博客园 - 司徒正美
Martin Fowler
Martin Fowler
T
Tailwind CSS Blog
B
Blog RSS Feed
Vercel News
Vercel News
博客园 - 聂微东
I
InfoQ
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
M
MIT News - Artificial intelligence
Recent Announcements
Recent Announcements
GbyAI
GbyAI
L
LangChain Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
C
Check Point Blog
MongoDB | Blog
MongoDB | Blog
B
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
test(gateway): stabilize codex acp bind live · openclaw/o...
steipete · 2026-04-23 · via Recent Commits to openclaw:main

@@ -36,6 +36,7 @@ const describeLive = LIVE && ACP_BIND_LIVE ? describe : describe.skip;

36363737

const CONNECT_TIMEOUT_MS = 90_000;

3838

const LIVE_TIMEOUT_MS = 240_000;

39+

const DEFAULT_LIVE_CODEX_MODEL = "gpt-5.4";

3940

type LiveAcpAgent = "claude" | "codex" | "gemini";

40414142

function createSlackCurrentConversationBindingRegistry() {

@@ -129,6 +130,32 @@ function logLiveStep(message: string): void {

129130

console.info(`[live-acp-bind] ${message}`);

130131

}

131132133+

async function prepareCodexHomeForLiveBindTest(): Promise<void> {

134+

const home = process.env.HOME?.trim();

135+

if (!home) {

136+

return;

137+

}

138+

const model = process.env.OPENCLAW_LIVE_ACP_BIND_CODEX_MODEL?.trim() || DEFAULT_LIVE_CODEX_MODEL;

139+

const codexHome = path.join(home, ".codex");

140+

await fs.mkdir(codexHome, { recursive: true });

141+

const configPath = path.join(codexHome, "config.toml");

142+

let rawConfig = "";

143+

try {

144+

rawConfig = await fs.readFile(configPath, "utf8");

145+

} catch (error) {

146+

if ((error as NodeJS.ErrnoException)?.code !== "ENOENT") {

147+

throw error;

148+

}

149+

}

150+

const modelLine = `model = ${JSON.stringify(model)}`;

151+

const nextConfig = /^model\s*=.*$/m.test(rawConfig)

152+

? rawConfig.replace(/^model\s*=.*$/m, modelLine)

153+

: `${modelLine}\n${rawConfig}`;

154+

await fs.writeFile(configPath, nextConfig, "utf8");

155+

process.env.CODEX_HOME = codexHome;

156+

logLiveStep(`using Codex ACP model ${model}`);

157+

}

158+132159

async function waitForGatewayPort(params: {

133160

host: string;

134161

port: number;

@@ -414,6 +441,7 @@ describeLive("gateway live (ACP bind)", () => {

414441

skipGmail: process.env.OPENCLAW_SKIP_GMAIL_WATCHER,

415442

skipCron: process.env.OPENCLAW_SKIP_CRON,

416443

skipCanvas: process.env.OPENCLAW_SKIP_CANVAS_HOST,

444+

codexHome: process.env.CODEX_HOME,

417445

};

418446

const liveAgent = normalizeAcpAgent(process.env.OPENCLAW_LIVE_ACP_BIND_AGENT);

419447

const agentCommandOverride =

@@ -438,6 +466,9 @@ describeLive("gateway live (ACP bind)", () => {

438466

process.env.OPENCLAW_SKIP_CANVAS_HOST = "1";

439467

process.env.OPENCLAW_GATEWAY_TOKEN = token;

440468

process.env.OPENCLAW_GATEWAY_PORT = String(port);

469+

if (liveAgent === "codex" && !agentCommandOverride) {

470+

await prepareCodexHomeForLiveBindTest();

471+

}

441472442473

const cfg = loadConfig();

443474

const acpxEntry = cfg.plugins?.entries?.acpx;

@@ -866,6 +897,11 @@ describeLive("gateway live (ACP bind)", () => {

866897

} else {

867898

process.env.OPENCLAW_SKIP_CANVAS_HOST = previous.skipCanvas;

868899

}

900+

if (previous.codexHome === undefined) {

901+

delete process.env.CODEX_HOME;

902+

} else {

903+

process.env.CODEX_HOME = previous.codexHome;

904+

}

869905

}

870906

},

871907

LIVE_TIMEOUT_MS + 360_000,