Repository navigation
Releases
Releases · LucasInstra/opencode-status-popup
v0.3.3
0.3.3 — 2026-09-24
Fixed
--keepin the preview now really leaves the host running when the preview
exits through Ctrl+C or--seconds, and Ctrl+C no longer stops a host the
preview only attached to (the real plugin's).- The TUI palette is not registered on non-Windows platforms anymore: the
commands wrote requests nobody consumed and toasted a success that never
happened.
Changed
- README rewritten around a quick start, with the states, interaction and
options first and the internals, preview harness and debugging under
Development. - The repository pins LF (
.gitattributes), so a packed tarball matches the
tag byte for byte instead of shipping CRLF for a few files.
v0.3.2
0.3.2 — 2026-09-24
Fixed
- A question asked by the agent now lights the popup violet with a
?, like a
permission request does. OpenCode 2 asks through a form
(form.created/form.replied/form.cancelled) and the plugin watched
onlypermission.*, so a session waiting for an answer was easy to miss.
The detail is the question text (the first form field title, falling back to
the form title).
v0.3.1
0.3.1 — 2026-09-18
Added
trayIdleStatic(defaultfalse): with it on, the tray icon holds the full
blue letter steady while idle instead of the slow blink. The working, retry,
error and permission states keep their animations, and the pill ignores the
option.npm run preview:tray -- --state idle --idle-staticpreviews it
without OpenCode./popup-static(alsoPopup: tray idle staticin the palette) toggles the
tray idle at runtime. The choice is shared by every instance and remembered
like the mode;resetgoes back to the configured value.
v0.3.0
0.3.0 — 2026-09-17
Added
- Stale and orphaned presence files are reaped: on the next plugin setup, and
again before the last instance decides whether the host can stop, so a file
left behind by a killed session neither lingers forever nor vetoes the stop.
Targets are files whoseupdatedwent stale, payloads that cannot be parsed
and orphaned*.tmpwrites; a file that is momentarily unreadable is left
alone.
Changed
- Both logs rotate at their cap instead of stopping or vanishing:
plugin.log
keeps one previous generation asplugin.log.1(512 KiB),host.logdoes
the same (256 KiB), and the newest lines are never the ones thrown away. - TUI: with
enabled: falsethe four palette commands are no longer
registered, so they cannot write a mode request nobody consumes or toast a
success that never happens. - The host is no longer given up on during a cold start: a shell that is still
alive after the first 2.5 s keeps its probe window (up to 10 s) instead of
being abandoned for the next interpreter, and a shell that cannot even start
fails over immediately. The per-shell line says which failure it was (could
not start, exited without a heartbeat, no heartbeat in time), and the
warning fires only when no shell reached one. - The tray host is not restarted for settings it does not render:
typeMsand
markonly have to match inwindowmode, so changing them no longer
replaces a running tray icon.
Fixed
- Free-form host arguments that match a parameter name (
-Mark,-Word, or
a dash-prefixedOPENCODE_STATUS_POPUP_DIR) no longer break the host before
it can log anything: the value travels attached to its flag
(-Word:value,-StateDir:value), which PowerShell binds as a value
whatever it looks like. - A mode switch already in flight when the plugin shuts down can no longer
spawn a host after the cleanup removed the presence file: the supervisor
latches off before the rest of the cleanup runs and kills a shell that was
still starting. - Docs: the
session.commandexample usesname(the field the API expects),
typeMsis scoped to the pill,OPENCODE_STATUS_POPUP_DIRis documented,
and a live-vs-restart table states the reload precondition and what a change
to each option does to a running host.
v0.2.3
0.2.3 — 2026-09-16
Fixed
positionnow reaches the host: it was parsed and documented but never passed
on the command line, so a fresh profile always opened bottom-right and
Reset positionignored the configured corner. The corner is resolved when
the pill is placed (first show, or reset), so a change applies without moving
a pill you already dragged and without restarting the host.- TUI: the entrypoint hands its slot claim back.
ui.slotreturns the disposer
and the keymap layer is owned by the slot, so a reload or a disable no longer
leaves the four palette commands behind and stacks a second copy. - Server: the command and the tool registration are disposed on shutdown, for
the same reason — a reload no longer stacks a second copy of/popup-*and
popup_mode. - The
mode.requesthandoff is written atomically on the client side and parsed
before the file is removed, so a switch cannot be lost to a half written file. npm run docs:gifrebuildsdocs/typing.gifanddocs/tray.gif, which is
what the README always promised.- Tray: the letter builds at the documented pace again (about two pixels per
250 ms tick; the step rounded up to three for the 22-cell ring).
Changed
@opencode/pluginbumped from^2.0.4to^2.0.5.- Dev:
host/popup.ps1defaults-Markto off, sonpm run preview*and the
foreground dev host match the documented default (the plugin always passed the
option explicitly). - Dev:
npm run preview -- --watch --state <s>continues the cycle from<s>
instead of always resuming atretry, which is what the README promised. - Docs: the state directory files are named in the README (
host.json,
mode.json,mode.request,position.json, and the preview harness's
preview.json), the option ranges are documented, and the stale "500 ms"
comment and the prompt command path were corrected.
v0.2.2
0.2.2 — 2026-09-16
Fixed
- TUI:
/popupno longer lists every command twice. The/completion appends
the server commands to the keymap slashes without deduplicating, so the
commands registered bytui.tsshowed up next to the identical server ones.
The TUI entrypoint is palette-only now (ctrl+p);/popupkeeps the server
commands and the palette keeps the client-side ones.
0.2.1
Added
- TUI entrypoint (
tui.ts):/popup-window,/popup-tray,/popup-toggleand
/popup-resetnow 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.tsthat re-exports it for plugin directories, where a loader resolves a
tuifile next toindex.tsinstead 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 toShow detailsin 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
DoubleAnimationon
the window opacity) instead of repainting from PowerShell on everytypeMs
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.
0.2.0
Added
- The tray icon is the letter
oof the wordmark, built pixel by pixel: a 6x7
grid, a one-cell stroke, pixels appearing clockwise from the top left (about two
every 250 ms), the finished letter holding for half a second before it starts
over. The color follows the state — blue while working, amber on a retry, red on
a failure, violet while a permission is pending — and the letter blinks when it
is waiting on you. markoption to draw the same smallobefore the word on the pill. Off by
default; the mark belongs to the tray icon.- Switch renderers without editing the config or restarting:
/popup-window,
/popup-tray,/popup-toggleand/popup-resetcommands, apopup_modetool
(window | tray | toggle | reset), and a right-click menu on both renderers
(Show in tray/Show as window).resetforgets the choice and goes back to
themodeof the config. - The renderer choice is shared between plugin instances through
mode.jsonin
the state directory, read by every instance on each tick. - The pill position is also saved while it moves, every 2 seconds, on top of the
saves on drag end and close. - Tracing with
OPENCODE_STATUS_POPUP_DEBUG=1: what the plugin sees (events,
phases, host starts) is appended to%TEMP%\opencode-status-popup\plugin.log. - A root
index.ts, because a plugin loaded from a directory is resolved through
index.tsand not through theexportsfield ofpackage.json; a checkout can
now be pointed at directly inplugins. - CI on GitHub Actions (Windows): typecheck, unit tests and the smoke test.
Fixed
- The tray letter now reads as an
oinstead of a square: the corners are closed
and the stroke is one cell thick (2 px at 125% DPI), taller than wide like the
glyph in the wordmark. - Two OpenCode instances with different configurations no longer fight over the
host, each killing the renderer the other one started. - A configured plugin directory loads (through the new root
index.ts), and the
freshly added mark stays off by default on the pill.