Suppress VT wrapper output for title and status commands

- Add early command detection to skip version output for specific commands
- Commands that now run silently: vt title, vt status, vt version, vt --version
- Fixes ugly text wrapping in Claude Code when using vt title
- Preserves color information by eliminating wrapper output
- Requires Mac app rebuild to take effect
This commit is contained in:
Peter Steinberger 2025-07-30 00:28:12 +02:00
parent 10cbfe260d
commit 40f4a6f413

View file

@ -135,8 +135,15 @@ if [ -z "$VIBETUNNEL_BIN" ]; then
fi
fi
# Check if this is a command that should suppress wrapper output
SUPPRESS_OUTPUT=false
# Debug: echo "First argument at line 139: '$1'" >&2
if [[ "$1" == "title" || "$1" == "status" || "$1" == "--version" || "$1" == "version" ]]; then
SUPPRESS_OUTPUT=true
fi
# Log VibeTunnel binary info when VIBETUNNEL_PREFER_DERIVED_DATA is set
if [ -n "$VIBETUNNEL_PREFER_DERIVED_DATA" ] && [ -n "$VIBETUNNEL_BIN" ]; then
if [ -n "$VIBETUNNEL_PREFER_DERIVED_DATA" ] && [ -n "$VIBETUNNEL_BIN" ] && [ "$SUPPRESS_OUTPUT" != "true" ]; then
# Get version and build info
VERSION_OUTPUT=$("$VIBETUNNEL_BIN" --version 2>&1)
VERSION_LINE=$(echo "$VERSION_OUTPUT" | grep "^VibeTunnel Server" | head -n 1)