Skip to content

feat: Add starship prompt integration (rebased on uat)#112

Merged
robottwo merged 2 commits intouatfrom
starship-wizard-integration
Feb 24, 2026
Merged

feat: Add starship prompt integration (rebased on uat)#112
robottwo merged 2 commits intouatfrom
starship-wizard-integration

Conversation

@robottwo
Copy link
Copy Markdown
Owner

Rebased starship-wizard-integration branch onto uat.

This PR adds starship prompt integration to the wizard setup while keeping starship optional:

  • Starship is recommended but gracefully handled if absent
  • Enhanced .bishrc template with detailed integration notes
  • Proper error handling in wizard embed code
  • Package managers treat starship as optional/recommended, not hard dependency

Resolves conflicts from previous integration work, maintaining the optional starship design from main while applying wizard fixes.

Daniel Eisner and others added 2 commits February 23, 2026 23:57
…izard

Write a ready-to-go ~/.bishrc with starship prompt support (guarded by
`command -v starship`) during first-time setup, so new users get a rich
prompt out of the box. Existing ~/.bishrc files are left untouched
(append-only for the config_ui source line). Add starship as a
dependency/recommendation across all packaging formats.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… integration

Fixes critical error handling bugs and improves starship integration clarity.

Error Handling Fixes (internal/wizard/embed.go):
- Add errors.Join import for proper error composition
- Fix defer pattern that tried to assign to non-named return value
- Properly combine write and close errors using errors.Join
- Ensures close errors are not silently dropped

Starship Integration Improvements (bishrc.template):
- Remove STARSHIP_START_TIME (not needed, bishop tracks duration internally)
- Add detailed comments explaining integration mechanism
- Document that BISH_UPDATE_PROMPT() is called automatically
- Clarify that bishop provides BISH_LAST_COMMAND_EXIT_CODE and BISH_LAST_COMMAND_DURATION_MS
- Add quotes around variable expansions for safety
- Set initial prompt with explicit values (status=0, cmd-duration=0)

Addresses blocking issues from PR review:
- Named return value issue (line 23)
- Incorrect defer pattern (lines 48-52)
- Starship integration correctness and documentation

Build Status:
✅ All tests passing
✅ golangci-lint: 0 issues
✅ govulncheck: no vulnerabilities
✅ Binary compiled successfully
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c84ab2ce84

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Formula/bish.rb
version "0.22.2"
license "GPL-3.0-or-later"

depends_on "starship"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove hard starship dependency from Homebrew formula

Adding depends_on "starship" makes Homebrew treat starship as mandatory, so brew install bish can now fail in environments where starship is unavailable (for example restricted mirrors/private taps) even though bishop itself already handles missing starship at runtime (if command -v starship in internal/wizard/bishrc.template). This regresses installation reliability by turning an optional prompt enhancement into an install-time blocker.

Useful? React with 👍 / 👎.

@robottwo robottwo merged commit 7cff7de into uat Feb 24, 2026
1 check failed
@robottwo robottwo deleted the starship-wizard-integration branch February 24, 2026 05:03
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