Skip to content

Changelog: the detail of 0.1.0

The detail of the features in CHANGELOG.md's 0.1.0 that came after their milestones, newest first, each section as it was written; moved out of changelog-detail.md, which keeps their headings, to keep that file small.

Popups

Added

  • leon toggle LABEL --create --float [--rect X,Y,W,H] [--keep-open] [-- CMD] creates a float (default 0.1,0.1,0.8,0.8) running CMD, or a login shell, in the focused pane's directory; later toggles hide and show it, and a hidden program keeps running. It closes when its program exits, as every block does, and the next toggle makes a new one; --keep-open keeps it with its exit status. Without --float, -- CMD now runs CMD in the bottom drawer.
  • In Lua: leon.toggle{label=..., create=true, float=true, bounds={...}, options={command={...}}}, with a recipe for a git popup on a key in lua/keys.md.
  • session.toggle gains float, bounds and options (the TerminalOptions that session.new_split takes): new optional parameters on a stable method, so api_version goes from 1.11.0 to 1.12.0.

Changed

  • Hiding or closing a float or drawer that a toggle opened, while it has the focus, gives the focus back to the pane the toggle was pressed in, in its own tab (before, the top float, a drawer or the first tile of the overlay's tab). One that isn't focused leaves the focus where it is, and one shown another way (the switcher, leon float) forgets where to go back. A popup is one per label per session: toggled from a pane in another directory, it shows the one already running.

Fixed

  • A popup or drawer made by session.toggle, or a float made by session.new_floating (leon float --new), starts its program at the size Leon.app gives it. Before, every terminal started at 24x80 and the app's resize reached the program a moment later, while it was still starting. The app tells its server how it draws each window with client.geometry, an internal method; without the app (leon attach only) a new terminal still starts at 24x80 and is resized once a client fits it.
  • The git popup recipe runs less -Rc: without -c, less writes a log shorter than the popup at the bottom of the screen and leaves the top blank.

Server and Remote Hosts in Settings

Added

  • Settings › Server shows This Mac's server: how long it has run, its version, socket, sessions, blocks and log file (Reveal). Stop and Restart ask first, saying what server.stop does: every program in every session ends, and the sessions come back only from a server that saves them. Restart starts leon again once the window has seen the server stop.
  • Settings › Remote Hosts lists each host with its endpoint, its state and why, and its tailnet login; Add Host… opens the window's prompt, Rename checks the label as leon hosts add does, and Remove asks first.
  • server.status gains started_at, blocks and log (null for a server run in a terminal): new result fields on a stable method, so api_version goes from 1.10.0 to 1.11.0.

A Settings window with sections

Added

  • Settings (⌘,) has a sidebar of sections (General, Appearance, Terminal, Notifications, Shortcuts, Agents) and a search field that finds a row by its label or its Lua name (lua/settings.md). Every setting has a control: steppers with their range for the numbers, a choice for resume, switches, and an editable list for hint_patterns that checks a pattern before it is written. A setting init.lua sets by code stays read-only, with the line to change.
  • Shortcuts lists every key the app binds, with Edit in init.lua; Agents shows what leon skill status says, with the command that sets an agent up.

Serve over Tailscale

Added

  • leon.set("serve_tailscale", true) (off by default) makes the server also listen on this machine's Tailscale addresses (never another interface), on serve_tailscale_port (7297). It lets a connection in only once tailscaled's whois says it comes from another of this machine's owner's untagged machines (or a tag listed in serve_tailscale_tags), before reading a byte; anything else is closed unanswered with one log line (docs/cli/hosts.md, the threat model in architecture/tailnet.md).
  • tailnet://HOST[:PORT] endpoints reach such a server with no ssh, for -H, leon hosts add, leon attach and the app; the client connects only to a machine its own tailscaled vouches for.
  • The Settings window has a Tailscale section: the switch, a field for the port and a list of tags (each checked as leon.set checks it, read-only when init.lua sets it by code), and how serving goes.
  • server.status reports tailnet (state, addresses, login, reason, last refusal) and server.settings the three settings: new result fields on stable methods, so api_version goes from 1.9.0 to 1.10.0.

An icon per program in Leon.app

Added

  • Each pane's header, tab, sidebar row and overview card shows an icon for the kind of program in it: shell, agent, editor, server, test run, monitor, remote or other (docs/architecture/attention.md).
  • session.list_blocks gives each block foreground, the name of the program in front (never its arguments; null for another user's), and a change is a foreground_changed event: a new result field on a stable method, so api_version goes from 1.8.0 to 1.9.0.

A translucent window in Leon.app

Added

  • Leon.app's window shows a blur of what is behind it, tinted by the theme: the sidebar, the title bar and the gaps between panes let the most through, the panes less. Text keeps its contrast over any desktop, light or dark: where the setting asks for more than that allows, the app draws that part more opaque. Reduce Transparency (System Settings › Accessibility › Display) and full screen draw the window opaque.
  • leon.set("translucency", N) sets how much shows through, from 0 (opaque, the window as before) to 0.8. server.settings reports translucency, a new result field on a stable method, so api_version goes from 1.7.0 to 1.8.0.

Themes

Added

  • Six new built-in themes made for leon from its brand palette, beside leon-dark and leon-light: leon-maroon (a warm dark), leon-tide (a cool dark), leon-coal (a high-contrast dark), leon-linen (a paper light), leon-sand (a soft light) and leon-mist (a cool light). Every built-in theme is tested to keep body and UI text at 4.5:1 or better, its ANSI colours readable, selection and find marks visible, and the four status colours apart. leon theme list and the Settings window list them.
  • Change Theme… in the command palette (⌘⇧T) lists every theme, built in and imported, and draws the window in the selected one as you move through the list; ↩ keeps it in init.lua and esc goes back.
  • A theme change fades in over a moment instead of switching at once; with Reduce Motion it still switches at once.

Changed

  • A theme imported under one of the new built-in names (leon-tide, say) is now shadowed by the built-in one; import it again under another --name to keep using it.

Terminals under load

Fixed

  • A program that writes and exits at once (printf, pwd) no longer leaves an empty pane when the machine is busy. On macOS a program's exit waits only about 0.6 s for its output to be read, then drops it; leon now keeps the PTY open until the program has exited, so the exit waits for leon to read it.
  • A program's exit is reported after the output already read from it is on the screen, also when the end of its output is slow to come.
  • Opening a pane no longer fails now and then with "failed to openpty" while other programs open and close terminals: macOS's "open it again" answer is now followed.
  • leon run --wait (and block.wait) of a program that exits at once no longer fails now and then with "no block": a program exiting just as the wait began was neither running nor done.

The overview in Leon.app

Added

  • ⌘⇧\ (or the toolbar's grid button, or "Overview of All Tabs" in the palette) fills the window with every tab of every session and host as a card: its title, its status in the sidebar's colours and Activity's words, and a live, scaled-down view of its panes as laid out. Arrow keys move between cards, ↩ or a click goes to the tab, typing filters by title, and esc goes back to where you were. ⌘\ shows only the current session's tabs. A host that isn't connected shows its last cards greyed, with the reason.
  • Resting the pointer on a tab in the titlebar, or on a tab's row in the sidebar, shows a live thumbnail of that tab; moving to the next tab moves it at once.
  • Thumbnails are drawn from the screens leon already has, never captured from the window: a card draws again only when its screen changes, at most four times a second, and an idle overview draws nothing.

Output throughput

Changed

  • A big cat of text and colour is 44% faster (80 to 115 MB/s on the perf harness's 100 MB file): leon's own scans of the output skip what they don't follow, and the screen push no longer holds the terminal's lock while it builds a frame (docs/performance-cat.md).

Updates in Leon.app

Added

  • Leon.app looks for a newer release once a day, in the background, and shows a quiet notice in the window when one exists: its version, its release notes, and Install. Nothing is downloaded or replaced until you choose Install (or "Install Update" in the command palette); the notice then shows each step, and when it is done, Restart opens the new version with your sessions as they were. Dismissing the notice hides it until a newer version comes out. "Check for Updates" in the palette looks at once. It checks and installs what leon self-update does (docs/updates.md).
  • A Leon.app that Homebrew installed shows the brew upgrade --cask command to copy instead of Install. An app run from where macOS put a download (App Translocation) says to move it to Applications first, and an install that macOS's App Management setting refuses says where to allow it.
  • leon.set("check_for_updates", false) turns the daily look off: the app then makes no request of its own. server.settings reports check_for_updates, a new result field on a stable method, so api_version goes from 1.6.0 to 1.7.0.

Security

  • A release server elsewhere can no longer redirect an update to this machine over https either (https://127.0.0.1, [::1] with or without a zone, localhost, 127.1, a %-escaped name and the like); before, only plain http to a loopback address was refused. An address that is not ASCII is refused outright. What is downloaded was, and is, verified against the release key.

Memory

Changed

  • A font change in Leon.app (⌘=, ⌘-, ⌘0, font.size or font.family in init.lua) now fits only the panes on screen. A pane in another tab or session, a hidden float or drawer, or a pane a zoom covers keeps its size until it is shown, and is fitted then, as after a window resize. Resizing a pane reallocates its whole history at the new width, so before, one font change could grow the server by hundreds of MiB for panes nobody was looking at. A program in a hidden pane gets its resize when the pane is shown; capture and dev.leon.terminal.size report the old size until then. A pane that only leon attach shows keeps the size attach gave it. ⌘0 at the size the font already has, or an init.lua reload that leaves the font, resizes nothing.

Fading the panes without the focus

Added

  • Leon.app fades every pane but the focused one toward the window's background (its text, its background and its header), so the eye rests on the focused pane. When the focus moves, the pane losing it fades out and the pane gaining it fades in over 120 ms; with Reduce Motion the change is immediate. A pane alone in its tab is not faded.
  • The fade never hides what you are waiting for: a pane's status indicator keeps its colour, and a pane that needs you (blocked, an error, a finish you haven't looked at) is not faded at all.
  • leon.set("fade_inactive_panes", N) sets how strong the fade is, from 0 to 0.8 (the default is 0.35, where body text keeps a contrast of 4.5:1 on leon-dark and leon-light); 0 turns it off. leon config get and leon config set take it, and a value out of range is refused.
  • server.settings reports fade_inactive_panes. A new result field on a stable method raises api_version from 1.5.0 to 1.6.0.

Updates

Added

  • leon self-update installs the newest release: it verifies the signed manifest against the keys built into leon, takes a release only if it is newer, checks the file's sha256 and signature, and swaps the new leon in atomically. --check only reports, and exits 10 when a newer release exists. A leon installed by Homebrew or from a .deb is told the command that updates it instead. leon never checks on its own. LEON_RELEASE_URL points it at a mirror. docs/updates.md has the checks and what each refusal means.

Fixed

  • A pane whose program can't be executed is refused like one that isn't there: leon run, block.create and session.create fail with bad_request, name the program and the OS's reason ("can't run its interpreter /no/such/interp: No such file or directory" for a script whose #! interpreter is missing, "Exec format error" for a file that isn't a program), and leave no block behind. Before, the pane showed fatal runtime error: assertion failed and the program's exit was 134 (or a binary ran as a /bin/sh script). A script without a #! line still runs with /bin/sh.

Releases

Added

  • A release workflow (.github/workflows/release.yml): a tag vX.Y.Z builds the app for macOS on arm64 and x86_64, the CLI tarballs, and the Linux tarballs and .debs, signs every file with minisign, and publishes a GitHub Release with a manifest (latest.json) at a stable address. Started by hand it stops at a draft. docs/releases.md has the manifest format, the secrets and key rotation.
  • leon-<version>-<arch>-macos.tar.gz: the CLI alone for macOS, from scripts/release.sh.
  • A Homebrew tap, aindong/homebrew-leon, with a cask for Leon.app and a formula for the CLI, rewritten by each release.
  • scripts/release-dry-run.sh builds, signs and checks a release locally with a throwaway key; scripts/release-verify.sh checks any release's sums, manifest and signatures.

Daily-driver polish

Added

  • leon run --wait prints the program's text after the block ID once it exits (what leon capture --trim shows) when stdout is not a terminal, so an agent gets the output and the status in one call. --output[=true|false] turns it on or off. The block stays open until it has been read, then closes (unless --keep-open). (F5)
  • leon wait --text TEXT waits until a block's screen or scrollback shows TEXT: a prompt, a "ready" line. It exits 1 after --for or if the block closes first. (F6)

Changed

  • leon skill setup without --agent also sets up Claude Code or Codex when claude or codex is on PATH, even before its first run, and says for each agent why it was picked. With none found it says so, and to pass --agent. An agent home dir it creates is private (0700). (F4)
  • The README's first commands, the agent guide and docs/agents.md wait for Python's prompt before typing into it, and for its answer before reading it; a test runs the README's block. (F6)
  • The scratch drawer (⌘J, leon toggle scratch --create, session.toggle with create) opens in the directory of the active window's focused block instead of ~, when its program is still running (an exited one's directory is only what its output last said). (F14)
  • The command palette (⌘⇧P), and the switcher and the lists that filter like it, rank a row whose title or keywords have each typed word (two letters or more) as a whole word above fuzzy matches inside other words: log puts "Tail the server log" first, not 8th.

Fixed

  • A one-shot claude -p (--print, or -p among other short flags, -cp) in a pane no longer registers a resume command. (F10)
  • With a translucent window, the title bar's strip to the right of the last tab is tinted like the rest of the bar instead of showing the desktop through it.
  • A pane header's split, zoom and close controls (unfloat and close on a float or drawer) sit at the header's right end again, not right after its title.
  • Keys typed into leon -H … attach while the link is stalled no longer arrive in part (the research run left ec of echo …⏎ at the remote prompt). After a quiet second, keys wait for a probe of the link; if it fails they are all dropped, and so are keys typed while it reconnects, and the status bar says how many were not sent. A paste waits in the same line, so it can't pass keys typed before it. (F12)
  • On macOS, opening a host (-H, the app's hosts) could wait 30 s and then fail with the leon server can't be reached: Resource temporarily unavailable. The ssh started for one of a link's connections could inherit the pipes of another that was starting at the same moment, which then was never served. ssh now gets its stdin, stdout and stderr and nothing else.
  • A clicked notification wakes every window, not only the one opened last.
  • A program started by leon.exec gets its stdin, stdout and stderr and nothing else: it could hold the terminal of a pane that was opening at the same moment, which then never saw its own program exit.

No schema changed, so api_version stays 1.5.0.

M22b — Themes and settings in the app

Added

  • The app draws with init.lua's theme, font.family and font.size: panes, the window around them and the status colours. A { dark, light } theme follows the macOS appearance and switches with it. Changes apply when the config reloads, without a restart.
  • A Settings window (⌘,, "Settings…" in the leon menu and the palette; action client.settings): the theme for dark and for light mode with a preview of each, font family and size, notifications per kind and copy on select. Each change is written to init.lua by leon config set's code; a setting set by code it can't rewrite shows read-only with its file:line.
  • block.watch and dev.leon.terminal.lines take an optional palette (fg, bg, cursor, ansi) that the connection's screens and lines are resolved with; without it they are leon-dark's, as before. Both methods are Experimental, so api_version is unchanged.

Changed

  • leon-light: the selected row is a step deeper than a hovered one, and the accent, secondary and status colours are a little darker, so all of them read at 4.5:1 on every surface.