Merged
Conversation
Add a PR button to the bottom-left of the branch card with full lifecycle management: Backend: - Add create_pr Tauri command that kicks off an agent session to push the branch and create a PR via `gh` CLI with conventional commit title styling - Add update_branch_pr command to persist PR number to storage - Add update_branch_pr_number method to branch store Frontend: - Add PR button with four states: idle, creating (spinner), error (alert icon), and created (view PR link) - On create: uses the most recent agent provider from preferences to start a session that pushes to remote and creates the PR - On completion: parses session messages for PR URL, extracts PR number, saves to storage via update_branch_pr - On error: clicking shows a dialog with the error message, retry and close buttons - On created: button becomes 'View PR #N' which opens the PR in the user's browser via open_url - Add createPr and updateBranchPr frontend command wrappers
Use getPreferredAgent with location-aware agent lists instead of blindly picking the first recent agent. For remote branches, filter against REMOTE_AGENTS; for local branches, filter against discovered local providers (agentState.providers). This matches the pattern already used by NewSessionModal.
wesbillman
approved these changes
Feb 12, 2026
loganj
added a commit
that referenced
this pull request
Feb 26, 2026
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.
Summary
gh. Includes backend Tauri commands (create_pr,update_branch_pr) and store support for persisting PR numbers.Changes
staged/src-tauri/src/lib.rs— Newcreate_prandupdate_branch_prTauri commandsstaged/src-tauri/src/store/branches.rs—update_branch_pr_numberstore methodstaged/src/lib/BranchCard.svelte— PR button UI with state machine (idle/creating/error/created), explicit New note/New commit buttonsstaged/src/lib/NewSessionModal.svelte— Simplified header, removed mode toggle pill UIstaged/src/lib/commands.ts—createPrandupdateBranchPrTypeScript bindings