Skip to content

Title: Plugin @warp-dot-dev/opencode-warp not generating OSC 777 notifications #17

@valorisa

Description

@valorisa

Environment

  • OS: macOS (Apple Silicon M2)
  • Warp version: [Get exact version from Warp > About Warp]
  • OpenCode version: 1.14.30
  • Plugin @warp-dot-dev/opencode-warp: 0.1.5
  • Shell: zsh

Description

The @warp-dot-dev/opencode-warp plugin initializes correctly (log shows Warp plugin initialized), but it doesn't appear to send notifications via OSC 777 escape sequences when OpenCode events are triggered.

Timing issue note: The Warp plugin initialized log appears AFTER session.created event is already published, which might cause the plugin to miss early events.

Expected Behavior

  • session.created notification on OpenCode startup
  • session.idle notification when a task completes (with summary)
  • permission.asked notification when a bash permission is requested

Observed Behavior

No Warp notifications appear, neither in the Warp notification center nor as system notifications.

OpenCode Logs (excerpts)

INFO  service=opencode-warp Warp plugin initialized
INFO  service=bus type=session.created publishing
INFO  service=bus type=session.idle publishing

No errors, but no activity related to sending OSC 777 notifications.

Reproduction Steps

  1. Install the plugin:
    npm install -g @warp-dot-dev/opencode-warp
  2. Add it to config:
    opencode plugin @warp-dot-dev/opencode-warp
  3. Launch OpenCode in Warp
  4. Execute a simple task: "say hello to me"
  5. Observe that no Warp notification appears when the task completes
  6. Test OSC 777 manually in Warp:
    echo -e "\\033]777;warp:notification;{\"title\":\"Test\",\"message\":\"Test\"}\\033\\\\"
    (Nothing displays, possibly zsh syntax issue or OSC 777 support problem)

opencode.json config

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["@warp-dot-dev/opencode-warp"],
  "permission": {
    "bash": {
      "kill*": "ask",
      "pkill*": "ask",
      "killall*": "ask"
    }
  }
}

Additional Notes

  • Native Warp integration (vertical tabs, code review, rich input) works perfectly.
  • Manual OSC 777 test with echo -e in Warp displays nothing.
  • The plugin loads without errors but doesn't seem to react to OpenCode bus events.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions