vibetunnel/web/src/server
Helmut Januschka 98e922fd44
Fix shell alias expansion timing issue (GitHub #101) (#103)
Fixed the 'command not found' error for shell aliases like claude command.

Root Cause:
Previously, commands were executed as:
  /bin/zsh -c 'source ~/.zshrc 2>/dev/null || true; claude'

Shell alias expansion happens at parse time, before the source command runs,
so aliases defined in .zshrc were not available during command parsing.

Solution:
Use interactive mode with login shell flags:
  /bin/zsh -i -l -c 'claude'

The -i flag enables interactive mode (loads aliases)
The -l flag makes it a login shell (sources RC files)
This ensures aliases are properly loaded and expanded before command execution.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-authored-by: Claude <noreply@anthropic.com>
2025-06-27 21:05:58 +02:00
..
middleware Fix auth check 2025-06-25 11:49:15 +02:00
pty Fix shell alias expansion timing issue (GitHub #101) (#103) 2025-06-27 21:05:58 +02:00
routes Add new terminal quick keyboard 2025-06-25 12:22:13 +02:00
services Add comprehensive server tests and switch to Biome linter (#73) 2025-06-24 18:51:38 +02:00
utils Add comprehensive server tests and switch to Biome linter (#73) 2025-06-24 18:51:38 +02:00
claude-patch.ts Add Claude debugger patch and disable bell character handling 2025-06-25 20:05:41 +02:00
fwd.ts Add comprehensive server tests and switch to Biome linter (#73) 2025-06-24 18:51:38 +02:00
server.ts fix: update tests to work with --no-auth flag and fix buffer size expectations 2025-06-25 02:11:18 +02:00
version.test.ts Fix URL link detection for wrapped URLs on mobile terminals (#85) 2025-06-26 22:37:49 +02:00
version.ts Add comprehensive server tests and switch to Biome linter (#73) 2025-06-24 18:51:38 +02:00