Skip to content

fix: address CodeRabbit review — shell hook improvements - #73

Merged
ajianaz merged 2 commits into
developfrom
fix/shell-hook-coderabbit
May 30, 2026
Merged

ajianaz merged 2 commits into
developfrom
fix/shell-hook-coderabbit

Conversation

@ajianaz

@ajianaz ajianaz commented May 30, 2026

Copy link
Copy Markdown
Collaborator

Changes

Addresses all CodeRabbit review comments on PR #72:

  1. Parent directory search — hooks now walk up from cwd to root looking for .uteke/uteke.db, not just checking current dir
  2. include_str! — shell scripts loaded from canonical scripts/shell/ files, no more duplication
  3. SupportedShell enum — String → clap::ValueEnum enum, invalid shells rejected at parse time
  4. Zsh ordering — function defined before chpwd_functions+=() registration

Verification

  • cargo check ✓
  • cargo clippy ✓
  • cargo test — 18/18 ✓
  • cargo fmt ✓

Closes #47 (completes shell hook feature)

ajianaz added 2 commits May 30, 2026 07:15
- Add hook scripts for bash, zsh, fish in scripts/shell/
- Add 'uteke hook <shell>' CLI subcommand
- Hooks detect .uteke/uteke.db and set UTEKE_PROJECT_STORE env var
- bash: PROMPT_COMMAND, zsh: chpwd_functions, fish: --on-variable PWD

Closes #47
- Add parent directory search to all hook scripts (walk up to root)
- Use include_str! to load scripts from canonical files (no duplication)
- Add SupportedShell enum for parse-time validation
- Reorder zsh: define function before registering in chpwd_functions

See: #72
@coderabbitai

coderabbitai Bot commented May 30, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@ajianaz, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 36 minutes and 29 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 593b2f85-cfe0-47b3-a946-d8008c19f4bb

📥 Commits

Reviewing files that changed from the base of the PR and between 934b29a and fef5cc7.

📒 Files selected for processing (4)
  • crates/uteke-cli/src/main.rs
  • scripts/shell/uteke-hook.bash
  • scripts/shell/uteke-hook.fish
  • scripts/shell/uteke-hook.zsh
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/shell-hook-coderabbit

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ajianaz
ajianaz merged commit 32d6931 into develop May 30, 2026
6 checks passed
@ajianaz
ajianaz deleted the fix/shell-hook-coderabbit branch May 30, 2026 04:55
ajianaz added a commit that referenced this pull request Aug 13, 2026
fix: address CodeRabbit review — shell hook improvements
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.

feat: shell hook for auto-context loading

1 participant