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

Merged
merge-queue merged 3 commits from release-ready into main 2026-11-29 10:43:32 -08:00
Owner

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.
  • The open tuimail remembers it (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.
  • Focus reports: tuimail now turns on the terminal's focus reporting (CSI ?1004h, off again at exit and in the panic hook, on again after the editor) and reads FocusLost / FocusGained. Until the terminal says otherwise the window counts as shown.
  • at-app.json: registers.programs declares the mail window (system-window, whole, order 1, after spt's spotify), handoff is {"socket":["release-ready"]}, and registers.claudePlugin is claude-plugin, a new release asset.
  • The Claude plugin: release/assets/rust-x86_64-pc-windows-msvc/claude-plugin/ holds .claude-plugin/plugin.json and .mcp.json, whose server tuimail runs C:\Program Files\at-home\tuimail\current\tuimail.exe mcp. The release suite publishes the folder as claude-plugin-windows.zip, which the manifest unpacks to claude-plugin. The manifest parses with at-update's parser at its main.

What it doesn't

  • release_ready isn't an agent's call: tuimail mcp has 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.
  • The demo ignores the word.
  • Nothing calls release-ready yet, 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 tools mcp__plugin_tuimail_tuimail__*.

Tests

release.rs (what's safe; telling nobody), agent.rs (the call takes no arguments) and app.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

Part of [AHT-231](https://openproject.home.romaine.life/wp/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. - **The open tuimail remembers it** (`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. - **Focus reports**: tuimail now turns on the terminal's focus reporting (CSI ?1004h, off again at exit and in the panic hook, on again after the editor) and reads `FocusLost` / `FocusGained`. Until the terminal says otherwise the window counts as shown. - **`at-app.json`**: `registers.programs` declares the `mail` window (`system-window`, `whole`, `order` 1, after spt's `spotify`), `handoff` is `{"socket":["release-ready"]}`, and `registers.claudePlugin` is `claude-plugin`, a new release asset. - **The Claude plugin**: `release/assets/rust-x86_64-pc-windows-msvc/claude-plugin/` holds `.claude-plugin/plugin.json` and `.mcp.json`, whose server `tuimail` runs `C:\Program Files\at-home\tuimail\current\tuimail.exe mcp`. The release suite publishes the folder as `claude-plugin-windows.zip`, which the manifest unpacks to `claude-plugin`. The manifest parses with at-update's parser at its main. ## What it doesn't - `release_ready` isn't an agent's call: `tuimail mcp` has 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. - The demo ignores the word. - Nothing calls `release-ready` yet, 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 tools `mcp__plugin_tuimail_tuimail__*`. ## Tests `release.rs` (what's safe; telling nobody), `agent.rs` (the call takes no arguments) and `app.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](https://claude.com/claude-code)
Docs: release-ready runs beside the open tuimail
All checks were successful
Suite release / build (rust, x86_64-pc-windows-msvc) (, rust-x86_64-pc-windows-msvc, x86_64-pc-windows-msvc, false, windows-latest, x86_64-pc-windows-msvc, rust) (pull_request) Has been skipped
Suite rust / check-machete (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite release / home-sync (pull_request) Has been skipped
Suite rust / check-format (pull_request) Successful in 47s
Suite release / build (rust, aarch64-unknown-linux-gnu) (, rust-aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu, false, ubuntu-latest, aarch64-unknown-linux-gnu, rust) (pull_request) Has been skipped
Suite rust / check-typos (pull_request) Has been skipped
Suite rust / check-audit (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / build (rust, aarch64-pc-windows-msvc) (, rust-aarch64-pc-windows-msvc, aarch64-pc-windows-msvc, false, windows-latest, aarch64-pc-windows-msvc, rust) (pull_request) Has been skipped
Suite release / build (rust, x86_64-unknown-linux-gnu) (, rust-x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu, false, ubuntu-latest, x86_64-unknown-linux-gnu, rust) (pull_request) Has been skipped
Suite rust / scope (pull_request) Successful in 12s
Suite rust / check-test-linux (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 24s
Suite cluster-service / reused-checks (pull_request) Successful in 27s
Suite default / reused-checks (pull_request) Successful in 31s
Suite rust / check-test-windows (pull_request) Successful in 3m5s
Suite rust / check-services (pull_request) Successful in 5m53s
Suite release / check-build (rust, aarch64-unknown-linux-gnu) (, rust-aarch64-unknown-linux-gnu, aarch64-unknown-linux-gnu, false, ubuntu-latest, aarch64-unknown-linux-gnu, rust) (pull_request) Successful in 6m2s
Suite release / check-build (rust, aarch64-pc-windows-msvc) (, rust-aarch64-pc-windows-msvc, aarch64-pc-windows-msvc, false, windows-latest, aarch64-pc-windows-msvc, rust) (pull_request) Successful in 7m39s
Suite rust / reused-checks (pull_request) Successful in 31s
Suite release / check-build (rust, x86_64-unknown-linux-gnu) (, rust-x86_64-unknown-linux-gnu, x86_64-unknown-linux-gnu, false, ubuntu-latest, x86_64-unknown-linux-gnu, rust) (pull_request) Successful in 11m11s
Suite release / check-build (rust, x86_64-pc-windows-msvc) (, rust-x86_64-pc-windows-msvc, x86_64-pc-windows-msvc, false, windows-latest, x86_64-pc-windows-msvc, rust) (pull_request) Successful in 13m6s
Suite release / check-package (pull_request) Successful in 7m6s
Suite release / reused-checks (pull_request) Successful in 4s
merge-queue landed on main
50de9cf1e5
merge-queue deleted branch release-ready 2026-11-29 10:43:32 -08:00
Sign in to join this conversation.
No description provided.