Skip to content

[Bug]: opencode run doesn't send telemetry #92

Closed

Description

@LeanderBlume

Description

Running opencode with opencode run "foo" doesn't seem to send any telemetry. Running opencode --prompt "foo" instead works. I can't find anything suspicious in the logs, the plugin starts up fine and the endpoint is reported to be reachable.

Workaround: Using opencode serve and then opencode run with --attach sends telemetry as expected.

I'm aware of an older issue concerning opencode run and opencode serve, but there the plugin wasn't even loading correctly. That doesn't seem to be the case here.

Steps to reproduce

  1. Set 'OPENCODE_ENABLE_TELEMETRY' to 1 and set the endpoint
  2. Run 'opencode run tell me a joke'
  3. Observe incoming telemetry or lack thereof.

Expected behavior

opencode run sends telemetry just like TUI mode.

Actual behavior

No telemetry was sent.

Plugin version

@latest

Configuration

Relevant log output

Checklist

  • I have searched existing issues to ensure this hasn't been reported
  • I have redacted any sensitive information (API keys, tokens, etc.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions