Skip to content

Show active OpenCode watches in the terminal sidebar - #67

Merged
LuckUVeryX merged 1 commit into
mainfrom
feat/watch-sidebar
Dec 1, 2026
Merged

LuckUVeryX merged 1 commit into
mainfrom
feat/watch-sidebar

Conversation

@LuckUVeryX

@LuckUVeryX LuckUVeryX commented Dec 1, 2026 •

Copy link
Copy Markdown
Owner

Why

See which watches can wake an OpenCode session without asking the agent to list them.

What changed

  • Add oc-watches, a TUI plugin with a default-on section for active watches in the current session.
  • Add /watches with session and server-wide views for active and paused watches.
  • Use Effect for watch reads, refresh scheduling, and cancellation when a view closes or changes scope.
  • Package the TUI entry point for independent installation.

Scope

The plugin reads OpenCode's event automations through the connected server. Existing events-mcp watches appear without any changes to the MCP server.

Verification

  • bun run check and bun run test:install with Bun 1.4.4.
  • OpenCode 2.4.3 installed the GitHub package and registered it in an isolated cli.json.
  • Ran the installed plugin in the real TUI. Verified sidebar expiry, session isolation, Tab switching to all sessions, paused watches, the Home default, and the empty sidebar.
  • Paused a fixture watch while its session was open and verified that the sidebar refreshed and hid the watch.
  • Reproduced stalled and malformed list responses in the TUI. Verified that both show an error and the next refresh recovers.

@LuckUVeryX
LuckUVeryX merged commit 9b5e429 into main Dec 1, 2026
6 checks passed
@LuckUVeryX
LuckUVeryX deleted the feat/watch-sidebar branch December 1, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant