feat(browse): open Depot web destinations#543
Open
WitoDelnat wants to merge 8 commits into
Open
Conversation
WitoDelnat
commented
Jul 16, 2026
WitoDelnat
commented
Jul 16, 2026
WitoDelnat
commented
Jul 16, 2026
Preserve confirmed entity matches when an unrelated lookup fails and recover queued CI job workflow IDs from job metrics.
Use Depot-native discovery guidance and stop promoting secondary raw-path examples.
- cover bare-ID fallback through the resolver orchestration - use product-appropriate tokens for build and CI lookups - accept a trailing slash on build shorthand paths
- decode percent-encoded bare IDs before entity lookup
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 6d7034c. Configure here.
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.



This PR adds a very simple command to go from CLI to browser:
depot browse-> https://depot.dev (unauthenticated)depot browse-> https://depot.dev/orgs/org-iddepot browse workflows-> https://depot.dev/orgs/org-id/workflowsdepot browse workflows/some-id-> https://depot.dev/orgs/org-id/workflows/some-iddepot browse registry-> https://depot.dev/orgs/org-id/registrydepot browse some-id-> https://depot.dev/orgs/org-id/{workflows,projects/builds,github-actions}/some-id (whichever matches).A bit gimmick, but might be useful when you've started with downloading the CLI through brew or have been using stripe projects, etc.
Summary
Users and agents can now open any organization-scoped Depot destination from the CLI while relying on the app's existing information architecture. The help leads with Depot CI and Container Builds, then GitHub Action Runners, and includes commands for discovering workflow, build, and job IDs.
Container Builds get two conveniences:
buildsaliases toprojects, andbuilds/<build-id>resolves the canonical project build URL through the API. Complete URLs and API-returned build URLs are constrained tohttps://depot.dev;--no-browsermakes resolution inspectable and script-friendly.An unrecognized single-segment path is treated as an entity ID. Numeric IDs open GitHub Actions jobs directly; other IDs are checked concurrently against builds, Depot CI workflows, and Depot CI jobs. A unique match opens its canonical page, while ambiguity fails with explicit paths rather than guessing.
Fixes DEP-5420.
Validation
go test ./...golangci-lint run --timeout 5m --new-from-rev origin/main— 0 issuesdepot browse --helpand smoke-tested workflows, builds, a complete URL, and a bare GitHub Actions job ID with--no-browserPost-deploy monitoring & validation
This is a local CLI-only change with no server rollout. After release, watch CLI/support reports for systematic browser-open or build-lookup failures; revert the release change if generated Depot URLs do not resolve correctly.
Note
Medium Risk
New API-backed URL resolution and a shared Windows browser-launch change affect login and browse; mitigations include depot.dev-only URL checks and explicit ambiguity handling.
Overview
Adds
depot browseto resolve Depot web URLs and open them in the default browser (or print them with--no-browser/--org). Relative paths map under the current org; full URLs must behttps://depot.dev;buildsaliases toprojects;builds/<id>resolves the canonical build page via the API.Bare single-segment IDs trigger concurrent lookups (build, Depot CI workflow/job, numeric GitHub Actions job), with ambiguity and not-found errors instead of guessing. API-returned build URLs are restricted to
depot.dev, and relative paths reject..segments.OpenURLis exported frompkg/apiwith a testablebrowserCommandhelper; Windows opening switches fromcmd /c starttorundll32 url.dll,FileProtocolHandler(also used during device login). The root command registersbrowse; tests cover resolution, lookups, and registration.Reviewed by Cursor Bugbot for commit 6d7034c. Bugbot is set up for automated code reviews on this repo. Configure here.