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
Bash hook appends to PROMPT_COMMAND without dedup check. Re-sourcing .bashrc on every shell spawn causes exponential chaining:
# First source: PROMPT_COMMAND="uteke_prompt_hook"
# Second source: PROMPT_COMMAND="uteke_prompt_hook;uteke_prompt_hook"
# Third source: PROMPT_COMMAND="uteke_prompt_hook;uteke_prompt_hook;uteke_prompt_hook"
Same issue in zsh with chpwd_functions+=(uteke_chpwd).
Also: UTEKE_PROJECT_STORE unused
The shell hook's sole purpose is setting UTEKE_PROJECT_STORE env var, but no code reads it.
Fix
Check if hook already registered before appending
Either consume UTEKE_PROJECT_STORE in the CLI or remove it
The duplicate hook issue is already fixed in the current shell hooks (scripts/shell/uteke-hook.bash and .zsh both have guard checks). Fish uses --on-variable PWD which is inherently deduplicated.
The remaining item is that UTEKE_PROJECT_STORE is set but never consumed by the CLI. This is by design — it's a hook point for future use (e.g., auto-namespace per project, or consume in uteke recall to scope to current project). Keeping it as-is for now. Closing the bug part as fixed.
Activity
fix: guard against PROMPT_COMMAND duplication in shell hooks (#143)
refactor: split commands.rs (820 LOC) into per-command modules (#187)
ajianaz commentedon Jun 11, 2026
The duplicate hook issue is already fixed in the current shell hooks (
scripts/shell/uteke-hook.bashand.zshboth have guard checks). Fish uses--on-variable PWDwhich is inherently deduplicated.The remaining item is that
UTEKE_PROJECT_STOREis set but never consumed by the CLI. This is by design — it's a hook point for future use (e.g., auto-namespace per project, or consume inuteke recallto scope to current project). Keeping it as-is for now. Closing the bug part as fixed.refactor: split commands.rs (820 LOC) into per-command modules (#187)