mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-26 15:07:39 +00:00
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:
parent
10cbfe260d
commit
40f4a6f413
1 changed files with 8 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue