8000 min-zed/CHANGELOG.md at main · gominimal/min-zed · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
165 lines (145 loc) · 8.72 KB

CHANGELOG.md

File metadata and controls

165 lines (145 loc) · 8.72 KB

Changelog

All notable changes to this project are documented here. The format follows Keep a Changelog, and the project uses Semantic Versioning.

[0.2.0] - unreleased

Rebuilt as the Zed twin of min-vscode 0.2.0: its plumbing, commands and loadout, with Zed's own surfaces as the UI. There is no Zed extension (Zed's extension API has no UI); min-zed setup wires Remote Projects, tasks and a key instead.

Added

  • Zed wiring (min-zed config, run by setup; bin/min-zed-config):
    • Remote Projects: one ssh_connections entry per live min-zed box in settings.json, kept current by open, attach, ssh, destroy and gc; Zed reloads the list live.
    • Seven Minimal: … tasks in the global tasks.json (New Box from Folder, New Empty Box, Open Box…, Destroy Box…, Clean Up Idle Boxes…, Status, Doctor), run with task: spawn (cmd-shift-r). In a box window, where tasks run in the box, they say where to run them instead.
    • ctrl-alt-` in keymap.json: a terminal on the Mac from any window.
    • tasks.json and keymap.json get a marked block; all three files keep every byte that is not min-zed's, are backed up before a write, are refused when they do not parse, and are restored by config --remove.
  • min-zed setup [--remove]: the whole install (CLI link, loadout, skills, ssh Include, Zed wiring) from this checkout; just install/uninstall call it.
  • open/new/attach --no-window, new --empty (an empty /workbench), destroy --if-idle (exit 3 while in use) and destroy -y --force (exit 4 when min refuses unsaved changes), status --json.
  • destroy without NAME on a terminal offers a picker when the current directory has no single min-zed box.
  • The zed loadout adds git and puts Minimal's minimal-sandbox skill in the box's ~/.claude/skills (Claude Agent and Claude Code there).
  • Skills: Minimal's skills from gominimal/minimal-skills 0.7.0 (MIT), vendored: setup gives the agents on the Mac the host ones (minimal-setup, -config, -loadouts, -networking, -diag) in ~/.agents/skills (Zed's agent) and ~/.claude/skills (Claude Code).
  • Without the zed command on PATH, the CLI uses the one inside /Applications/Zed.app (MIN_ZED_EDITOR_APP). doctor reports the Zed version (tested: 1.26.2), the tasks, keymap and skills.

Changed

  • min names new sessions (<dir>-<hex>; box-<hex> for --empty) unless -n is given (was min-zed's <dir>-<word>).
  • Each tool ke 6091 eps its own in-box host key, ~/.ssh/min-zed/host_ed25519 (was the shared ~/.ssh/minx/host_ed25519): existing boxes re-key on the next connect, which re-pins it.
  • open's reuse, destroy's current-directory lookup, the pickers and completions consider only sessions min-zed has connected to.
  • The plumbing is no longer a vendored kernel block; it lives in bin/min-zed directly.
  • zed-config is now config (zed-config still works). 0.1.0's opt-in and record (zed-config-installed, zed-config.json) are taken over on the first run.
  • Needs min 0.7.0 or newer (doctor fails on older).
  • Boxes are reached by id (min 0.8, gominimal/minimal#2756, lets boxes share a name and resolves a name to the running box): min-zed records each box's id in STATE/sessions/NAME/id and passes it to every min session exec and destroy, so another tool's box of the same name is never reached under min-zed's record or by a name min-zed chose (CLI, stanzas, Remote Projects, status --json, which now carries each id and recorded); a box you name explicitly becomes min-zed's once it connects. The name stays the handle: min-zed.NAME, the ssh_connections entry, the commands. A key dir from before takes the id of the one box with its name on its first connect (open, attach, ssh, a y to new's offer of the folder's running box, the connection itself), never from a list, gc or destroy: gc lists such a dir without asking, and destroy with no NAME refuses it; if that box is not the one min-zed made, the name alone cannot tell. When several share it, min-zed leaves them alone and doctor says so. A min ls that exits 0 without one session list counts as a failed one.

Removed

  • min-zed watch (MIN_ZED_INTERVAL, MIN_ZED_NO_WATCH), its macOS notifications and the Claude Code agent-state hook in the loadout. Zed's own agent notifications cover box threads; see docs/zed.md.
  • The server pre-fetch (MIN_ZED_PREFETCH); Zed downloads its server into the box itself.
  • Herdr support, bounded in-box reads (MIN_ZED_EXEC_TIMEOUT).
  • jq from the loadout; docs/spike.md and docs/manual-test-plan.md.

Fixed

  • Values in the box's sshd environment no longer arrive shell-quoted. The box's env (GNU coreutils 9.12) quotes values when it prints them (X='a b'), and sshd read ~/.ssh/environment literally, so any loadout or project variable with spaces or quotes reached ssh shells, Zed's terminals and its agent with the quotes in it. PREP and the loadout hook now write the environment from awk's ENVIRON, dropping multi-line values whole (env, quotes and all, only when the box has no awk).
  • new (and so ⌃⌥N, New Box from Folder…) no longer goes straight to a second box when one of min-zed's is already running for the folder. A second box could fail on a host port the first holds (Port N is already in use on this machine by box NAME) and end the task with no window. On a terminal new now asks [Y/n] to attach to the running box; n makes the second box as before. Without a terminal, or with -n or --empty, it never asks.
  • destroy and gc: a failed min ls after the answer no longer counts as the box being gone. Before, it removed the session's keys, refreshed settings and dropped its ssh stanza even after an n; now everything is kept, with a warning, and after a y the command exits non-zero (min's own status, or 1 when min destroyed the box). Once min ls no longer lists the box, destroy NAME removes what was kept.
  • gc offers only sessions min-zed has connected to (has keys for); sessions another tool or you created with min are never listed or asked about.

0.1.0 - 2026-10-16

First release, split from minx.

Added

  • min-zed open|new|attach: activate (or reuse) a session with --loadout zed, prepare it, open ssh://min-zed.NAME/workbench in Zed.
  • destroy, gc (only min-zed's sessions, only unused ones), status, doctor, completions.
  • ssh, ssh-config, _proxy: the minx transport under the min-zed. prefix, with ~/.ssh/min-zed.conf and its own Include markers.
  • zed-config and bin/min-zed-config: Zed ssh_connections entries for live sessions (JSONC text edit, backup, no-op when unchanged, --remove).
  • watch: macOS notifications when Claude Code in a connected box needs input or finishes, from the loadout's in-box state file (unverified, spike E1).
  • Optional Zed remote server pre-fetch, MIN_ZED_PREFETCH=1 (unverified, spike Z1; off by default).
  • Loadout zed: openssh, curl, jq, rsync, xxhash; sshd environment; min:workbench rc line; Claude Code hook.

Fixed (review, before release)

  • Watch: epochs with a leading zero or more than 12 digits are refused instead of stopping the loop; reads are capped at 512 bytes and time out (MIN_ZED_EXEC_TIMEOUT); at most one notification per box per minute; bidi/line-separator characters stripped, messages cut by characters; one watch per state dir; watch --ensure no longer claims a start that did not happen; watch.log trimmed.
  • Settings: comments between ssh_connections entries, CRLF and a BOM are kept; atomic replace; --remove deletes a file min-zed created and keeps a user's own empty list; zed-config --print fails when the file cannot be edited.
  • gc re-checks a session right before asking about it (kernel v2).

Changed (from minx)

  • Host alias min-zed.NAME (was min.NAME); state in ~/.local/state/min-zed; env prefix MIN_ZED_.
  • In the box, authorized_keys is per tool (~/.ssh/min-zed/); the host key stays shared at ~/.ssh/minx/host_ed25519.
  • Use detection reads any tool's session exec NAME … sshd process, not only ssh min.NAME command lines.
  • Install leaves config.toml alone; sessions get the user's default_loadouts plus --loadout zed last.
  • What ssh-config created under ~/.ssh is recorded once for every min- tool (~/.local/state/min-clients/ssh-config-created); the tool removing the last Include deletes it.
0