NoFOMO
搜索 中EN 登录 注册

最高第 1 名 现在第 2 名

Rex发布终端恢复协议

Mitchell Hashimoto发布OSC 7577终端协议,使任意程序可在服务器重启后恢复运行。

名次变化

要点

  • Rex 现在可以在服务器重启后恢复程序,基于 @mitchellh 与 @herdrdev 合作发布的新终端协议 OSC 7577。
  • Rex 内置对 Claude Code 的支持,在会话启动钩子中发出 OSC 7577,使用的是任何程序都能实现的普通终端转义序列。
  • Rex 提供基于 Lua 的配置,可按程序逐个选择启用恢复,支持按程序名、路径、工作目录和命令行参数过滤,也可一行代码全部关闭。

要点和反应摘要由 AI 依据本页推文整理,请以原推为准。 我们怎么用 AI

原推

Mitchell Hashimoto @mitchellh 24.4万 粉丝

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.
推文配图
2,522点赞 156转发 151回复 12.8万浏览

在 X 上查看 收藏

X 上的热门回复

X 上的反应: 回复整体持肯定态度,有人称赞与 @herdrdev 的合作,也有人认为用转义序列是正确选择,因为双方都不必维护新的 IPC;没有出现质疑或纠错的回复。

登录后查看 X 上的 3 条热门回复

来自 @kartikktwt, @captn_karl, @serxzsz 等,已过滤广告,附中英文翻译。

免费注册 已有账号?登录

讨论 0

还没有人讨论,来说第一句。

推荐信源

觉得我们漏了哪个一手信源,或者该关注什么话题?告诉我们。审核通过后,所有人的榜单都会覆盖到它。

@用户名,或者主页链接