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

推荐订阅源

Apple Machine Learning Research
Apple Machine Learning Research
J
Java Code Geeks
博客园 - 聂微东
Microsoft Azure Blog
Microsoft Azure Blog
量子位
T
Tailwind CSS Blog
Vercel News
Vercel News
I
InfoQ
Stack Overflow Blog
Stack Overflow Blog
U
Unit 42
Engineering at Meta
Engineering at Meta
L
LangChain Blog
大猫的无限游戏
大猫的无限游戏
D
Docker
博客园_首页
P
Proofpoint News Feed
月光博客
月光博客
T
The Blog of Author Tim Ferriss
MyScale Blog
MyScale Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
Martin Fowler
Martin Fowler
腾讯CDC
N
Netflix TechBlog - Medium
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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(codex): keep CLI session preview text on code-point b...
llagy009 · 2026-06-28 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -207,4 +207,65 @@ describe("codex cli node sessions", () => {

207207

}),

208208

).rejects.toThrow("Codex CLI node command returned malformed payloadJSON.");

209209

});

210+
211+

it("keeps Codex history session previews on UTF-16 code point boundaries", async () => {

212+

const sessionId = "019e2007-1f7e-7eb1-a42b-8c01f4b9b5ce";

213+

const text = `${"a".repeat(136)}🤖tail`;

214+

await fs.writeFile(

215+

path.join(tempDir, "history.jsonl"),

216+

JSON.stringify({ session_id: sessionId, ts: 1778678322, text }),

217+

);

218+
219+

const command = createCodexCliSessionNodeHostCommands().find(

220+

(entry) => entry.command === CODEX_CLI_SESSIONS_LIST_COMMAND,

221+

);

222+

const raw = await command?.handle(JSON.stringify({ filter: "", limit: 5 }));

223+

const parsed = JSON.parse(raw ?? "{}") as {

224+

sessions?: Array<{ lastMessage?: string }>;

225+

};

226+
227+

expect(parsed.sessions?.[0]?.lastMessage).toBe(`${"a".repeat(136)}...`);

228+

expect(parsed.sessions?.[0]?.lastMessage).not.toContain("\ud83e");

229+

expect(parsed.sessions?.[0]?.lastMessage).not.toContain("\udd16");

230+

});

231+
232+

it("keeps Codex session-file previews on UTF-16 code point boundaries", async () => {

233+

const sessionId = "019e23d1-f33d-78e3-959e-0f56f30a5248";

234+

const sessionDir = path.join(tempDir, "sessions", "2026", "05", "14");

235+

const sessionFile = path.join(sessionDir, `rollout-2026-05-14T00-10-22-${sessionId}.jsonl`);

236+

const text = `${"b".repeat(136)}🤖tail`;

237+
238+

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

239+

await fs.writeFile(

240+

sessionFile,

241+

[

242+

JSON.stringify({

243+

timestamp: "2026-05-14T00:10:23.618Z",

244+

type: "session_meta",

245+

payload: { id: sessionId, cwd: "/tmp/codex-work" },

246+

}),

247+

JSON.stringify({

248+

timestamp: "2026-05-14T00:10:23.619Z",

249+

type: "response_item",

250+

payload: {

251+

type: "message",

252+

role: "user",

253+

content: [{ type: "input_text", text }],

254+

},

255+

}),

256+

].join("\n"),

257+

);

258+
259+

const command = createCodexCliSessionNodeHostCommands().find(

260+

(entry) => entry.command === CODEX_CLI_SESSIONS_LIST_COMMAND,

261+

);

262+

const raw = await command?.handle(JSON.stringify({ filter: "", limit: 5 }));

263+

const parsed = JSON.parse(raw ?? "{}") as {

264+

sessions?: Array<{ lastMessage?: string }>;

265+

};

266+
267+

expect(parsed.sessions?.[0]?.lastMessage).toBe(`${"b".repeat(136)}...`);

268+

expect(parsed.sessions?.[0]?.lastMessage).not.toContain("\ud83e");

269+

expect(parsed.sessions?.[0]?.lastMessage).not.toContain("\udd16");

270+

});

210271

});