Elyra
Elyra The coding agent eTerm The terminal that knows where each command ends Huskarl AI colleagues on your own Mac Starf An activity monitor for Apple silicon that never invents a number etrans An SSH and SFTP client for macOS Elyra VM Virtual machines for macOS, Linux and Windows on your Mac Litr A small, native web browser for macOS Notr A notebook for macOS e The native code editor Elyra Grove Native local development environment Askr The real server for Laravel & PHP Elyra Framework Rust + Svelte 5 framework for desktop apps Elyra Conductor Local project conductor Refr Local-first PDF workspace for macOS Elyra Workspace A desktop workspace for coding agents eDock A container runtime for the Mac Elyra SQL Server MySQL-compatible SQL server in Rust Elyra Félagi Agents as teammates on one board Elyra SQL Client Native desktop SQL workbench Elyra SQL Anywhere Replication-ready SQL engine Elyra Sjá SEO & GEO workspace for macOS Elyra DataGrid Server-driven data grid for Laravel
Reference
Ratatosk CLI
Roadmap
RFC 0001: make:resource
RFC 0002: live queries
RFC 0003: MCP server
RFC 0004: MCP resource templates
RFC 0005: a Laravel backend
RFC 0006: Laravel broadcasting
RFC 0007: offline and sync
RFC 0008: Laravel notifications
RFC 0009: Files
RFC 0010: Laravel abilities
RFC 0011: an assistant in the app
RFC 0012: @elyra/ui
RFC 0013: the assistant sees the window
RFC 0014: Elyra Inspector
RFC 0015: presence
RFC 0016: capabilities per window
RFC 0017: record invalidation
RFC 0018: the assistant's answer, streamed
RFC 0019: a window from the tray
RFC 0020: an app that stays in the tray
RFC 0021: a server chosen at sign-in
RFC 0022: signed in to more than one server
RFC 0023: private channels a window listens to
RFC 0024: updates from the backend
RFC 0025: commands and configuration
RFC 0026: the running app, for coding agents
RFC 0027: the assistant's code mode
RFC 0028: the tray's icon, and the app's
RFC 0029: installers
RFC 0030: the app's identity on Windows
RFC 0031: a token per workspace
RFC 0032: the microphone
RFC 0033: diagnostics the user can send
RFC 0034: one screen in several states at once
RFC 0035: point at it, and hand it to the agent
RFC 0036: rata check, the app checked as a whole
RFC 0037: Theme Studio
RFC 0038: edit it in its own app
RFC 0039: a write shown at once in every window
RFC 0040: the two halves agree
RFC 0041: Quick Look
RFC 0042: follow a colleague
RFC 0043: every write seen
RFC 0044: composite keys
RFC 0045: bigint all the way
RFC 0046: pivot columns
RFC 0047: relations on any key
RFC 0048: more providers
RFC 0049: OpenAI web search
RFC 0050: integer-keyed arguments
RFC 0051: citations
RFC 0052: open documents
RFC 0053: exit hooks
RFC 0054: the gui feature
Release notes
Changelog
Elyra
Work done when the app ends

Work done when the app ends

An app that starts something outside itself has to end it when it quits: an ssh -N tunnel, a server it launched, a lock file, a half-written temp file. A Drop can't be relied on for that: the event loop ends the process without running destructors, and so does the updater's relaunch. An exit hook can (RFC 0053).

App::new()
    .on_exit(|ctx| ctx.get::<Tunnels>().close_all())
    .run()?;

Hooks run once, last added first, on the thread that's ending the process, whichever way it ends:

How the app ends
The last window closed, Quit, the tray's Quit, ⌘Q when the event loop ends
A relaunch into an update before the updater exits
An --mcp run ends (its client closed stdin) when the run returns
SIGINT, SIGTERM, SIGHUP (macOS, Linux) then the process exits with 128 + the signal
Ctrl-C, Ctrl-Break, the console closed (Windows) then the process exits as Windows would
Log-off, shutdown, a restart for updates (Windows) on WM_ENDSESSION, before Windows ends the process

A hook that panics is logged, and the rest still run. Keep hooks quick: signal a child to end rather than wait for it. A hook that hangs keeps the process alive.

Nothing runs on SIGKILL, a force-quit from Activity Monitor or Task Manager, a crash, or a power loss. A child that must never be left behind should watch for its parent itself, for instance by exiting when its stdin closes.

Sidecars end with the app

Processes started with Sidecar are ended by a hook of the framework's own: whatever is still running when the app ends is killed.

Without App::run

A main that doesn't call App::run (a command-line tool built on the same crates) holds an ExitGuard: it runs the hooks when main returns or unwinds, and installs the same signal handlers.

fn main() -> anyhow::Result<()> {
    let _exit = elyra::exit::guard();
    elyra::exit::on_exit(tunnel::kill_all);
    run_cli()
}

elyra::exit::on_exit adds to the same list as App::on_exit, without a Ctx, and elyra::exit::run() runs it at once (a later call finds it empty).

An app with its own signal handling

App::exit_on_signals(false) leaves SIGINT, SIGTERM and the Windows console's events to the app. It then calls elyra::exit::run() itself before it ends the process. The event loop, the updater and --mcp still run the hooks.

Related