Hang on every startup #4468

Closed
opened 2026-02-16 17:43:52 -05:00 by yindo · 5 comments
Owner

Originally created by @renyangang on GitHub (Jan 8, 2026).

Originally assigned to: @rekram1-node on GitHub.

Question

After installing the oh-my-opencode plugin, every time I start opencode, it hangs for a while. When I check the processes, it always executes /root/.opencode/bin/opencode add --force --exact --cwd /root/.cache/opencode oh-my-opencode@latest. Is there a way to configure to bypass this step

Originally created by @renyangang on GitHub (Jan 8, 2026). Originally assigned to: @rekram1-node on GitHub. ### Question After installing the oh-my-opencode plugin, every time I start opencode, it hangs for a while. When I check the processes, it always executes /root/.opencode/bin/opencode add --force --exact --cwd /root/.cache/opencode oh-my-opencode@latest. Is there a way to configure to bypass this step
yindo added the perf label 2026-02-16 17:43:52 -05:00
yindo closed this issue 2026-02-16 17:43:52 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 8, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #6765: Infinite installation loop of @aws-sdk/credential-providers on startup - similar root cause where version comparison (specific version vs 'latest') triggers unnecessary reinstalls
  • #6774: Plugins with implied latest version don't auto-update on restart - exact same pattern where plugins without explicit versions cause repeated installation attempts
  • #4682: opencode get stuck when bun add get stuck - related issue where bun add operations freeze startup

These issues share the same core problem: when plugins or packages are installed without explicit versions or the version tracking gets out of sync, OpenCode attempts to reinstall them on every startup, causing hangs during the opencode add --force command.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 8, 2026): This issue might be a duplicate of existing issues. Please check: - #6765: Infinite installation loop of @aws-sdk/credential-providers on startup - similar root cause where version comparison (specific version vs 'latest') triggers unnecessary reinstalls - #6774: Plugins with implied latest version don't auto-update on restart - exact same pattern where plugins without explicit versions cause repeated installation attempts - #4682: opencode get stuck when `bun add` get stuck - related issue where `bun add` operations freeze startup These issues share the same core problem: when plugins or packages are installed without explicit versions or the version tracking gets out of sync, OpenCode attempts to reinstall them on every startup, causing hangs during the `opencode add --force` command. Feel free to ignore if none of these address your specific case.
Author
Owner

@goniz commented on GitHub (Jan 9, 2026):

Isn't this issue belongs to the https://github.com/code-yeongyu/oh-my-opencode repo?

@goniz commented on GitHub (Jan 9, 2026): Isn't this issue belongs to the https://github.com/code-yeongyu/oh-my-opencode repo?
Author
Owner

@gavar commented on GitHub (Jan 15, 2026):

@goniz not sure, it seems to be part of the opencode logic itself https://github.com/anomalyco/opencode/blob/af2a09940c5b411c27f72c039a0351a3c19efd02/packages/opencode/src/bun/index.ts#L83-L93

@gavar commented on GitHub (Jan 15, 2026): @goniz not sure, it seems to be part of the opencode logic itself https://github.com/anomalyco/opencode/blob/af2a09940c5b411c27f72c039a0351a3c19efd02/packages/opencode/src/bun/index.ts#L83-L93
Author
Owner

@rekram1-node commented on GitHub (Jan 15, 2026):

Oh my opencode has a big blocking install that hangs for a while, if you are using omo please open issue in that repo

@rekram1-node commented on GitHub (Jan 15, 2026): Oh my opencode has a big blocking install that hangs for a while, if you are using omo please open issue in that repo
Author
Owner

@renyangang commented on GitHub (Jan 15, 2026):

By configuring a fixed version number in the opencode.json file, this issue can be avoided
"plugin": [
"oh-my-opencode@2.14.0"
],

@renyangang commented on GitHub (Jan 15, 2026): By configuring a fixed version number in the opencode.json file, this issue can be avoided "plugin": [ "oh-my-opencode@2.14.0" ],
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4468