fix(opencode): make ACP resource text sourcing cross-platform by rekram1-node · Pull Request #33534 · anomalyco/opencode · GitHub
Skip to content

fix(opencode): make ACP resource text sourcing cross-platform#33534

Merged
rekram1-node merged 3 commits into
devfrom
fix-acp-content
Jun 23, 2026
Merged

fix(opencode): make ACP resource text sourcing cross-platform#33534
rekram1-node merged 3 commits into
devfrom
fix-acp-content

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Fixes Windows test failure in test/acp/content.test.ts.

  • fileURLToPath('file:///tmp/...') throws ERR_INVALID_FILE_URL_PATH on Windows, causing fallback to raw URI
  • Add pathname fallback with decodeURIComponent and backslash normalization
  • Make test assertions platform-agnostic

See failing run: https://github.com/anomalyco/opencode/actions/runs/28041800901/job/83009662148

Align MCP tool naming with codex/claude-code conventions.
Tool names are now mcp__<sanitizedServer>__<sanitizedTool>
instead of <server>_<tool>.

Updates test expectations accordingly.
# Conflicts:
#	packages/opencode/src/acp/content.ts
#	packages/opencode/test/acp/content.test.ts
@rekram1-node rekram1-node merged commit 5152150 into dev Jun 23, 2026
8 checks passed
@rekram1-node rekram1-node deleted the fix-acp-content branch June 23, 2026 17:55
BenGu3 pushed a commit to BenGu3/opencode that referenced this pull request Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant