fix(app): accept uppercase deep-link schemes by sdivyanshu90 · Pull Request #47582 · anomalyco/opencode · GitHub
Skip to content

fix(app): accept uppercase deep-link schemes - #47582

Open
sdivyanshu90 wants to merge 1 commit into
anomalyco:devfrom
sdivyanshu90:deep-link-case
Open

fix(app): accept uppercase deep-link schemes#47582
sdivyanshu90 wants to merge 1 commit into
anomalyco:devfrom
sdivyanshu90:deep-link-case

Conversation

@sdivyanshu90

Copy link
Copy Markdown

Issue for this PR

Closes #47581

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

The deep-link parser rejected uppercase and mixed-case opencode schemes through a raw case-sensitive prefix check, even though URI schemes are case-insensitive. This change parses the URL first and validates its normalized protocol, preserving rejection of non-OpenCode URLs. Regression coverage includes both open-project and new-session links.

How did you verify your code works?

From packages/app at reduced process priority:

  • bun test src/pages/layout/helpers.test.ts — 28 tests passed
  • bun typecheck — passed

Screenshots / recordings

Not applicable. This changes deep-link parsing logic without changing the rendered UI.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@sdivyanshu90

Copy link
Copy Markdown
Author

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.

Uppercase OpenCode deep-link schemes are rejected

1 participant