Sharing does not work - "Cannot find any route matching [GET] https://dev.opencode.ai/s/<share id>"
Description
When opening the share link from OpenCode in my browser, I get a 404 response with the following content:
{
"status": 404,
"message": "Cannot find any route matching [GET] https://dev.opencode.ai/s/<share ID redacted>"
}
This could be due to a nix packaging issue, e.g., perhaps it results in a dev build. I'm on NixOS unstable, and verified this with the version from nixpkgs (1.0.133) and with the version built from the flake in this repo (currently 1.0.134).
OpenCode version
1.0.134
Steps to reproduce
- Start opencode
- Have the agent do some work
-
/share - Open copied link in browser
Screenshot and/or share link
Operating System
NixOS unstable
Terminal
Ghostty
This issue might be a duplicate of existing issues. Please check:
- #192: Sharing link not working - Also reports broken share links with 404 errors
- #326: interactive
/share- Related share functionality discussions
The issue appears to be related to share links being directed to dev.opencode.ai instead of the production domain. Feel free to ignore if your specific case differs from these issues.
This seems to be working again in 1.0.146.