最高第 1 名 现在第 2 名
Rex发布终端恢复协议
Mitchell Hashimoto发布OSC 7577终端协议,使任意程序可在服务器重启后恢复运行。
要点
- Rex 现在可以在服务器重启后恢复程序,基于 @mitchellh 与 @herdrdev 合作发布的新终端协议 OSC 7577。
- Rex 内置对 Claude Code 的支持,在会话启动钩子中发出 OSC 7577,使用的是任何程序都能实现的普通终端转义序列。
- Rex 提供基于 Lua 的配置,可按程序逐个选择启用恢复,支持按程序名、路径、工作目录和命令行参数过滤,也可一行代码全部关闭。
要点和反应摘要由 AI 依据本页推文整理,请以原推为准。 我们怎么用 AI
原推
Rex can now resume your programs through a server restart! This is based on a brand new terminal protocol we're also publishing today (OSC 7577) that we worked on in collaboration with @herdrdev with review from multiple terminal emulator and terminal program authors. Link: https://t.co/tuSlFViqeO
This means that ANY program can restart, not just agentic coding tools, and it doesn't require any special integration with any specific terminal or out-of-band protocol. It's plain old terminal escape sequences that are easily implemented by any program!
Rex is shipping with built-in support for Claude Code to start (we emit OSC 7577 in a session start hook), but hope that other programs will adopt this and enable restart.
Program restart in terminals is fundamentally unsafe, so a lot of effort was put into making this as safe as possible. Ultimately, the security of this lies in the terminal emulator.
For Rex, we have a highly flexible Lua-based configuration to opt-in to resume on a program-by-program basis. You can filter by program name, path, working directory, command-line flags, and more. You can also disable the whole thing with one line.
X 上的热门回复
X 上的反应: 回复整体持肯定态度,有人称赞与 @herdrdev 的合作,也有人认为用转义序列是正确选择,因为双方都不必维护新的 IPC;没有出现质疑或纠错的回复。
讨论 0
注册 登录 后参与讨论
还没有人讨论,来说第一句。