Repository navigation
cookbook: retire remote-session-restore - #1000
Conversation
agterm restores rows attached from another Mac itself since umputun#999, so the recipe's app.launched replay would only duplicate them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
umputun
left a comment
There was a problem hiding this comment.
lgtm. One note on the switch-over, which I'll also put in the release notes: a snapshot written by 0.42.x has no attached rows, so on the first launch of the release with #999 it's still the recipe's replay that brings them back, and agterm saves them itself from then on. So the clean path is to keep the hooks for that first launch, and if a host was down, retry until every row you want is back. Then remove all four of the recipe's lines from hooks.conf (not only replay), run agtermctl hooks reload, and delete ~/bin/remote-restore. A row still waiting in the recipe's list when it goes is not restored by agterm and has to be attached again by hand, and replay left on past that point duplicates the rows agterm already restores.
agterm saves rows attached from another Mac and re-attaches them on relaunch since #999, which is what this recipe did. With both in place the recipe's
app.launchedreplay creates duplicate rows, so the recipe comes out rather than staying for older versions.Users of the recipe should remove its
replayline fromhooks.confafter updating to the release that includes #999.🤖 Generated with Claude Code