Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): 草稿恢复不恢复远程会话的 Host capability 芯片
Shinku5656dcafc489
diff --git a/apps/desktop/src/renderer/components/new-chat/ChatInput.tsx b/apps/desktop/src/renderer/components/new-chat/ChatInput.tsxindex 1fbe9c3864..60dcb8637d 100644--- a/apps/desktop/src/renderer/components/new-chat/ChatInput.tsx+++ b/apps/desktop/src/renderer/components/new-chat/ChatInput.tsx@@ -3547,7 +3547,16 @@ export function ChatInput({},{ silent: true },);- if (ghost) placeHostCapabilityAtComposerStart(editor, ghost, installedGhosts);+ // 远程/未解析归属不恢复 Host capability 芯片(与 `+` 菜单和发送路径的+ // fail-closed 同口径):SSH(remoteHostId)或 device-link(deviceLinkDeviceId+ // !== null,含未解析)会话若恢复芯片,发送时会被 TARGET_UNAVAILABLE 拦截,+ // 阻塞用户发送正文。仅已确认本机(deviceLinkDeviceId === null 且无+ // remoteHostId)才恢复,否则静默丢弃芯片意图。+ const canPlaceHostCapability =+ !remoteHostIdRef.current && deviceLinkDeviceIdRef.current === null;+ if (ghost && canPlaceHostCapability) {+ placeHostCapabilityAtComposerStart(editor, ghost, installedGhosts);+ }return;}