GitHub Action share link uses legacy domain/path #6671

Open
opened 2026-02-16 18:04:55 -05:00 by yindo · 2 comments
Owner

Originally created by @offlinehacker on GitHub (Jan 18, 2026).

Originally assigned to: @rekram1-node on GitHub.

Problem

The GitHub Action outputs a share link like https://opencode.ai/s/<id>, but the expected share link is https://opncd.ai/share/<id>. This affects the link printed in logs and the link embedded in action comments.

Current behavior

  • Share link shown as https://opencode.ai/s/<id>
  • Action builds the URL from a hardcoded base and /s/ path

Expected behavior

  • Action should use the share URL returned by the share API (so the output matches the backend), which should resolve to https://opncd.ai/share/<id>

Location

  • GitHub Action code: github/index.ts (useShareUrl() and string formatting for output/footer)

Notes

  • OPENCODE_CONFIG_CONTENT already allows overriding enterprise.url, so no new action input is required for base URL overrides.

Environment

  • Repo: anomalyco/opencode
  • Branch: dev
  • Date: 2026-01-18
Originally created by @offlinehacker on GitHub (Jan 18, 2026). Originally assigned to: @rekram1-node on GitHub. ## Problem The GitHub Action outputs a share link like `https://opencode.ai/s/<id>`, but the expected share link is `https://opncd.ai/share/<id>`. This affects the link printed in logs and the link embedded in action comments. ## Current behavior - Share link shown as `https://opencode.ai/s/<id>` - Action builds the URL from a hardcoded base and `/s/` path ## Expected behavior - Action should use the share URL returned by the share API (so the output matches the backend), which should resolve to `https://opncd.ai/share/<id>` ## Location - GitHub Action code: `github/index.ts` (`useShareUrl()` and string formatting for output/footer) ## Notes - `OPENCODE_CONFIG_CONTENT` already allows overriding `enterprise.url`, so no new action input is required for base URL overrides. ## Environment - Repo: `anomalyco/opencode` - Branch: `dev` - Date: 2026-01-18
Author
Owner

@offlinehacker commented on GitHub (Jan 18, 2026):

This should fix it: https://github.com/anomalyco/opencode/pull/9216

@offlinehacker commented on GitHub (Jan 18, 2026): This should fix it: https://github.com/anomalyco/opencode/pull/9216
Author
Owner

@socrabytes commented on GitHub (Jan 19, 2026):

I’m hitting the same issue with the GitHub Action in private repo.

  • Action: anomalyco/opencode/github@latest
  • Trigger: issue_comment (/opencode)
  • Input: share: true

The bot comment includes a link like:
[opencode session](https://opencode.ai/s/<id>)

Opening it returns:
{"status":404,"message":"Cannot find any route matching [GET] https://opencode.ai/s/<id>"}

I don’t have an opencode.json in this repo yet, so this is just the default Action behavior + share: true.


Side note (possibly unrelated, but confusing while debugging):

  • The Share docs config examples uses:
    • $schema: https://opncd.ai/config.json
  • Config docs say the schema is defined at:
    • https://opencode.ai/config.json
@socrabytes commented on GitHub (Jan 19, 2026): I’m hitting the same issue with the GitHub Action in private repo. - Action: anomalyco/opencode/github@latest - Trigger: issue_comment (/opencode) - Input: share: true The bot comment includes a link like: `[opencode session](https://opencode.ai/s/<id>)` Opening it returns: `{"status":404,"message":"Cannot find any route matching [GET] https://opencode.ai/s/<id>"}` I don’t have an opencode.json in this repo yet, so this is just the default Action behavior + `share: true`. --- **Side note (possibly unrelated, but confusing while debugging)**: - The [Share docs](https://opencode.ai/docs/share/#manual-default) config examples uses: - `$schema: https://opncd.ai/config.json` - [Config docs](https://opencode.ai/docs/config/#format) say the schema is defined at: - `https://opencode.ai/config.json`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6671