anomalyco / anomalyco/opencode

Uppercase OpenCode deep-link schemes are rejected

Open
#47,581 1 comment 0 reactions 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Sep 6, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

OpenCode rejects otherwise valid deep links when the opencode URI scheme contains uppercase or mixed-case letters. Both open-project and new-session links are affected. URI schemes are case-insensitive under RFC 3986, and the URL parser accepts and normalizes these inputs, but the app performs a case-sensitive startsWith("opencode://") check before parsing.

This means a launcher or integration that emits OPENCODE:// cannot open a project or start a session even though it identifies the same scheme as opencode://. The parser should validate the parsed URL protocol case-insensitively instead of checking the raw prefix.

Reference: https://www.rfc-editor.org/rfc/rfc3986.html#section-3.1

Plugins

N/A

OpenCode version

N/A (reproduced in the shared deep-link parser)

Steps to reproduce
  1. Evaluate parseDeepLink("opencode://open-project?directory=/tmp/demo"); it returns /tmp/demo.
  2. Evaluate parseDeepLink("OPENCODE://open-project?directory=/tmp/demo").
  3. Observe that the equivalent uppercase link returns undefined.
  4. The same rejection occurs for OpenCode://new-session?directory=/tmp/demo.

Expected behavior: scheme casing should not change the parsed project directory or new-session request.

Screenshot and/or share link

Not provided; the parser calls above are the deterministic reproduction.

Operating System

All

Terminal

N/A

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.