fix(opencode): reuse local server for review flows#567
Merged
backnotprop merged 2 commits intobacknotprop:mainfrom Apr 15, 2026
Merged
fix(opencode): reuse local server for review flows#567backnotprop merged 2 commits intobacknotprop:mainfrom
backnotprop merged 2 commits intobacknotprop:mainfrom
Conversation
Try the default local OpenCode server before spawning a new one, and resolve bundled assets and command paths correctly when the plugin is loaded from source during local testing.
Owner
|
@oorestisime could you do the typecheck fixes? lmk if they are a pain |
Contributor
Author
Yeap done. this was due to changing the opencode client type to be more honest with the sdk. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
127.0.0.1:4096before spawning a newopencode serve. this should fix OpenCode AI tab: spawns newopencode serveinstead of reusing existing server (port conflict) #513 and OpenCode AI tab: responses not rendering (empty bubbles) #514plannotator.htmlandreview-editor.htmlcorrectlypostinstallcommand paths to use the documentedplugins/andcommands/directoriesThe last 2 items were needed to fully test the
./tests/manual/local/sandbox-opencode.sh --keepas otherwise i wasnt hitting the right bundled files. I also had to remove it from my global opencode config.What I explored
opencode serveand collided with an existing local serverMain issue
pgrep -af opencode. So on subsequent review commands the server was still running and hence the port conflict.Final approach
Open questions