opencode-pty icon indicating copy to clipboard operation
opencode-pty copied to clipboard

[Bug]: Plugin not working since OpenCode 1.3.10

Open MartinNeudecker opened this issue 7 months ago • 3 comments

Description

After the update to OpenCode 1.3.10, the opencode-pty plugin no longer seems to work. It is reported as being active, but neither the pty_* tools nor the slash commands are available.

Reproduction Steps

Steps to reproduce the behavior:

  1. Configure plugin in opencode.json
  2. Run opencode
  3. /status to verify opencode-pty is really loaded
  4. No slash commands are available

Expected Behavior

The slash commands and pty_* tools to be available.

Actual Behavior

Slashcommands and

Environment

  • OS: macos 26
  • OpenCode Version: 1.3.10
  • Plugin Version: 3.2
  • Bun Version: 1.3.10

OpenCode Configuration

opencode.json (sanitized)
{
  "$schema": "https://opencode.ai/config.json",
  "plugin": [
    "opencode-pty",
    "@tarquinen/opencode-smart-title@latest",
    "@plannotator/opencode@latest",
    "superpowers@git+https://github.com/obra/superpowers.git",
    "oh-my-opencode-slim"
  ],
  "agent": {
    "explore": {
      "disable": true
    },
    "general": {
      "disable": true
    }
  }
}

Debug Logs

Click to expand debug logs

To get debug logs, run OpenCode with debug logging enabled:

opencode --log-level DEBUG --print-logs

Or check log files in ~/.local/share/opencode/logs/.

opencode --log-level DEBUG --print-logs
INFO  2026-04-07T10:40:40 +189ms service=default version=1.3.10 args=["--log-level","DEBUG","--print-logs"] opencode
INFO  2026-04-07T10:40:40 +0ms service=default directory=/Users/Martin.Neudecker/project creating instance
INFO  2026-04-07T10:40:40 +3ms service=project directory=/Users/Martin.Neudecker/project fromDirectory
INFO  2026-04-07T10:40:41 +27ms service=db path=/Users/Martin.Neudecker/.local/share/opencode/opencode.db opening database
INFO  2026-04-07T10:40:41 +6ms service=db count=10 mode=bundled applying migrations
INFO  2026-04-07T10:40:41 +12ms service=config path=/Users/Martin.Neudecker/.config/opencode/config.json loading
INFO  2026-04-07T10:40:41 +2ms service=config path=/Users/Martin.Neudecker/.config/opencode/opencode.json loading
INFO  2026-04-07T10:40:41 +0ms service=config path=/Users/Martin.Neudecker/.config/opencode/opencode.jsonc loading

Additional Context

I already tried forcing a re-install by deleting ~/.cache/opencode. I also tried deinstalling all other plugins, still the same.

MartinNeudecker avatar Apr 07 '26 10:04 MartinNeudecker

Hello, this because the new changes introduced in opencode>=1.3.13 so you have two available options:

  1. upgrade opencode version to latest version if you can.
  2. pin the opencode-pty plugin to your config to the 0.2.3 versions like so ["[email protected]"] this was last plugin patch before the new opencode versions.

shekohex avatar Apr 07 '26 11:04 shekohex

Thanks for your quick response! With your information I figured out that I was not using the official anomalyco/tap/opencode homebrew formula but some other from Cellar which was behind several versions.

But still, even with opencode 1.3.17, the slash commands and tools are not available. I deleted the .cache/opencode folder to make sure the plugins are installed cleanly after the upgrade.

The ~/.cache/opencode/node_modules folder is also no longer there now, so how do I verify that opencode-pty is actually properly installed?

Any tips for troubleshooting?

MartinNeudecker avatar Apr 07 '26 13:04 MartinNeudecker

I found the issue - sorry to have bothered you, turns out it was a opencodes fault: https://github.com/anomalyco/opencode/issues/21098

TLDR: OpenCode currently fails to install plugins behind a proxy; running no_proxy="registry.npmjs.org" opencode fixes this.

MartinNeudecker avatar Apr 09 '26 08:04 MartinNeudecker