feat: v0.8.2 安全纵深补全 · 协议保真 · 断链修复 — 图片SSRF/根MEMORY.md保护根治 · Anthropic thinking回传+pause_turn续传 · 2523 用例全量回归 + E2E 扩充
CI / 类型检查 + Lint + 单元测试 (push) Failing after 9m45s
CI / 全量测试 (Electron ABI) (push) Failing after 6m28s
CI / 产物编译验证 (push) Successful in 11m18s

This commit is contained in:
2026-09-08 14:30:27 +08:00
parent 69776e447f
commit 4cd6e997b5
86 changed files with 4303 additions and 956 deletions
+9 -4
View File
@@ -14,6 +14,8 @@ import { Tray, Menu, BrowserWindow, app, nativeImage, Notification } from 'elect
import { join } from 'path';
import { existsSync } from 'fs';
import log from 'electron-log';
// v0.8.2 P2-5: 托盘菜单文案双语(ui.locale 驱动)
import { mt } from '../utils/main-locale';
export type TrayStatus = 'idle' | 'thinking' | 'executing' | 'error';
@@ -202,12 +204,15 @@ export class TrayManager {
enabled: false,
},
{
label: `状态: ${statusIcons[this.currentStatus]} ${this.currentStatus}`,
// v0.8.2 P2-5: 托盘菜单出层(ui.locale 驱动 mt(),语言切换即热生效)
label: mt('tray.menu.status', {
status: `${statusIcons[this.currentStatus]} ${mt(`tray.status.${this.currentStatus}`)}`,
}),
enabled: false,
},
{ type: 'separator' },
{
label: '显示窗口',
label: mt('tray.menu.showWindow'),
click: () => {
if (this.mainWindow) {
this.mainWindow.show();
@@ -216,7 +221,7 @@ export class TrayManager {
},
},
{
label: '新建会话',
label: mt('tray.menu.newSession'),
click: () => {
if (this.mainWindow) {
this.mainWindow.show();
@@ -227,7 +232,7 @@ export class TrayManager {
},
{ type: 'separator' },
{
label: '退出',
label: mt('tray.menu.quit'),
click: () => {
TrayManager.isQuitting = true;
app.quit();