Skip to content

Local Plugin not working with opencode serve (web ui), only works with Terminal UI (TUI) #25039

@CoderTom314

Description

@CoderTom314

Description

@daytona/opencode depends on @daytona/sdk @daytona/api-client @daytona/toolbox-api-client
simultaneously, @daytona/sdk also depends on @daytona/api-client @daytona/toolbox-api-client

because i modified these 4 packages for my local testing, and i have no way of publishing to npm, i bundled the opencode plugin using esbuild

NODE_PATH=./node_modules ./node_modules/.bin/esbuild index.js \
  --bundle \
  --platform=node \
  --format=cjs \
  --alias:@daytona/api-client=./node_modules/@daytona/api-client \
  --alias:@daytona/toolbox-api-client=./node_modules/@daytona/toolbox-api-client \
  --alias:@daytona/sdk=./node_modules/@daytona/sdk \
  --outfile=dist/index.js

then installed the plugin using opencode plugin --global ~/daytona-plugin

opencode@c4dd849dfc57:~/daytona-plugin$ tree -a
.
|-- .opencode
| -- plugin | -- index.js
|-- README.md
`-- package.json

3 directories, 3 files

The local plugin works for terminal ui (TUI), which would trigger writing to daytona.log

opencode@c4dd849dfc57:~/.local/share/opencode/log$ cat daytona.log
[2026-04-30T01:38:30.789Z] [INFO] OpenCode started with Daytona plugin

However, the plugin seems not to activate at all using opencode serve. There is no logging to daytona.log using opencode serve

The bundled plugin is attached
daytona-plugin.tar.gz

(In contrast, installing the original version of the plugin from npm by opencode plugin --global @daytona/opencode works for both tui and webui (opencode serve))

Plugins

local modified version of @daytona/opencode

OpenCode version

1.14.30

Steps to reproduce

  1. Unzip to ~ (resulting ~/daytona-plugin)
  2. cd ~/daytona-plugin
  3. opencode plugin --global $(pwd)
  4. opencode (tui)
  5. check ~/.local/share/opencode/logs whether daytona.log with entry OpenCode started with Daytona plugin (should be created by tui)
  6. retry by opencode serve
  7. check ~/.local/share/opencode/logs again, NO NEW ENTRIES

Screenshot and/or share link

No response

Operating System

debian trixie

Terminal

windows terminal

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions