Skip to content

Conversation

@wesm
Copy link
Collaborator

@wesm wesm commented Jan 27, 2026

Summary

Fixes a bug where branch filter in the TUI would show "no matching jobs" even when matching jobs existed in the database.

Root Cause

When branch filter was active, fetchJobs only fetched a limited number of recent jobs (e.g., 50). Since branch filtering is done client-side, if none of those 50 jobs matched the filtered branch, the TUI showed 0 results.

Fix

  • Fetch all jobs (limit=0) when branch filter is active, matching existing behavior for repo filter and hideAddressed modes
  • Disable pagination when branch filter is active since all data is already loaded

Test plan

  • Added TestTUINavigateDownNoLoadMoreWhenBranchFiltered test
  • All existing tests pass

🤖 Generated with Claude Code

When branch filter was active, fetchJobs only fetched a limited number
of recent jobs (e.g., 50). Since branch filtering is done client-side,
if none of those jobs matched the filtered branch, the TUI showed 0
results even though matching jobs existed in the database.

Fixes:
- Fetch all jobs (limit=0) when branch filter is active
- Trigger refetch when applying/clearing branch filter (shows loading
  indicator instead of "No jobs matching filters")
- Disable pagination when branch filter is active

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@wesm wesm force-pushed the fix-branch-filter-fetch branch from 70f63a9 to 046af90 Compare January 27, 2026 14:07
@wesm wesm merged commit eb63183 into main Jan 27, 2026
7 checks passed
@wesm wesm deleted the fix-branch-filter-fetch branch January 27, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant