NP-01 refactor(tui): move PR creation into git actions dialog and remove blocking fetch#3
Merged
uptickmetachu merged 1 commit intomainfrom Feb 15, 2026
Merged
Conversation
…nto it Remove blocking `git fetch` call from `needs_rebase()` so the git actions dialog opens instantly using local refs. Move the top-level `p` PR hotkey into the git dialog as an opt-in `[o]` option, shown only when no PR exists yet. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Motivation
The Git Actions dialog (
gkey) previously opened slowly becauseneeds_rebase()performed a blockinggit fetchon every invocation. Additionally, the PR creation shortcut (p) was a top-level keybinding that cluttered the main key map despite being an infrequent action.Changes
git fetchfromneeds_rebase()inworktree.py— the dialog now opens instantly using local refs[o]option, shown only when no PR exists and status isworking/input/reviewpkeybinding from the TUI app, reducing key map cluttercreate_praction routing in the git actions callback handlerTest Plan
g— verify the dialog opens instantly (no network delay)working/input/reviewstatus and no existing PR, verify thecreate pr [o]option appearscreate proption is hiddenoin the git actions dialog — verify PR creation flow triggerspno longer triggers PR creation from the main board viewuv run pytestto confirm no test regressions🤖 Generated with Claude Code