mirror of
https://github.com/samsonjs/vibetunnel.git
synced 2026-04-14 12:46:05 +00:00
* Prevent recursive VibeTunnel sessions (GitHub #95) Added detection and prevention of nested VibeTunnel sessions to avoid recursive 'vt' command execution. Changes: - Set INSIDE_VIBETUNNEL and VIBETUNNEL_SESSION environment variables when creating PTY sessions - Added check in vt script to detect if already inside a VibeTunnel session - Shows helpful error message when recursive session is attempted This prevents the confusing behavior where users could run 'vt' inside a VibeTunnel session, creating nested terminal instances. Now users get a clear error message explaining they're already in a VibeTunnel session. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Improve recursive session prevention based on PR feedback - Consolidate to single environment variable VIBETUNNEL_SESSION_ID - Add session ID for debugging purposes as requested - Show session ID in error message for better user feedback - Remove redundant environment variables (INSIDE_VIBETUNNEL, VIBETUNNEL_SESSION) This addresses feedback from PR #104 to use a single, more informative environment variable that serves both purposes: preventing recursion and providing debugging information. --------- Co-authored-by: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| middleware | ||
| pty | ||
| routes | ||
| services | ||
| utils | ||
| claude-patch.ts | ||
| fwd.ts | ||
| server.ts | ||
| version.test.ts | ||
| version.ts | ||