Skip to content

Conversation

xmqywx
Copy link

@xmqywx xmqywx commented Jul 11, 2025

Description

This PR adds comprehensive proxy configuration support to Claudia, enabling users behind corporate firewalls or in restricted regions to use the application.

Changes

  • ✨ Added proxy settings UI component in Settings page
  • 🔧 Support for HTTP_PROXY, HTTPS_PROXY, NO_PROXY, and ALL_PROXY environment variables
  • 💾 Persistent storage of proxy settings in app database
  • 🚀 Automatic application of proxy settings on app startup
  • 🔄 Pass proxy environment variables to Claude command execution (both system binary and sidecar)
  • 🎨 Integrated proxy settings with unified save button in Settings page

Motivation

Many users in corporate environments or certain regions require proxy configuration to access external services. Without proxy support, these users cannot use Claudia at all.

Screenshots

screen

https://github.com/user-attachments/assets/d1518bb5-336a-4aa2-bf5d-7b87a8b5f67a

Testing

  • Tested with HTTP proxy
  • Tested with HTTPS proxy
  • Tested NO_PROXY exclusions
  • Tested proxy settings persistence across app restarts
  • Tested with both system Claude binary and bundled sidecar

Related Issues

CatherineXiaoXiao and others added 4 commits July 28, 2025 19:03
  - Add proxy settings UI component with enable/disable toggle
  - Support HTTP, HTTPS, NO_PROXY, and ALL_PROXY environment variables
  - Store proxy settings in app database for persistence
  - Apply proxy settings on app startup and when saved
  - Pass proxy environment variables to Claude command execution
  - Integrate proxy settings into main Settings page with unified save
  - Add proxy support for both system binary and sidecar execution

  This allows users to configure proxy settings for Claude API requests,
  which is essential for users behind corporate firewalls or in regions
  requiring proxy access.

  Fixes network connectivity issues in restricted environments.
- Remove unused imports (regex, Arc)
- Fix receiver/child tuple order from spawn() call
- Convert CommandEvent bytes to strings properly
- Remove unused variables (_start_time, mut from installations)
- Update function signatures to match new API
- Simplify child process registration by removing child parameter
- Remove unused imports (tauri_plugin_shell modules)
- Delete should_use_sidecar() function
- Delete create_sidecar_command() function
- Clean up dead code related to sidecar process execution
- Remove unused child parameter from register_agent_process()
- Simplify ProcessInfo structure by removing unnecessary process handle
@123vivekr 123vivekr force-pushed the feature/new-feature-proxy branch from 37948cc to 75881db Compare July 28, 2025 16:00
@123vivekr 123vivekr merged commit 16acda5 into winfunc:main Jul 28, 2025
2 of 4 checks passed
@123vivekr
Copy link
Member

Thanks 🎉

@123vivekr
Copy link
Member

Closes #217

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants