Commit graph

1438 commits

Author SHA1 Message Date
David Collado
9e7a0f673f Refactor to clean MVVM architecture with dependency injection
- Create ServerListViewModelProtocol for abstraction
- Rename ServerProfilesViewModel to ServerListViewModel for 1:1 view-viewmodel naming
- Implement proper dependency injection with ConnectionManager singleton
- Move all business logic from View to ViewModel
- Add auto-login and credential management in ViewModel
- Establish protocol-based architecture for testability
2025-07-03 13:18:48 +01:00
David Collado
9ebac3a72f Convert ConnectionManager to singleton pattern
- Add static shared instance with private initializer
- Ensures single source of truth for connection state
- Prevents multiple instance conflicts in MVVM architecture
- All components now use ConnectionManager.shared
2025-07-03 13:18:48 +01:00
David Collado
7975c4b916 Enhance AuthenticationService with proper error handling
- Add AuthenticationError enum for domain-specific error handling
- Add attemptAutoLogin method for automatic credential-based authentication
- Improve error handling and logging for credential retrieval
- Support 24-hour token expiry validation
2025-07-03 13:18:48 +01:00
David Collado
8f20a0ef26 Implement auto-login functionality for iOS app
- Add AuthenticationError enum for proper error handling in authentication domain
- Add attemptAutoLogin(profile:) method to AuthenticationService that:
  - Checks for valid existing tokens first
  - Retrieves stored credentials from Keychain using profile ID
  - Attempts authentication with stored username/password
  - Throws AuthenticationError for graceful fallback to manual login

- Update ServerProfilesViewModel.connectToProfile() to:
  - Remove early return that immediately showed login modal
  - Attempt auto-login first when authentication required
  - Only show login modal when auto-login fails (graceful fallback)
  - Maintain existing connection flow for no-auth servers

- Enhance server setup UI to capture username during profile creation:
  - Add username field to ConnectionViewModel
  - Add username input to ServerConfigForm
  - Update profile creation to store actual username instead of hardcoded "admin"
  - Default to "admin" if username field is empty for backward compatibility

- Update EnhancedConnectionView to pass username binding to form
- Build verification: All changes compile successfully

This implements a "Terminus-like experience" where users configure credentials once during server setup and enjoy automatic authentication thereafter, with graceful fallback to manual login when needed.
2025-07-03 13:18:48 +01:00
Peter Steinberger
45d8f97a30
Improve release scripts and add git app integration (#208) 2025-07-03 12:40:09 +01:00
Peter Steinberger
74a364d1ba
Fix modal backdrop pointer-events issues (#195)
Co-authored-by: Claude <noreply@anthropic.com>
2025-07-03 01:03:15 +01:00
Peter Steinberger
1a1ad448b9 Update appcast for v1.0.0-beta.6 2025-07-03 00:47:57 +01:00
Peter Steinberger
3756310428 Bump version to 1.0.0-beta.6 build 160 2025-07-03 00:40:05 +01:00
Peter Steinberger
0d6f189938 Prep release 2025-07-03 00:37:03 +01:00
Billy Irwin
b74de48ddd ```
fix: prevent file browser flashing and reduce log verbosity

- Split visibility and session change handling to avoid redundant directory loads
- Only reload directory when component becomes visible or session changes while visible
- Change directory browse success log from info to debug level to reduce noise
- Fixes issue where file browser would flash/reload unnecessarily on prop changes
```
2025-07-03 00:32:01 +01:00
Billy Irwin
770951c63a fix: prevent keyboard capture when overlays are active
- Add focus management check in lifecycle keyboard handler
- Skip keyboard capture when overlays/modals are displayed
- Add debug logging for session name change events
- Prevents keyboard conflicts with form inputs in overlays
2025-07-03 00:31:10 +01:00
Devesh Shetty
ea9cafaee1
Fix responsive layout not returning to desktop mode (#201) 2025-07-02 15:15:16 -07:00
David
38cd396b8a
fix: Configure iOS team ID via xcconfig to prevent project file conflicts (#186)
* fix: remove hardcoded team ID from project, use xcconfig inheritance

- Remove hardcoded DEVELOPMENT_TEAM from project.pbxproj to prevent conflicts
- Fix xcconfig hierarchy so Local.xcconfig properly overrides defaults
- Set Y5PE65HELJ as fallback for CI when Local.xcconfig doesn't exist
- Local developers can now use their own team ID without project file changes

* fix: revert to using $(inherited) for team ID instead of hardcoding

The original setup was correct - using $(inherited) allows the team ID to be
set from Local.xcconfig while falling back to project settings when needed.
Hardcoding the team ID was unnecessary and went against the established pattern.

* fix: restore Local.xcconfig to membershipExceptions

Local.xcconfig must remain in membershipExceptions to prevent Xcode from
incorrectly treating it as a compilable source file. Configuration files
should be excluded from compilation and referenced via baseConfigurationReference.

Without this exception, Xcode attempts to compile Local.xcconfig as source code,
causing build errors and warnings, especially problematic for git-ignored files.

---------

Co-authored-by: David Collado <davidcollado@MacBook-Pro-de-David.local>
2025-07-02 23:33:19 +02:00
Peter Steinberger
a4619fb766
Add Git repository monitoring to VibeTunnel menu bar (#200) 2025-07-02 20:42:34 +01:00
Peter Steinberger
2a937eac4a
Make popover window sticky during new session creation (#194) 2025-07-02 16:49:34 +01:00
Jeff Hurray
dab2c6056d
Fix various SessionRow menu bugs (#196) 2025-07-02 13:28:15 +01:00
Peter Steinberger
f602f2936e
Add vibetunnel binary path and version info to vt help output (#193) 2025-07-02 07:46:37 +01:00
Peter Steinberger
ad05e0267d Fix title injection race conditions
- Add titleInjectionInProgress flag to prevent concurrent injections
- Update lastWriteTimestamp immediately before enqueueing to prevent quiet period violations
- Clear pendingTitleToInject only after successful write completion
- Compare titles before clearing to avoid losing newer updates
- Stop injection timer only when no pending titles remain
- Use try-finally to ensure in-progress flag is always cleared

This prevents both lost title updates and quiet period violations that could
occur when titles were cleared prematurely or timestamps updated too late.
2025-07-02 07:28:48 +01:00
Peter Steinberger
d112c5300f
Remove titleDebouncer and fix stdout write ordering issues (#190) 2025-07-02 07:06:55 +01:00
Armin Ronacher
8f00054f3d
Fix an issue that caused missing sessions to not load (#187) 2025-07-02 06:51:59 +01:00
Mario Zechner
43ef2d962d Optimize TitleSequenceFilter by compiling regexes once as static properties 2025-07-02 05:12:43 +01:00
Mario Zechner
f322d746af Updated spec.md 2025-07-02 05:12:43 +01:00
Peter Steinberger
42021bb514 Fix inconsistent button state management
- Remove all uses of deprecated highlight() method in CustomMenuWindow
- Consistently use state property for NSStatusBarButton management
- Update StatusBarMenuManager to reset button state when menu state is .none
- Fix concurrency issues in CustomMenuWindow frame observer
- Ensure button state is properly managed throughout menu lifecycle

This fixes the issue where the button could display inconsistent visual states
or get stuck due to conflicting approaches between highlight() and state.
2025-07-02 00:00:53 +01:00
Peter Steinberger
920d96207b Fix logger double initialization causing log file deletion
- Modified initLogger() to return early if already initialized
- Removed explicit false parameter in server.ts to preserve debug mode from CLI
- Fixes test failure where log file was being deleted after first write
2025-07-02 00:00:53 +01:00
Peter Steinberger
b5cf38f7e7 Fix flaky logs API test in CI
The test was checking for log file existence before any logs were written.
Added a log write before checking file info to ensure the file exists.
2025-07-02 00:00:53 +01:00
Peter Steinberger
a8dd9af10a Reduce terminal title update frequency to once per second
- Change periodic activity update interval from 500ms to 1000ms
- Ensure all title updates go through debouncer (including session name changes)
- Prevents excessive terminal updates while maintaining responsiveness
2025-07-02 00:00:53 +01:00
Peter Steinberger
c2f0b79cec Fix logs API test by including lastModified in all responses
- Add lastModified: null when log file doesn't exist
- Ensures consistent API response structure
2025-07-02 00:00:53 +01:00
Peter Steinberger
a6488b5ad9 Improve session display and button state management
- Fix menu bar button highlighting using state instead of highlight()
- Extract process name from command path for cleaner display
- Show session name next to command with dash separator
- Fix corner radius on new session dialog
- Make Create button darker green for better visibility
- Update editing to properly handle session names
2025-07-02 00:00:53 +01:00
Peter Steinberger
f60bd2d5a0 Implement side-rounded menu borders for macOS menu bar
- Create custom SideRoundedRectangle shape with flat top/bottom borders
- Apply custom shape to both SwiftUI background and NSWindow mask layer
- Update CustomMenuContainer to use the new shape for consistent styling
- Maintain rounded corners only on left and right sides as requested

This gives the menu bar dropdown a more integrated appearance with the
menu bar while keeping the modern rounded aesthetic on the sides.
2025-07-02 00:00:53 +01:00
Luis Nell
f1f99be514 Add Apple Silicon Homebrew path check for VT tool
Updates CLIInstaller to check for the VT command-line tool in both:
- /usr/local/bin/vt (default/Intel Macs)
- /opt/homebrew/bin/vt (Apple Silicon Homebrew)

This ensures users who have installed VT via Homebrew on M1/M2 Macs
will see it as already installed in the welcome flow.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-01 23:42:51 +01:00
Billy Irwin
852078d024
fix: simplify Tailscale integration using local API (#184) 2025-07-01 23:36:59 +01:00
Armin Ronacher
cf51218d7e
Fix alignment of kill all button (#181) 2025-07-01 21:51:18 +02:00
Peter Steinberger
49a263d406
Mac menu bar UI improvements and Tailscale fixes (#180) 2025-07-01 18:53:46 +01:00
Peter Steinberger
fcda54a5f9
Enhance VibeTunnel web interface with modern visual design (#177) 2025-07-01 17:57:57 +01:00
Peter Steinberger
b452251a47
Improve Mac menu bar UI with better form styling and animations (#179) 2025-07-01 17:46:46 +01:00
Billy Irwin
cef2e6bf03
Add more debug logs for Tailscale integration (#178) 2025-07-01 09:13:55 -07:00
Peter Steinberger
a09563ec62 Enhance VibeTunnel web interface with modern visual design
- Implement modern color scheme with cyan/teal primary colors
- Redesign sidebar with card-based sessions and enhanced status indicators
- Create unified header design with gradient backgrounds
- Add JetBrains Mono font and improve typography throughout
- Implement smooth micro-interactions and animations
- Enhance terminal area with better focus states and loading overlays
- Update all buttons and inputs with consistent hover/focus effects
2025-07-01 15:17:50 +01:00
David
9e862f96d5
fix: iOS authentication flow and ConnectionManager architecture improvements (#169)
Co-authored-by: David Collado <davidcollado@MacBook-Pro-de-David.local>
2025-07-01 14:57:38 +01:00
Peter Steinberger
a7d5648c78
feat: Powerful Mac menu bar with rich view and session tracking (#176) 2025-07-01 14:54:30 +01:00
Peter Steinberger
acf91e228d
Add sidebar toggle button with collapse/expand functionality (#175) 2025-07-01 14:52:56 +01:00
Peter Steinberger
cf7ada95e3 fix: Remove incorrect stdin cleanup code
- Remove stdin handler cleanup that was contradicting the comment
- Remove unused stdinHandler and stdinDataListener from PtySession interface
- Stdin is handled via IPC socket, not process.stdin listeners
2025-07-01 13:41:09 +01:00
Peter Steinberger
31d7faec7f refactor: Improve PTY manager resource cleanup and performance
- Add stdin cleanup handlers for process.stdin listeners
- Implement event listener tracking to prevent memory leaks
- Add lazy watcher initialization for session.json monitoring
- Add explicit isExternalTerminal flag for better terminal detection
- Optimize activity file writing to only write on state changes
- Track last written activity state to avoid unnecessary disk I/O
2025-07-01 13:41:09 +01:00
Peter Steinberger
8134ea3a58 ci: Migrate all GitHub Actions runners to ARM architecture
Update all workflow files to use blacksmith-8vcpu-ubuntu-2404-arm instead of
blacksmith-8vcpu-ubuntu-2204 for consistency and improved performance.
2025-07-01 13:41:09 +01:00
Peter Steinberger
dd4e06f249 fix: Improve timer management and error handling in PTY manager
- Fix timer management in setupSessionJsonWatcher to properly assign timer before setTimeout
- Improve IPC socket error handling to throw error instead of silently returning
- Socket path length validation now fails fast with clear error message
2025-07-01 13:41:09 +01:00
Peter Steinberger
6e18fa94e9 fix: Remove debug print and fix PID display for nil values
- Remove debug print statement from MenuBarView
- Fix SessionDetailView to display 'N/A' instead of '0' for nil PIDs
- Prevents confusion with actual PID 0 system process
2025-07-01 13:41:09 +01:00
Peter Steinberger
6c33e16565 feat: Add activity status display to menu bar session entries
- Display activity status (e.g., 'Browsing', 'Considering') below each session
- Show status inline with working directory path, separated by dot
- Match visual style from web frontend with orange status text
- Add compact path display with ~ for home directory
2025-07-01 13:41:09 +01:00
Peter Steinberger
4e5f100074 fix: Remove orphaned test files for non-existent modules
- Delete safe-pty-writer.test.ts and stream-analyzer.test.ts
- These tests were importing modules that no longer exist
- Fixes CI test failures
2025-07-01 13:41:09 +01:00
Peter Steinberger
005a65c399 test: Improve test stability and reduce flakiness
- Remove unused imports to clean up test files
- Use shorter session IDs to avoid path length issues
- Adjust timing in tests for better reliability
- Improve test descriptions and assertions
2025-07-01 13:41:09 +01:00
Peter Steinberger
dfe846cfce feat: Enhance macOS app session monitoring and UI
- Add debug logging for session fetching and status
- Display 'No sessions' text when session list is empty
- Add initial delay for auth token setup on app start
- Improve user feedback in menu bar interface
2025-07-01 13:41:09 +01:00
Peter Steinberger
3b99312fdb fix: Improve heartbeat handling and session.json debounce cleanup
- Echo heartbeat messages back to clients for better connection monitoring
- Properly clear debounce timer references to prevent memory leaks
- Pass client socket to message handler for proper heartbeat responses
2025-07-01 13:41:09 +01:00