Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(desktop): 本地草稿传 null 归属,恢复插件与 Host 芯片入口
Shinku50904d1e2d7b
diff --git a/apps/desktop/src/renderer/__tests__/chatInputGhostSnapshot.test.ts b/apps/desktop/src/renderer/__tests__/chatInputGhostSnapshot.test.tsindex 86a8c59a55..7a382ab4d3 100644--- a/apps/desktop/src/renderer/__tests__/chatInputGhostSnapshot.test.ts+++ b/apps/desktop/src/renderer/__tests__/chatInputGhostSnapshot.test.ts@@ -31,7 +31,7 @@ describe('ChatInput Ghost snapshot contract', () => {});it('does not expose controller-local plugin rows in device-link sessions', () => {- expect(source).toContain('if (deviceLinkDeviceId) return [];');+ expect(source).toContain('if (deviceLinkDeviceId !== null) return [];');expect(source).toContain('[deviceLinkDeviceId, pluginsForMenu, pluginAvailableIds, remoteHostId, t]',);diff --git a/apps/desktop/src/renderer/__tests__/newMakerCreateAgentVisualContract.test.ts b/apps/desktop/src/renderer/__tests__/newMakerCreateAgentVisualContract.test.tsindex 2f4e31b57d..42a0e0d511 100644--- a/apps/desktop/src/renderer/__tests__/newMakerCreateAgentVisualContract.test.ts+++ b/apps/desktop/src/renderer/__tests__/newMakerCreateAgentVisualContract.test.ts@@ -95,7 +95,7 @@ describe('NewMakerDraftRoute CREATE AGENT visual contract', () => {'sessionId={undefined}','initialWorkingDir={effectiveWorkingDir}','remoteHostId={draft.remoteHostId ?? null}',- 'deviceLinkDeviceId={effectiveDeviceLinkDeviceId}',+ 'deviceLinkDeviceId={effectiveDeviceLinkDeviceId ?? null}','modelMemoryOverride={deviceLinkDraftMemory}','initialModel={draftInitialModel}','initialEffort={draftInitialEffort}',diff --git a/apps/desktop/src/renderer/components/new-chat/ChatInput.tsx b/apps/desktop/src/renderer/components/new-chat/ChatInput.tsxindex 6ca9f7ebf5..fc3895d87d 100644--- a/apps/desktop/src/renderer/components/new-chat/ChatInput.tsx+++ b/apps/desktop/src/renderer/components/new-chat/ChatInput.tsx@@ -1007,7 +1007,7 @@ export function ChatInput({topSlot,collaboration,}: ChatInputProps) {- // device-link 远程会话:null = 所有权尚未解析,undefined = 已确认本地会话,string = 远程会话。+ // device-link 远程会话:null = 已确认本地会话,undefined = 所有权尚未解析,string = 远程会话。// 预测守卫用原始值区分 null vs undefined,下游通路继续用 ?? undefined 归一化。const deviceLinkDeviceId = _deviceLinkDeviceId;const { t } = useTranslation();diff --git a/apps/desktop/src/renderer/features/cc-agent/NewMakerDraftRoute.tsx b/apps/desktop/src/renderer/features/cc-agent/NewMakerDraftRoute.tsxindex 76c120b7ab..b1a370089e 100644--- a/apps/desktop/src/renderer/features/cc-agent/NewMakerDraftRoute.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/NewMakerDraftRoute.tsx@@ -4534,7 +4534,7 @@ export function NewMakerDraftRoute() {sessionId={undefined}initialWorkingDir={effectiveWorkingDir}remoteHostId={draft.remoteHostId ?? null}- deviceLinkDeviceId={effectiveDeviceLinkDeviceId}+ deviceLinkDeviceId={effectiveDeviceLinkDeviceId ?? null}modelMemoryOverride={deviceLinkDraftMemory}initialModel={draftInitialModel}initialEffort={draftInitialEffort}