Verified local fix · macOS

OpenCode sessions stay OpenCode.

A community OpenCode plugin that makes Vibe Island recognize your OpenCode sessions correctly — even when oh-my-openagent is in the loop. source=opencode, real tty, clean titles, working Ghostty click-to-jump.

Before
source=claude
tty=<none>
title: [Image 1] dashboard:f5ec…
After
source=opencode
tty=/dev/ttys006
title: 这个对话还奇怪

What it fixes

Three problems show up the moment OpenCode + oh-my-openagent + Vibe Island share the same machine. This plugin fixes all of them.

Source mislabel

OpenCode native events report source=opencode instead of being rewritten by Claude hook compatibility.

Ghostty click-to-jump

The plugin walks the process tree to find your opencode attach terminal so Vibe Island can return to the matching tab.

Clean session titles

[Image N] placeholders and <auto-slash-command> scaffolding get filtered before they ever become a notch title.

OMO hook isolation

A small opencode-cc-plugin.json disables the Claude bridge from re-firing inside OpenCode, preventing duplicate or misrouted reports.

Install

One file plus two snippets. Plugin order matters — list this plugin before oh-my-openagent.

1. Drop in the plugin
# ~/.config/opencode/plugins/vibe-island.js
curl -fsSL https://raw.githubusercontent.com/nxxxsooo/opencode-vibe-island-plugin/main/plugin/vibe-island.js \
  -o ~/.config/opencode/plugins/vibe-island.js
2. Wire it into opencode.json
{
  "plugin": [
    "./plugins/vibe-island.js",
    "oh-my-openagent@latest"
  ]
}
3. Disable the Claude bridge inside OpenCode
# ~/.config/opencode/opencode-cc-plugin.json
{
  "disabledHooks": {
    "PreToolUse":       ["vibe-island-bridge"],
    "PostToolUse":      ["vibe-island-bridge"],
    "UserPromptSubmit": ["vibe-island-bridge"],
    "Stop":             ["vibe-island-bridge"],
    "PreCompact":       ["vibe-island-bridge"]
  }
}

Restart OpenCode (kill the server and reattach), send a prompt, then verify with tail -f ~/Library/Logs/VibeIsland/vibe-island.log | grep 'recv event'. You should see source=opencode.