Skip to content

fix(cli): accept /s/ share URLs in import - #36396

Closed
AayushMainali-Github wants to merge 2 commits into
anomalyco:devfrom
AayushMainali-Github:share-url-import
Closed

fix(cli): accept /s/ share URLs in import#36396
AayushMainali-Github wants to merge 2 commits into
anomalyco:devfrom
AayushMainali-Github:share-url-import

Conversation

@AayushMainali-Github

Copy link
Copy Markdown

Issue for this PR

Closes#36395

Type of change

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

What does this PR do?

opencode import only accepted /share/<id> URLs. Share links in GitHub PR bodies still use /s/<id>, and opencode pr tries to import those, so import failed. parseShareUrl now accepts both /share/ and /s/. Updated the unit tests and the invalid-URL hint.

How did you verify your code works?

Ran bun test test/cli/import.test.ts in packages/opencode.

Screenshots / recordings

N/A

Checklist

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

GitHub PR session links still use /s/<id>, but parseShareUrl only
accepted /share/<id>, so opencode pr import failed on those URLs.
CreatorGhost added a commit to CreatorGhost/TheCode that referenced this pull request Jul 12, 2026
CreatorGhost added a commit to CreatorGhost/TheCode that referenced this pull request Jul 12, 2026
CreatorGhost added a commit to CreatorGhost/TheCode that referenced this pull request Jul 12, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

opencode import rejects /s/ share URLs that GitHub PRs still use

1 participant

@AayushMainali-Github