You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] Show PR number alongside branch name in input box label #796
Enhance the existing git branch label in the input box top border to also detect and display the associated GitHub PR number when one exists. Currently the input shows ⎇ <branch> (e.g., ⎇ fix/issue-785); it should also show ⎇ fix/issue-785 #792 when a PR exists for the current branch.
Motivation
When working on a branch that already has a PR open, it's useful to see the PR number at a glance without running gh pr view separately. This reduces context-switching and makes the TUI more informative.
Acceptance Criteria
The branch label in the input box top border shows ⎇ <branch> #<pr> when a PR exists for the current branch
Falls back to ⎇ <branch> when no PR exists (no regression)
PR detection uses gh pr view --json number --jq .number (or equivalent) with caching similar to the existing git branch cache (5s TTL)
The PR number is only fetched when git_branch indicator is enabled in config
A new config option git_pr (or similar) under chat.status_bar.indicators controls whether the PR number is shown (default: true)
The label is truncated gracefully when the box is narrow (existing spliceBranchIntoTopBorder handles this)
Unit tests for the PR detection and label formatting
The cache is invalidated on BashCommandCompletedEvent (same as git branch cache)
Added PR number display alongside branch name in the input box top border (PR #802):
Config: Added GitPR field (default: true) to StatusBarIndicators under chat.status_bar.indicators in config/config.go
PR detection: Added getCurrentGitPR() method to InputView that runs gh pr view --json number --jq .number with a 5-second TTL cache, and InvalidateGitPRCache() to clear it
Label formatting: Modified buildGitBranchLabel() to append #<pr> when git_pr is enabled and a PR exists, falling back to the existing ⎇ <branch> format
Cache invalidation: PR cache is invalidated on BashCommandCompletedEvent alongside the git branch cache
Indicator control: Added git_pr case to shouldShowIndicator in InputStatusBar
Tests: Added 14 unit tests covering PR label formatting, config toggles, cache behavior, and cache invalidation
Tokens: 6,687,120 in · 12,866 out · 6,699,986 total (46 requests)
Tool calls: 54 total · 96% success rate
⚠️ 2 failed tool call(s)
Read: UNREADABLE_BINARY
Bash: exit status 201: �[32mtask: [precommit:run] pre-commit run --all-files
�[0m"pre-commit": executable file not found in $PATH
::error title=Task 'precommit:run' failed::exit status 127
�[31mtask: Failed to run task "precommit:run": exit status 127
�[0m
Activity
edenreich commentedon Jul 8, 2026
@infer Can you work on this? use /go /go-concurrency /bubbles-v4 /bubbletea-v2 /ponytail or any other skills you need for the task.
inference-gateway-maintainer commentedon Jul 8, 2026
Model:
ollama_cloud/deepseek-v4-flash· View JobTodos
Pull Request
#802
✅ Infer Result: Success
All done. Here's a summary of the changes:
Added PR number display alongside branch name in the input box top border (PR #802):
GitPRfield (default:true) toStatusBarIndicatorsunderchat.status_bar.indicatorsinconfig/config.gogetCurrentGitPR()method toInputViewthat runsgh pr view --json number --jq .numberwith a 5-second TTL cache, andInvalidateGitPRCache()to clear itbuildGitBranchLabel()to append#<pr>whengit_pris enabled and a PR exists, falling back to the existing⎇ <branch>formatBashCommandCompletedEventalongside the git branch cachegit_prcase toshouldShowIndicatorinInputStatusBarModel:
ollama_cloud/deepseek-v4-flash· Exit Code:0· Duration: 7m 24sTokens: 6,687,120 in · 12,866 out · 6,699,986 total (46 requests)
Tool calls: 54 total · 96% success rate
�[0m"pre-commit": executable file not found in $PATH
::error title=Task 'precommit:run' failed::exit status 127
�[31mtask: Failed to run task "precommit:run": exit status 127
�[0m
Triggered by edenreich · Infer Action
feat(ui): show PR number alongside branch name in input box label (#802)
inference-gateway-releaser commentedon Jul 9, 2026
🎉 This issue has been resolved in version 0.140.0 🎉
The release is available on:
Your semantic-release bot 📦🚀