Skip to content

0.8.2 — copies reach the clipboard on macOS, Restart all / Stop all, and no more jumping panes

Choose a tag to compare

@AnmolMajithia AnmolMajithia released this 20 Oct 13:48
8e40ad9

A hotfix. A copy in asq reaches the clipboard on macOS. Every agent can be restarted or stopped at once. And a restart no longer takes you off the pane you're on.

0.8.2 shipped as #266. It went through three rounds of independent /code-review (xhigh). Every finding was fixed with a test or answered in its thread. The new UI was also checked twice in a real asq. CI is green on Linux, on both ambient legs, and on Windows.

  • Copy and paste on macOS. In Terminal.app and iTerm2, a copy in asq now reaches your clipboard. 0.8.1 sent every copy only as OSC 52 and said "copied" either way. Terminal.app ignores OSC 52, and iTerm2 drops it unless its clipboard setting is on, so ⌘V pasted whatever the clipboard held before.
    • On a local session, a copy now also goes through the platform's own tool: pbcopy on macOS, clip.exe on Windows and WSL, and wl-copy, xclip or xsel on Linux and the BSDs. It still goes as OSC 52 too, which is the only route over SSH.
    • The toast says "copied" only when the copy can have landed. Otherwise it tells you how to copy instead.
  • Restart all / Stop all. In asq it's ⚙ Settings ▸ Fleet ▸ Restart all… or Stop all…. On the command line it's aisquare fleet restart --all [--managers] and aisquare fleet stop --all [--managers].
    • Both cover every running agent in every project, or only the managers.
    • The dialog lists the agents by project, its confirm button names the count, and Cancel has focus.
    • Exited agents are left alone, and so is an agent that exits while the run goes on. When one agent fails, the rest still run.
  • No more jumping panes. A restart that finishes while you're on another agent's pane leaves you there, and a toast names the restart instead.
  • A click guard. For a second after the view under the pointer changes, Stop and Restart ignore a mouse click aimed at what was there before, and they don't take the focus. A key press is never ignored.
  • Mac-aware help. When you type on a Mac, the help screens name the keys a Mac actually has: c and ctrl+c, ⌘V, and Option-drag or Fn-drag for the terminal's own selection.

Upgrading:

  • From 0.8.0 or 0.8.1, run aisquare upgrade. From 0.7.0 or earlier, re-run the one-line installer.
  • No store migration (the schema stays at v32) and no new dependencies.

The full list, with every detail, is in CHANGELOG.md → 0.8.2.

Known issues: none of these blocks 0.8.2.

  • Suppose an agent's view is on screen and the agent is restarted from outside it, for example by fleet restart --all in a shell. The view stays on the old pane until you click the new row in the sidebar.
  • Under GNU screen reattached over SSH, a copy may still say "copied": screen doesn't say where it was last attached from.

Full diff: v0.8.1...v0.8.2