- Fix WebSocket protocol to use wss:// for HTTPS (ngrok) and ws:// for HTTP (localhost)
- This resolves the issue where Send button doesn't work when accessed via ngrok
- Apply cargo fmt to fix Rust code formatting issues
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This fixes a bug where project paths containing hyphens (e.g.,
`~/projects/flipside/data-discovery`) were incorrectly displayed
with hyphens replaced by slashes (`~/projects/flipside/data/discovery`).
The root cause was that `get_project_path_from_sessions()` only
checked the first line of JSONL session files for the `cwd` field.
Some session files have `null` or empty `cwd` values on the first line.
Changes:
- Modified `get_project_path_from_sessions()` to check up to 10 lines
for a valid, non-empty `cwd` value instead of just the first line
- Added comprehensive unit tests covering the bug scenario and edge cases
- Fixed missing `installation_type` field in `claude_binary.rs` that
was causing compilation errors
Tests: All 8 new unit tests pass
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
This commit adds support for detecting the Claude binary on Windows. The previous implementation used Unix-specific commands and paths, which caused the application to fail to locate the Claude binary on Windows systems. This commit introduces conditional compilation for Windows and Unix-like systems to fix the issue.
- Rename binary from claudia-web to opcode-web in Cargo.toml
- Update all references in justfile (web commands)
- Update console output messages in web_server.rs and web_main.rs
- Update documentation in web_server.design.md
This completes the project rename from Claudia to Opcode.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add /api/settings/claude/installations endpoint to web server
- Implement list_claude_installations handler
- Add 'just debug' command for troubleshooting Claude binary detection
This fixes the HTTP 404 error when accessing Claude Installation settings
in web mode. The debug command helps users verify their Claude installation
is detected correctly.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Pin image crate to 0.25.1 to avoid edition2024 requirement from moxcms
- Add missing installation_type field to ClaudeInstallation struct
- Update Cargo.lock with compatible dependencies
The moxcms-0.7.6 crate requires edition2024 which is not available in
stable Rust 1.82. Pinning the image crate to 0.25.1 avoids this
dependency while maintaining functionality.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Remove unused tauriOpen import in ClaudeCodeSession
- Replace invoke() with apiCall() in api.ts for web compatibility
- Fix unused variable warnings
These changes ensure the frontend builds correctly with the new
web server mode while maintaining compatibility with Tauri desktop mode.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Add comprehensive web server functionality to Claudia, enabling Claude
Code execution from mobile browsers while maintaining feature parity
with the desktop Tauri app.
Enable users to access Claude Code from mobile devices via web browser,
addressing the limitation of desktop-only access. This allows for:
- Mobile development workflows
- Remote access to Claude Code functionality
- Browser-based Claude execution without desktop app installation
- Cross-platform compatibility
- **Axum web server** with WebSocket support for real-time streaming
- **Dual-mode event system** supporting both Tauri desktop and DOM web
events
- **Session management** with HashMap-based tracking of active WebSocket
connections
- **Process spawning** for actual Claude binary execution with stdout
streaming
- **REST API** mirroring all Tauri command functionality
- `web_server.rs`: Main server w/ WebSocket handlers and REST endpoints
- Real Claude binary execution with subprocess spawning
- WebSocket message streaming for real-time output
- Comprehensive session state management
- CORS configuration for mobile browser access
- `apiAdapter.ts`: Environment detection and unified API layer
- `ClaudeCodeSession.tsx`: Enhanced with DOM event support for web mode
- WebSocket client with automatic failover from Tauri to web mode
- Event dispatching system compatible with existing UI components
- **Build system**: `just web` command for integrated build and run
- **Binary detection**: Bundled binary first, system PATH fallback
- **Message protocol**: JSON-based WebSocket communication
- **Event handling**: Session-scoped and generic event dispatching
- **Error handling**: Comprehensive error propagation and UI feedback
- ✅ Basic WebSocket streaming and session management
- ✅ REST API endpoints for all core functionality
- ✅ Event handling compatibility between Tauri and web modes
- ✅ Error handling and WebSocket connection management
- ✅ Process spawning and output streaming
- ✅ Comprehensive debugging and tracing
- Session-scoped event dispatching needs refinement for multi-user
scenarios
- Process cancellation requires additional implementation
- stderr handling not yet fully implemented
- Limited to single concurrent session per connection
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add missing installation_type field to ClaudeInstallation initialization in find_nvm_installations() function at line 222
- This field is required by the struct definition but was omitted from one instance in the NVM discovery code
- The missing field caused Rust compilation to fail with error E0063 during tauri build
- Set installation_type to InstallationType::System to match other NVM installations in the same function
- Fixes build failure for aarch64-apple-darwin target and other platforms
- Add support for NVM_BIN environment variable detection
- Prioritize currently active NVM environment over other installations
- Consolidate NVM-related logic in find_nvm_installations function
- Maintain backward compatibility with existing detection methods
This change helps users who manage Node.js versions with NVM by
ensuring Claudia detects the Claude binary from the currently
active Node.js environment, resolving issues where the wrong
Claude version might be selected despite having multiple NVM
installations available.
- Add IME composition state tracking to prevent premature submission during input composition
- Handle onCompositionStart/End events in text inputs and textareas
- Replace onKeyPress with onKeyDown to better handle IME interactions
- Add proper IME detection in FloatingPromptInput for enhanced input handling
- Fix issues with Enter key triggering actions during IME composition in:
- AgentExecution task input
- ClaudeCodeSession fork dialog
- TimelineNavigator checkpoint creation
- WebviewPreview URL input
- FloatingPromptInput main textarea
This ensures proper input behavior for users of CJK input methods and other IME systems.
- Frontend: Replace unsupported `read_text_file` with backend import/export; align filters to `.opcode.json`
- Backend: Normalize BOM and trim whitespace on file import
- Read from localStorage in when available
- Mirror writes in for instant availability on next launch
- Keeps DB as source of truth; localStorage is a best-effort cache
- Introduce overlay shown on app launch
- Integrate visibility controlled via setting
- Add toggle in with immediate persistence and analytics event
- Add shimmer overlay and brand text animation utilities to
- Window minimize/maximize/close via Tauri API\n- Hover-revealed control icons, improved spacing\n- Agents/Usage buttons with tooltips and motion\n- More options dropdown for Claude, MCP, About
- Add tab persistence service to save/restore tabs to localStorage
- Add session persistence service to save/restore chat session data
- Update TabContext to restore saved tabs and session data on app startup
- Add settings toggle to enable/disable tab persistence
- Fix TypeScript errors in AgentRunWithMetrics interface
- Sessions now resume properly when app is reopened
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>