refactor: rebuildRuntime 语义化——插件重载透明化,工作区切换全量切换
This commit is contained in:
@@ -241,8 +241,8 @@ export function registerIpc(): AgentService {
|
||||
// ---- 工具审批 ----
|
||||
ipcMain.handle('approval:resolve', (_event, id: unknown, approved: unknown) => {
|
||||
if (typeof id !== 'string' || typeof approved !== 'boolean') throw new Error('invalid approval')
|
||||
// settle 内部经 onSettle 订阅发出 approval_settled,此处无需重复广播
|
||||
service.approvals.settle(id, approved)
|
||||
service.broadcastEvent({ type: 'approval_settled', id, approved, timedOut: false })
|
||||
return Promise.resolve()
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user