NoFOMO
Search 中EN Sign in Sign up

Peaked at #1 Now #2

Rex launches terminal recovery protocol

Mitchell Hashimoto publishes OSC 7577 terminal protocol letting any program resume through a server restart.

Rank over time

Key points

  • Rex can now resume programs through a server restart, based on the new OSC 7577 terminal protocol published by @mitchellh in collaboration with @herdrdev.
  • Rex ships with built-in support for Claude Code, emitting OSC 7577 in a session start hook, and uses plain terminal escape sequences that any program can implement.
  • Rex offers Lua-based configuration to opt in to resume on a program-by-program basis, filtering by program name, path, working directory and command-line flags, and can be disabled in one line.

Key points and the reaction summary are written by AI from the posts on this page. Check the original post. How we use AI

Original post

Mitchell Hashimoto @mitchellh 244.2K followers

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.
Post image
2,522likes 156reposts 151replies 127.7Kviews

View on X Save

Top replies on X

Reaction on X: Replies were largely positive, praising the collaboration with @herdrdev and calling escape sequences the right approach since no new IPC needs maintaining on either side; no critical or corrective replies appeared.

Sign in to see 3 top replies from X

From @kartikktwt, @captn_karl, @serxzsz and others. Spam removed, with English and Chinese translations.

Sign up free Have an account? Sign in

Discussion 0

No comments yet. Start the conversation.

Suggest a source

Is there a first-hand source we're missing, or a topic we should watch? Tell us. Once approved, everyone's board covers it.

@username or profile link