release-ready: tuimail restarts onto a new release out of sight; at-app.json's mail window, hand-off and Claude plugin (AHT-231) #66
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/tuimail!66
Loading…
Reference in a new issue
No description provided.
Delete branch "release-ready"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Part of AHT-231: tuimail moves itself onto a new release, and its manifest says so.
What it does
tuimail release-ready(new command): tells the open tuimail, over the agents' socket (agent::Call::ReleaseReady), that a new release is installed. It exits 0 whether a tuimail is open, none is, it isn't listening, or it's too old to know the word.release.rs) and exits 75, the code at-tmux relaunches a pane on, at the first moment its window doesn't have the focus and nothing would be lost: no composer, account form, prompt or question open, no change, draft or send on its way, no sign-in in the browser, no agent's call unanswered. Already out of sight and idle, it goes at once. One log line (restarting onto the new release); nothing shows. A draft is never discarded: an open composer holds the restart until it's closed.FocusLost/FocusGained. Until the terminal says otherwise the window counts as shown.at-app.json:registers.programsdeclares themailwindow (system-window,whole,order1, after spt'sspotify),handoffis{"socket":["release-ready"]}, andregisters.claudePluginisclaude-plugin, a new release asset.release/assets/rust-x86_64-pc-windows-msvc/claude-plugin/holds.claude-plugin/plugin.jsonand.mcp.json, whose servertuimailrunsC:\Program Files\at-home\tuimail\current\tuimail.exe mcp. The release suite publishes the folder asclaude-plugin-windows.zip, which the manifest unpacks toclaude-plugin. The manifest parses with at-update's parser at its main.What it doesn't
release_readyisn't an agent's call:tuimail mcphas no tool for it, and it reads and changes no mail, so it's answered before the agents' rules. It still travels the agents' socket, which is listened on only while AI agents is on (home-sync turns it on on home PCs); a tuimail with it off isn't told and stays until restarted.release-readyyet, and home-sync still installs tuimail and its MCP server until at-update's hand-over is on. As a plugin's server, Claude names its toolsmcp__plugin_tuimail_tuimail__*.Tests
release.rs(what's safe; telling nobody),agent.rs(the call takes no arguments) andapp.rs(waits while focused, goes at once when already out of sight, never with a message being written, waits for questions and what's on its way, the demo, and the word arriving through the real socket). Not run against his accounts or his tmux server.🤖 Generated with Claude Code