Skip to content

fix(ujust): bootstrap fzf for --choose - #902

Open
castrojo wants to merge 4 commits into
projectbluefin:mainfrom
castrojo:fix/899-ujust-choose
Open

fix(ujust): bootstrap fzf for --choose#902
castrojo wants to merge 4 commits into
projectbluefin:mainfrom
castrojo:fix/899-ujust-choose

Conversation

@castrojo

Copy link
Copy Markdown
Contributor

What does this change?

Make ujust --choose bootstrap the Homebrew-managed fzf dependency when it is not yet available, then initialize the Homebrew environment before invoking just. Register focused Bats coverage in just test and document the early-login behavior.

Why?

fzf is installed by brew-preinstall.service, so it can be missing when a user invokes ujust --choose before the first login setup completes.

Closes #899

Testing

  • bash -n system_files/shared/usr/bin/ujust
  • Targeted bootstrap and missing-Homebrew failure scenarios passed
  • git diff --check passed
  • Full just test/just check could not run because bats, just, and pre-commit are unavailable in this environment

Checklist

  • just check passes
  • pre-commit run --all-files passes
  • Skill doc updated if the change affects agent-facing conventions or behavior
  • CI is green after push: gh run list --repo projectbluefin/common --limit 5

AI attribution

Assisted-by: GPT-5.6 Luna via GitHub Copilot
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

🐝 Hive Agent: contributor | SHA: unknown

Jorge Castro and others added 3 commits July 31, 2026 16:17
Install the Homebrew-managed chooser on demand when --choose runs before brew-preinstall completes.

Assisted-by: GPT-5 via pi
- Match --choose as an exact argument instead of joined-string search
- Propagate brew shellenv failure before dispatching just
- Verify fzf is resolvable after shellenv and fail closed
- Strengthen test_ujust.bats with isolated PATH, fake fzf via shellenv,
  install→shellenv→just ordering, and negative paths

Assisted-by: Claude via GitHub Copilot
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Register the ujust Bats coverage in just test and document why the fzf bootstrap is needed before brew-preinstall completes.

Assisted-by: GPT-5.6 Luna via GitHub Copilot

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@castrojo castrojo added agent/contributor Work by the contributor agent contributor/castrojo PRs from contributor castrojo cli/copilot PRs opened via GitHub Copilot CLI labels Jul 31, 2026
@castrojo
castrojo requested review from a team, ahmedadan, hanthor, inffy, ledif and repires as code owners July 31, 2026 16:19
@castrojo castrojo closed this Jul 31, 2026
Assisted-by: GPT-5.6 Luna via GitHub Copilot

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@castrojo castrojo reopened this Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent/contributor Work by the contributor agent cli/copilot PRs opened via GitHub Copilot CLI contributor/castrojo PRs from contributor castrojo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ujust --choose is busted on Dakota

1 participant