Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
Merge origin/main into cindy/witty-kepler
DavidShen96c1c499fe6c
diff --cc apps/desktop/src/renderer/components/chat/UserMessage.tsxindex dcf7ff8495,9c5c0adaee..56c671daf7--- a/apps/desktop/src/renderer/components/chat/UserMessage.tsx+++ b/apps/desktop/src/renderer/components/chat/UserMessage.tsx@@@ -981,8 -977,6 +980,7 @@@ export function UserMessage(// context 更新会穿透 memo 触发重渲,替代旧的 render 期一次性读取)。const sessionFileCtx = useChatSessionFile();const remoteDeviceId = originDeviceId(sessionFileCtx.origin);+ const sharedGuest = isSharedTaskPeer(remoteDeviceId ?? '');- const gitSafetyAutoSnapshotEnabled = useGitSafetyAutoSnapshotEnabledForDevice(remoteDeviceId);const remoteMediaOrigin = useMemo(() => toRemoteMediaOrigin(sessionFileCtx.origin, sessionFileCtx.workingDir),[sessionFileCtx],@@@ -1277,9 -1268,8 +1273,9 @@@// 第一条 user 消息没有可作为锚点的 prior assistant uuid → 后端必抛// NO_PRIOR_ASSISTANT。直接藏掉按钮,避免无效点击。- // 同时按 capabilities.rewind.supported gate;Codex 入口还要用户显式开启 Git safety。+ // 同时按 capabilities.rewind.supported gate;文件恢复能力由实际 Git 保存点决定。const canRewind =+ !sharedGuest &&Boolean(sessionId && messageClientId) &&!isFirstUserMessage &&rewindSupported &&