Skip to content

0.2.1

Choose a tag to compare

@LucasInstra LucasInstra released this 16 Sep 16:24
· 26 commits to main since this release

Added

  • TUI entrypoint (tui.ts): /popup-window, /popup-tray, /popup-toggle and
    /popup-reset now show up in the / autocomplete and the command palette.
    The command leaves a request file next to the presence data, so the switch
    takes the same path the popup menu uses and every server instance applies it.
  • exports["./tui"] so an npm install exposes the same entrypoint, plus a root
    tui.ts that re-exports it for plugin directories, where a loader resolves a
    tui file next to index.ts instead of the package exports.

Changed

  • Pill: a left click brings the OpenCode terminal forward, the same focus
    target the tray icon uses. A press only counts as a click when the window does
    not move past the system drag distance, so dragging still moves the pill.
  • Tray: a left click brings the OpenCode terminal forward instead of showing
    the balloon. The host walks the parent chain of the process that wrote the
    presence file (and, when that chain died with the service, other processes of
    the same executable) to the terminal window, restoring it when minimized. The
    live state moved to Show details in the right click menu, and the balloon is
    still the fallback when no window can be found.
  • Presence files already carried the writer pid; the host now keeps it in the
    aggregate, which is what makes the focus target findable.
  • The idle states breathe on the WPF composition clock (a DoubleAnimation on
    the window opacity) instead of repainting from PowerShell on every typeMs
    tick: same 2.4s period, now smooth and with no per tick work in the host.
  • Mode switches are faster: the plugin reacts to a request within 100ms (was
    500ms) and the tray frames are drawn on demand instead of all at startup —
    measured 408ms to bring the icon up, was ~1000ms, taking a full switch from
    ~2.4-3.1s to ~1.6s before the poll change.