v0.4.0: 工具与审批(业务工具骨架 + Approval Card)

This commit is contained in:
Rick Ye
2026-09-05 09:47:50 +08:00
parent fe70cb0f71
commit 807fab4f20
15 changed files with 472 additions and 16 deletions
+5
View File
@@ -34,6 +34,11 @@ async function createWindow(): Promise<void> {
})
})
// 窗口关闭时未决审批一律拒绝,避免 agent 永久挂起
win.on('closed', () => {
agentService.approvals.settleAll(false)
})
// 外部链接交给系统默认浏览器,不在应用内开新窗口
win.webContents.setWindowOpenHandler(({ url }) => {
void shell.openExternal(url)