Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(chat): 更新附件菜单定位断言
Dash837e7cdbd185
diff --git a/apps/desktop/src/renderer/__tests__/chatAttachmentSave.test.ts b/apps/desktop/src/renderer/__tests__/chatAttachmentSave.test.tsindex 4e554c5d71..b00231567f 100644--- a/apps/desktop/src/renderer/__tests__/chatAttachmentSave.test.ts+++ b/apps/desktop/src/renderer/__tests__/chatAttachmentSave.test.ts@@ -77,8 +77,9 @@ describe('safe attachment routing', () => {);// 右键分流:降级附件只弹「另存为…」单项菜单,普通附件走共享文件 chip 菜单。// 受控 .bin 副本路径不得经复制路径 / 打开所在目录外泄。+ // 菜单位置由共享 helper 同时处理鼠标坐标和键盘触发元素的位置。expect(source).toMatch(- /onContextMenu=\{\(e\) => \{[\s\S]+?if \(downloadOnly\) \{[\s\S]+?setSaveMenuPos\(\{ x: e\.clientX, y: e\.clientY \}\);[\s\S]+?ctxMenu\.onContextMenu\(e\);/,+ /onContextMenu=\{\(e\) => \{\s*if \(downloadOnly\) \{[^}]+setSaveMenuPos\(linkMenuPosition\(e\)\);\s*return;\s*\}\s*ctxMenu\.onContextMenu\(e\);/,);expect(source).toContain("t('chat.media.saveAs')");});