feat: 发布热更 1.5.94,修复中转历史会话并支持一键清空

This commit is contained in:
mac
2026-09-11 09:06:41 +08:00
parent 0446d09b3b
commit a74576c3e1
28 changed files with 3217 additions and 155 deletions
+32
View File
@@ -0,0 +1,32 @@
"use strict";
const test = require("node:test");
const assert = require("node:assert/strict");
const codexDesktop = require("../electron/lib/codex_desktop");
test("native dictation cleanup moves only the bounded Codex dialog off-screen", async () => {
let command = null;
const result = await codexDesktop.hideGlobalDictationWindows({
execFile(file, args, options, callback) {
command = { file, args, options };
callback(null, "2\n", "");
},
});
if (process.platform === "darwin") {
assert.equal(result.ok, true);
assert.equal(result.status, "hidden");
assert.equal(result.hidden, 2);
assert.equal(command.file, "osascript");
assert.deepEqual(command.args.slice(0, 1), ["-e"]);
assert.match(command.args[1], /titleText is "Codex"/);
assert.match(command.args[1], /subroleText is "AXDialog"/);
assert.match(command.args[1], /set position of w to \{-10000, -10000\}/);
} else {
assert.equal(result.ok, false);
assert.equal(result.status, "unsupported-platform");
assert.equal(result.hidden, 0);
assert.equal(command, null);
}
});