Skip to content

Releases: psh4607/opencode-agent-sidebar

v0.2.4 — fix phantom 'Done 1230m' rows on rescan

08 May 07:13
001e998

Choose a tag to compare

Fixes

  • No phantom rows on plugin load / TUI restart. After loading the plugin or restarting the TUI, the sidebar briefly displayed rows like `explore Done 1230m 35s` for sub-agents that ran in earlier turns. Root cause: `scanSessionState` re-walked every message part, and a background tool part already in `status: completed` was resurrected with `startedAt = part.time.start` (hours ago), then `completedAt = Date.now()` got stamped on the next tick by the system-reminder text matcher — yielding a 1200+ minute elapsed time. v0.2.3 froze re-stamping but the very first stamp itself was bogus on rescans.
  • This release closes that hole: `upsertToolPart` and `handleBackgroundStatusText` no longer create entries when there's no in-flight tracking — live launches always go `pending → running → completed`, so a `completed` observation with no prior entry is, by construction, a history replay.

Compatibility

  • Requires OpenCode `>= 1.14.39` (unchanged from 0.2.x).

Install / Update

Pin to this tag in your `opencode.json`:

```json
{
"plugin": [
"github:psh4607/opencode-agent-sidebar#v0.2.4"
]
}
```

If you were tracking `main` (no tag suffix), clear the cache and restart:

```bash
find ~/.cache/opencode/packages -maxdepth 1 -name 'psh4607' -exec rm -rf {} +
```

PR: #2 · Follow-up to #1 (v0.2.3)

v0.2.3 — freeze elapsed timer + 3s retention

08 May 05:13
5a35e15

Choose a tag to compare

Fixes

  • Freeze elapsed timer for completed entries. A "Done" entry was visually behaving like it was still running because completeEntry re-stamped completedAt on every 1s reactive tick (the persistent [ALL BACKGROUND TASKS COMPLETE] system reminder text was re-matched on each scanSessionState pass). Now completedAt is stamped only on the first transition to a terminal state.
  • Shorten retention 10s → 3s. Completed rows fade faster.

Compatibility

  • Requires OpenCode >= 1.14.39 (unchanged from 0.2.x).

Install / Update

Pin to this tag in your opencode.json:

```json
{
"plugin": [
"github:psh4607/opencode-agent-sidebar#v0.2.3"
]
}
```

If you were tracking `main` (no tag suffix), clear the cache and restart:

```bash
find ~/.cache/opencode/packages -maxdepth 1 -name 'psh4607' -exec rm -rf {} +
```

PR: #1

v0.2.2 — fix stale Running entries after TUI restart

07 May 13:48

Choose a tag to compare

Fixed

  • Stale "Running" entries no longer linger in the sidebar after a TUI restart.
    Background-task status markers ([BACKGROUND TASK COMPLETED], [ALL BACKGROUND TASKS COMPLETE])
    live inside system-reminder text parts that have empty time.start / time.end
    fields. The previous if (completedAt) guard inside scanSessionState silently
    skipped those parts on rescan, leaving completed background entries stuck as
    Running forever. The guard is removed and the timestamp falls back to
    Date.now(), matching the behaviour of the live handlePart event path.

Upgrade

opencode plugin update github:psh4607/opencode-agent-sidebar#v0.2.2

Or pin in ~/.config/opencode/opencode.json:

"plugin": ["github:psh4607/opencode-agent-sidebar#v0.2.2"]

Restart OpenCode TUI for the fix to take effect.

v0.2.1

07 May 10:30

Choose a tag to compare

Added

  • Click-to-toggle on the ▶ / ▼ Agents header row. Left-clicking anywhere on the header line now expands or collapses the panel (parity with the built-in MCP panel). The existing /agents-toggle slash command and Ctrl+x a keybind continue to work.

Fixed

  • Header row no longer leaves an inverted-text selection highlight after clicking. The header text is now selectable: false, so the mouse-down that triggers the toggle does not start a stray text selection.

Full Changelog: v0.2.0...v0.2.1

v0.2.0 — Update notifier

07 May 10:14

Choose a tag to compare

Adds an in-plugin update notifier in the sidebar header.

Once a day, the plugin checks the GitHub Releases API for the latest tag. If a newer version exists, the header gets a [⬆ vX.Y.Z available] suffix. Read-only — never self-updates the plugin code or cache. Network failures are silent (no toasts, no log spam).

Upgrade from v0.1.0:

If you pinned to a tag, just bump the suffix:

- "github:psh4607/opencode-agent-sidebar#v0.1.0"
+ "github:psh4607/opencode-agent-sidebar#v0.2.0"

Otherwise see Updating in the README.

Install (recommended, tag-pinned):

{
  "plugin": ["github:psh4607/opencode-agent-sidebar#v0.2.0"]
}

v0.1.0 — Initial release

07 May 10:07

Choose a tag to compare

First public release. Live elapsed timer, foreground/background separation, collapsible Agents panel. See README for install + features.

Install (recommended, tag-pinned):

{
  "plugin": ["github:psh4607/opencode-agent-sidebar#v0.1.0"]
}