Skip to content

fix: use direct file check for claude-code in layout#24

Merged
ethannortharc merged 1 commit intomainfrom
fix/layout-claude-detection
Mar 11, 2026
Merged

fix: use direct file check for claude-code in layout#24
ethannortharc merged 1 commit intomainfrom
fix/layout-claude-detection

Conversation

@ethannortharc
Copy link
Copy Markdown
Owner

Summary

  • Zellij ai-code pane now checks [ -x "$HOME/.npm-global/bin/claude" ] directly instead of relying on command -v claude
  • command -v can fail during shell init on NixOS when PATH hasn't fully resolved yet
  • Added /run/current-system/sw/bin and /nix/var/nix/profiles/default/bin to pane PATH for NixOS compatibility
  • Falls back to command -v claudeopencodecodex if direct check fails

Test plan

  • cargo build + cargo test — all 71 tests pass
  • devbox create --tools rust,go on macOS — claude should be default AI tool in layout

🤖 Generated with Claude Code

The ai-code pane now checks for $HOME/.npm-global/bin/claude directly
with -x (file exists + executable) instead of relying solely on
command -v, which may fail during shell initialization on NixOS.

Also adds /run/current-system/sw/bin and /nix/var/nix/profiles/default/bin
to PATH so NixOS system binaries (like node) are always available.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ethannortharc ethannortharc merged commit cb2fc7b into main Mar 11, 2026
0 of 2 checks passed
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