feat: 发送支持群聊@成员

生命周期整理
清理残留整理
完善skill
This commit is contained in:
Wxw-Gu committed 2026-11-12 11:18:32 +08:00
1 parent 804466aad8
commit 5d4ba73771
28 files changed
+1214 -103

No files matched your search

+11 -3
View File
@@ -1917,7 +1917,11 @@ app.whenReady().then(async () => {
recipient,
content:
request.type === 'text'
? { type: 'text', text: String(request.text || '') }
? {
type: 'text',
text: String(request.text || ''),
...(request.at ? { at: request.at } : {})
}
: { type: 'image', path: String(request.filePath || '') }
})
// 返回契约保持 `PersonalWechatSendResult`,界面判读不用改。
@@ -3517,8 +3521,12 @@ app.whenReady().then(async () => {
undefined,
(targets) => {
if (
macWechatRuntimeManager.getPort() === 4290 &&
targets.some((target) => target.targets.includes('port_4290'))
targets.some(
(target) =>
target.targets.includes('host') ||
(macWechatRuntimeManager.getPort() === 4290 &&
target.targets.includes('port_4290'))
)
) {
macWechatRuntimeManager.prepareForResidualCleanup()
runtimeStopped = true