- Always show restart button when in Rust server mode (previously was hidden when server was healthy)
- Move server mode selection above HTTP server status for better UX flow
- Users can now always manually restart the Rust server regardless of health status
The tty-fwd directory is at the root of the project, not under rust/
This PR corrects the build instructions to reflect the actual project structure.
Co-authored-by: nityeshaga <93742147+nityeshaga@users.noreply.github.com>
- Add apple-touch-icon.png (1024x1024) for iOS/Android home screen
- Add manifest.json for Progressive Web App support
- Update index.html with PWA meta tags and links
- Enable standalone display mode with VibeTunnel theme colors
This allows users to add VibeTunnel to their home screen on mobile devices
and have it function as a standalone app with proper icon and theming.
- Fix unit tests
- Update session validation to check for non-empty strings in commands
- Fix session ID validation test data to use valid hex characters
- Add mock implementations for UrlHighlighter and CastConverter
- Fix HTML escaping in URL highlighter mock
- Adjust timing precision test tolerance
- Fix integration test infrastructure
- Replace deprecated done() callbacks with async/await in WebSocket tests
- Add urlencoded middleware for Express 5 compatibility
- Create test stream-out file for cast endpoint
- All unit tests (32) and critical tests (15) now pass
- Integration tests still need work to match actual tty-fwd behavior
- Add comprehensive integration test suite for Node.js server
- API endpoint tests for session lifecycle, I/O operations, file system
- WebSocket connection tests for hot reload functionality
- Server lifecycle tests for initialization and shutdown
- Basic binary availability tests for tty-fwd
- Fix Rust code for nix 0.30 API changes
- Update dup2 calls to use OwnedFd instead of raw file descriptors
- Fix read calls to pass file descriptors directly instead of raw fd
- Remove deprecated as_raw_fd() calls where not needed
- Reorganize test structure
- Split tests into unit/ and integration/ directories
- Add separate Vitest configuration for integration tests
- Create test utilities and setup files for both test types
- Add custom test matchers for session validation
- Update test coverage configuration
- Configure separate coverage for unit and integration tests
- Add proper test timeouts for long-running integration tests
- Use fork pool for integration tests to avoid port conflicts
- Update term_socket.rs and tty_spawn.rs to use new nix 0.30 API
- dup2() now requires OwnedFd references instead of raw file descriptors
- Add proper OwnedFd handling with std::mem::forget to prevent premature closing
- Ensure compatibility with updated nix crate API changes
- Migrate GitHub Actions to Blacksmith runners for faster CI
- Update ubuntu-latest to blacksmith-4vcpu-ubuntu-2404
- Update actions/setup-node@v4 to useblacksmith/setup-node@v5
- Update Swatinem/rust-cache@v2 to useblacksmith/rust-cache@v3
- Fix all linting warnings across all platforms
- TypeScript: Fix any type warnings with proper type annotations
- Rust: All clippy warnings resolved
- Swift: Fix SwiftLint violations and format code
- Update all dependencies to latest versions
- npm: Major updates including Express 5 compatibility fixes
- Rust: Update 7 crates to latest compatible versions
- Swift: Dependencies already up-to-date
- Add comprehensive test suite using Vitest
- API endpoint tests for session CRUD operations
- WebSocket connection and streaming tests
- Session management lifecycle tests
- Frontend component tests (terminal, session-list)
- Critical functionality tests covering core features
- Test infrastructure with proper mocking and utilities
- All tests passing, ready for production use
- Update DEVELOPER_DIR environment variable to Xcode 16.4
- Update xcode-select commands to use Xcode 16.4
- Keep using macos-15 runner which should have Xcode 16.4 available
- Removed info logs for Accessibility permission status checks
- Removed info logs for AppleScript permission status checks
- These were being logged repeatedly and cluttering the console
- Created NSImage+Resize extension with high-quality resizing
- Fixed terminal icon display in picker menus
- Updated SelectTerminalPageView and AdvancedSettingsView to use resized icons
- Icons now properly display at 16x16 in menu pickers
Removed eprintln\! statements that were cluttering stdout during PTY session creation.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Update is_pid_alive to detect zombie processes (status 'Z') as dead
- Add spawn_type field to distinguish PTY vs socket sessions
- Add reap_zombies function to clean up zombie children
- Only attempt zombie reaping for PTY sessions to avoid interfering with osascript processes
- Fix session cleanup to work properly with zombie processes
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Use proper type casting for ioctl on both Linux and non-Linux platforms
- Separate platform-specific code blocks for clarity
- Fix potential clippy warnings on Linux CI
- Track SSE reconnection attempts in session-view
- Mark sessions as exited after 3 failed reconnects within 5 seconds
- Disconnect stream and load final snapshot when giving up
- Provides fallback when server exit events aren't reliably sent
- Improves UX by stopping endless reconnection attempts
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- DELETE endpoint now waits up to 3 seconds for process to actually die
- Polls every 100ms to confirm process termination after SIGKILL
- Returns different messages based on whether process confirmed dead
- Makes is_pid_alive function public for reuse
- Provides more reliable session killing with proper status updates
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Update session.json status to "exited" when killing sessions via DELETE endpoint
- Set exit_code to 9 (SIGKILL) when process is killed
- Handle already-dead sessions by ensuring they're marked as "exited"
- Add PID tracking to PTY sessions so they can be properly killed
- Add reconnection detection in session-view: mark sessions as exited after 3 failed reconnects within 5 seconds
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Move stopKillingAnimation() to finally block to ensure it always runs
- Prevents animation from getting stuck when kill operation fails
- Ensures proper cleanup regardless of success or error conditions
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add 5-second timeout when waiting for PTY stream-out file creation
- This prevents indefinite hanging when PTY background thread fails
- Send proper exit events to streaming clients when PTY process terminates
- Exit event format matches web frontend expectations: ["exit", exitCode, sessionId]
- Ensures web UI can properly handle session termination for PTY fallback
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Fixed redundant continue statements in loops
- Replaced manual string prefix stripping with strip_prefix method
- Fixed wildcard pattern that covered other patterns
- Removed redundant clone and unnecessary return value
- Used format string interpolation for cleaner code
- Removed unused imports and variables
- All Clippy checks now pass with -D warnings
Change API response message from 'Terminal spawned successfully' to
'Session created successfully' for PTY fallback sessions. This allows
the web frontend to properly navigate to session-view instead of
treating it as a terminal window spawn.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Applied automatic Clippy fixes for better code quality
- Removed redundant continue statements at the end of match arms
- Fixed unused variable warnings by prefixing with underscore
- Applied cargo fmt to ensure consistent formatting
- Add setup_shutdown_handler() to catch SIGTERM and SIGINT signals
- Create update_all_sessions_to_exited() to mark running sessions as exited
- Update handle_pty_session() to mark sessions as exited when PTY closes naturally
- Integrate signal handling into main server startup for both scenarios
- Ensures session.json files accurately reflect process state after server shutdown
- Fixes issue where sessions remain "running" after server restart or normal exit
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Fixed Swift formatting issues in AppConstants.swift and VibeTunnelApp.swift
- Fixed Rust formatting in tty-fwd source files
- CI should now pass formatting checks
- Changed swift.yml, rust.yml, and node.yml from direct triggers to workflow_call
- This fixes the workflow configuration error causing immediate CI failures
- Reusable workflows must use workflow_call when invoked by other workflows
- Fixed SwiftLint error by changing snake_case variable name to camelCase
- Added small corner radius to Create New Session modal
- Increased padding between KILL and CREATE buttons in header