Pr 140 bypass sdk#161
Merged
Merged
Conversation
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Collaborator
Author
|
@tickernelz @x-Spartacus, could you review the changes carefully |
Owner
|
Merged into |
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
Follow-up to merged #140. PR #140 fixed the first layer of issue #110 by bypassing brittle OpenCode v2 SDK session helper methods and calling the raw session HTTP endpoints directly.
This PR fixes the next runtime layer: in the OpenCode plugin host, those raw HTTP calls still should not rely on plain/global
fetchassumptions. They need to use OpenCode’s host SDK transport (fetch/baseUrl) when available.What #140 fixed
#140 replaced calls through generated SDK session helpers such as:
client.session.createclient.session.promptclient.session.deletewith direct calls to the OpenCode server endpoints:
POST /sessionPOST /session/{id}/messageDELETE /session/{id}That addressed SDK method-shape incompatibility across OpenCode/SDK versions.
Why this follow-up is still needed
After #140 was merged, we tested fresh
origin/mainat6b564a0through the real plugin surface:mainorigin/main/home/peshkov/src/opencode-memautoCaptureEnabled: trueopencodeProvider: openaiopencodeModel: gpt-5.5bun installbun run buildMain still failed at runtime:
So #140 fixed SDK helper incompatibility, but not the plugin-host transport failure.
Changes in this PR
Verification
On this branch:
Result:
198 pass
0 fail
Also manually verified earlier that the fixed branch can persist auto-capture memory:
Auto-capture memory persisted