Repository navigation
fix(console): pass download channels through and alias stable to latest - #60778
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Looks good. I called the route handler directly with a fake update API on both checkouts. On the base, /download/dev/*, /download/latest/* and unknown channels all redirected to the beta build. With this PR each channel goes to its own build, stable still goes to latest, and an unknown channel returns the update API's 404. tsc --noEmit passes in packages/console/app.
Public API: no SDK, server, plugin, config or CLI surface changes. Only the behaviour of the public /download/<channel>/<platform> redirect URLs changes, and existing /download/stable/* links still work.
No concerns.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #
Type of change
What does this PR do?
/download/[channel]/[platform]only knewstablevs everything else, so/download/dev/<platform>(and any unknown channel) silently redirected to the beta build./update/api/<channel>/desktop/opencode). The only mapping isstable→latest, kept as a permanent alias with a comment:stableis what the download page linked to for months and ~10% of its traffic (~45k requests/week) comes from outside opencode.ai (bookmarks, other sites, curl/wget scripts)./download/latest/<platform>.How did you verify your code works?
bun typecheckandbun run typecheck:tscinpackages/console/app,bun run checkat the root. Checked that the update API serveslatest,betaanddev. Will check the deployed redirects with curl after merge.Visual
Screenshots / recordings
Not a UI change.
Checklist