Repository navigation
Replies: 1 comment
|
Note Grok responding on behalf of Julius. This shipped in #18454: T3 Code links ( |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Before submitting
Area
apps/desktop
Problem or use case
My old terminal workflow was a one-liner: paste a PR link or branch name → land in a worktree for it. T3 Code already has the in-app equivalent (paste a PR URL into the BranchToolbar branch selector →
PullRequestThreadDialog→ local/worktree mode), which is great — but it can only be triggered by clicking through the UI on a fresh draft thread.There is no outside-in entry point. Coming from a PR page in the browser, a Slack message, or a terminal, I can't hand T3 Code a PR reference and have it open the checkout flow. I have to switch to the app, find/create a draft thread, open the branch picker, and paste.
Proposed solution
A deep link that opens the PR-checkout flow with the reference pre-filled, e.g.:
Behavior: focus/launch the app, open (or create) a draft thread in the current project, and open
PullRequestThreadDialogwithinitialReferenceset — the user just picks local vs. worktree.Most of the plumbing already exists:
setAsDefaultProtocolClientinapps/desktop/src/electron/ElectronApp.ts) — missing only the URL routing for this action.PullRequestThreadDialogalready accepts aninitialReferenceprop.apps/web/src/pullRequestReference.ts) already normalizes GitHub/GitLab/Azure URLs,#123, and even pastedgh pr checkout 123commands.git.preparePullRequestThreaddoes the resolution + branch + worktree work.Why this matters
Enables composition with everything outside the app: browser extensions, Raycast/Alfred, and trivial shell functions like
w() { open "t3code://checkout-pr?ref=$1"; }. For PR-review-heavy workflows, "paste link → worktree thread" becomes one action instead of five clicks, and T3 Code stays the owner of worktree lifecycle (no externalgit worktreejuggling, avoids #1714-style mismatches).Smallest useful scope
Handle the single deep-link route: parse
ref, focus the app, open the PR dialog pre-filled in the active project's draft thread. No CLI, no branch-name variant, no thread auto-start — the dialog's existing UX handles the rest.Alternatives considered
gh pr checkout) and picking it in the branch selector — two tools, and externally-created worktrees have issues ([Bug]: Externally created Git worktrees are treated as “Local” #1714).t3code checkout-pr <ref>) talking to the server's WS RPC — more powerful, but much larger scope; the deep link covers most of the value.Risks or tradeoffs
refas a plain string fed to the existing parser/dialog (user still confirms in the dialog before anything runs), never auto-execute checkout.Examples or references
vscode:///cursor://deep links, Linear'slinear://routes.Contribution
All reactions