Rex can now resume your programs through a server restart!
@mitchellh244K followers
240,214 views
26 Comments
Comments from the original post on X (Twitter)

@kartikktwt
@herdrdev This is sickk honestly. Also i love that you guys are working with @herdrdev
4 likes

@serxzsz
@herdrdev escape sequences for this is the right call, no new ipc to maintain on either side
2 likes

@caioca
@herdrdev Love that you're working together with @herdrdev!
1 like

@xpasky
@herdrdev TL;DR: Programs may emit an escape sequence describing how to restart them and resume from a saved checkpoint (e.g. a CC session snapshot, vim state from a .swp file, etc.). I have been thinking about this recently with all the kernel bugs prompting reboots - perfect timing!
1 like

@captn_karl
@herdrdev tmux brutally session/resurrect mogged
1 like

@naw103
@herdrdev Does the Claude Code hook resume the same conversation by session id, or reopen claude fresh in the same directory?

@commandersaki
@herdrdev Is this kind of like some nelhage/reptyr type thing?

@DanielGDosen
@herdrdev Should have probably waited for a build numbered 2669 or greater before trying :)

@NoNameTokens
@herdrdev Open Beta wen?

@nwtseira
@herdrdev this is big

@harrisonju
@herdrdev what happens to a tool call that was mid flight when the server restarted?

@Adojz
@herdrdev when claude code comes back after the restart, does it pick up the same conversation (like --resume with the session id from the hook) or start a fresh session in the same dir?

@AdityaBatra072
@herdrdev tmux could never

@21jordantaylor
@herdrdev Small but huge feature!

@bpisbuilding
@herdrdev interesting proposal. I currently handle this by sending over a little binary based on zmx to keep shells open and running (like a lightweight tmux).

@schrepfler
@herdrdev What does program resume mean, it saves the process entire state (program counter, allocated memory etc.) somewhere or does it require some soft support from the applications to save and load snapshots (ala `claude --resume :session-id`?

@Fonsi_AI123
@herdrdev Good news: sessions survive reboots. Bad news: no more excuse to log off.

@AlbertPurnama
@herdrdev @calvintjoeng now we can restart our rex servers to update

@evertjr
@herdrdev if you get everyone to adopt that standard it would be so glorious. Session resume across agent CLIs is currently a shit show

@uhhhnobodyy
@herdrdev Glad I don’t have to ask Claude “remember my tabs so you can resume them when I restart Rex” anymore lol






