Repository navigation
chore(opencode): move the OpenCode pin and supported floor to 2.4.2 - #497
Merged
Merged
Conversation
Comment on lines
+56
to
+57
| const { data } = await client.api.plugin.list() | ||
| if (data.length > 0) return |
Contributor
There was a problem hiding this comment.
Weak readiness check
The helper returns as soon as plugin.list reports any plugin at all. The stated goal is to wait until the integration catalog is complete, and one loaded plugin does not prove that the auth or provider plugins these tests rely on have finished. The tests can still be flaky on slow runners. Consider waiting for the specific plugins or providers each test needs (for example anthropic, azure, or OAuth-capable integrations), or for a load-complete status if plugin.list exposes one.
Contributor
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
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.
User description
Summary
@opencode/client,@opencode/schema,@opencode/plugin,@opencode/theme),OPENCODE_PINNED_VERSION,OPENCODE_MIN_VERSION, the Dockerfile defaults and the CI download to OpenCode 2.4.2. The supported range becomes>=2.4.2 <3.0.0.ocm-cli@opencode/themepeer to>=2.4.2and update its compatibility notes.plugin.listto report loaded plugins before exercising routes, as upstream recommends for one-shot clients; their assertions are unchanged.Tests
Backend, frontend and ocm-cli typecheck and lint pass. Frontend tests pass (4127). Backend tests pass except the sandbox runtime and sandbox settings suites, which need Linux
/procand fail on macOS onmainas well. The real-binary OAuth and provider suites pass against a local OpenCode 2.4.2.PR Type
Enhancement, Tests
Description
Move OpenCode pin and supported floor to 2.4.2
Update catalog packages, Dockerfile defaults, CI download
Add
waitForOpenCodePluginsLoadedhelper for real-binary testsRefresh version fixtures and ocm-cli peer to 2.4.2
Diagram Walkthrough
File Walkthrough
1 files
Bump pinned and minimum OpenCode version11 files
Add polling helper waiting for loaded pluginsWait for plugins before real-binary OAuth testReplace integration list call with plugin waitUse pinned version constant in helper testsUpdate default server info versionUse version constants in wiring testsRefresh settings route version fixturesUpdate installer fixtures and range assertionsUpdate managed server version expectationsAssert new pin, floor and rangeUpdate supported version probe fixtures2 files
Move OpenCode catalog entries to 2.4.2Raise theme peer dependency floor2 files
Update OpenCode install version argumentsDownload OpenCode 2.4.2 in CI2 files
Document new OpenCode 2.4.2 requirementPoint palette attribution at v2.4.2 tag