Skip to content

@tarquinen/opencode-dcp@latest significantly slows down OpenCode startup (~2–3s); pinning to a fixed version doesn’t help — any optimization? #306

@Syh1906

Description

@Syh1906

Problem

After enabling/loading @tarquinen/opencode-dcp@latest, OpenCode startup becomes noticeably slower. Compared to running OpenCode without this package, startup time increases by at least ~2–3 seconds, which significantly impacts the user experience.

Environment

  • OpenCode + oh-my-opencode

Steps to Reproduce

  1. Enable/load @tarquinen/opencode-dcp@latest in the plugin configuration
  2. Start OpenCode
  3. Observe that startup is ~2–3 seconds slower than when the package is not loaded

What I Tried

  • Installed a pinned global version and configured the plugin to use a fixed version (e.g. @tarquinen/opencode-dcp@1.2.6)
  • Result: no meaningful improvement — startup is still significantly slower

Expected Behavior

I’m wondering if there’s any way to optimize this, for example:

  • Can initialization be deferred (lazy-loaded) so it doesn’t block OpenCode startup?
  • Is there any configuration to reduce work done during startup?
  • Any recommended way to profile/diagnose what’s causing the slowdown (logs, debug flags, performance tracing)?

Additional Info

If helpful, I can provide:

  • startup logs / debug logs
  • OpenCode version, Node.js version, OS details
  • more precise timing comparisons

Thanks a lot for maintaining this project and for any guidance!

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