Releases: psh4607/opencode-agent-sidebar
v0.2.4 — fix phantom 'Done 1230m' rows on rescan
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 {} +
```
v0.2.3 — freeze elapsed timer + 3s retention
Fixes
- Freeze elapsed timer for completed entries. A "Done" entry was visually behaving like it was still running because
completeEntryre-stampedcompletedAton every 1s reactive tick (the persistent[ALL BACKGROUND TASKS COMPLETE]system reminder text was re-matched on eachscanSessionStatepass). NowcompletedAtis 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
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 insidesystem-remindertext parts that have emptytime.start/time.end
fields. The previousif (completedAt)guard insidescanSessionStatesilently
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 livehandlePartevent path.
Upgrade
opencode plugin update github:psh4607/opencode-agent-sidebar#v0.2.2Or 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
Added
- Click-to-toggle on the
▶ / ▼ Agentsheader row. Left-clicking anywhere on the header line now expands or collapses the panel (parity with the built-in MCP panel). The existing/agents-toggleslash command andCtrl+x akeybind 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
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
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"]
}