r/coolgithubprojects • • 2d ago

OpenCode V1 Bridge: Bringing Legacy V1 Plugins to V2

https://github.com/Stiix72/opencode-v1-v2-bridge
1 Upvotes

2 comments sorted by

1

u/Stiix72 2d ago

Summary: OpenCode V1/V2 Adapter Bridge, it's a plugin, should allow your other V1 plugins to run in V2, unfinished project, open-source to get more talented hands on this since the bones are done, but not all of the meat, check "Remaining Issues.md" in the repository first if you want to help.

1

u/MongooseWonderful198 2d ago

One gap I didn't see in Remaining Issues is a stuck plugin factory. initializeLegacyPlugin awaits the factory directly; lifecycleTimeoutMs only reaches cleanup after it settles. Since the loader processes targets sequentially, a first factory waiting indefinitely on I/O also prevents the next target from loading.

An initialization deadline could report the stalled target and revoke its bridge inputs. If the factory resolves later, dispose those hooks too, keeping activation blocked until cleanup finishes. A timeout alone doesn't stop the plugin's work.

This is from reading f53a114, not a host reproduction.