Repository navigation
test(opencode): make plugin path assertions portable - #5562
Merged
ZaynJarvis merged 1 commit intoOct 12, 2026
Merged
Conversation
ZaynJarvis
approved these changes
Oct 12, 2026
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.
Description
Running the OpenCode plugin tests on Windows fails five assertions because they expect POSIX absolute paths or
/separators. The runtime correctly resolves native paths. Build the expected MCP/skills paths withnode:path.resolveand allow either separator in the proxy-entrypoint suffix checks, preserving the existing configuration and hook assertions.Human Involvement
AI-assisted implementation, automated local validation and an independent AI-agent diff review. No independent human code review is claimed.
Related Issue
Found while validating the OpenCode plugin on Windows. This is a standalone correction to tests already failing on current main; it is independent of the cleanup implementation in #5497.
Type of Change
Changes Made
servers/mcp-proxy.mjssuffix requirement.Testing
Windows, Node.js 24.21.0, starting from official main
df32bf6e50a40843438f9491a26069ca4bd08f1f:Before: full OpenCode suite, 50 tests; 45 passed, the five path assertions failed.
After: the same suite, 50 passed, zero failures or skips.
node examples/memory-plugin-shared/sync.mjsnode --test examples/opencode-plugin/tests/*.test.mjsgit diff --checkExisting unit tests pass locally with my changes
Tested on Windows
Tested on Linux
Tested on macOS
Checklist
Production source, plugin versions and generated runtime are unchanged. The POSIX expected paths retain their previous values by inspection; Linux and macOS were not run locally.