Skip to content

opencode crash when opencode-helicone-session plugin is added in the configuration file and helicone provider is selected. #1

Description

@clescot

when opencode.json (v1.151)
contains :

 "plugin": [
    "opencode-helicone-session"
  ]`
and when i want to connect to helicone by selectionning it in the provider list,
 it throws : 
[17:30:55] [ERROR] Error: undefined is not an object (evaluating 'method.type')
    TypeError: undefined is not an object (evaluating 'method.type')
        at onSelect (src/cli/cmd/tui/component/dialog-provider.tsx:70:15)
        at onSelect (src/cli/cmd/tui/component/dialog-provider.tsx:48:26)
        at <anonymous> (src/cli/cmd/tui/ui/dialog-select.tsx:133:37)
        at emitWithPriority (../../node_modules/.bun/@opentui+core@0.1.77+2b53f2de03b5b2e3/node_modules/@opentui/core/index-h3dbfsf6.js:2500:11)
        at processInput (../../node_modules/.bun/@opentui+core@0.1.77+2b53f2de03b5b2e3/node_modules/@opentui/core/index-h3dbfsf6.js:2460:16)
        at <anonymous> (../../node_modules/.bun/@opentui+core@0.1.77+2b53f2de03b5b2e3/node_modules/@opentui/core/index-h3dbfsf6.js:16318:13)
        at emit (node:events:95:22)
        at process (../../node_modules/.bun/@opentui+core@0.1.77+2b53f2de03b5b2e3/node_modules/@opentui/core/index-h3dbfsf6.js:6146:12)
        at <anonymous> (../../node_modules/.bun/@opentui+core@0.1.77+2b53f2de03b5b2e3/node_modules/@opentui/core/index-h3dbfsf6.js:16253:23)
        at emit (node:events:95:22)


when i remove the plugin, all is fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions