From 864593bb09022786c02a4fbfa2d9ce47ccfd0abf Mon Sep 17 00:00:00 2001 From: Sphaela <39881472+JGSphaela@users.noreply.github.com> Date: Wed, 27 May 2026 11:49:08 +0900 Subject: [PATCH] Fix Claude Desktop Cowork egress profile (#3172) --- src-tauri/src/claude_desktop_config.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src-tauri/src/claude_desktop_config.rs b/src-tauri/src/claude_desktop_config.rs index 316b58e88..fec2cd09f 100644 --- a/src-tauri/src/claude_desktop_config.rs +++ b/src-tauri/src/claude_desktop_config.rs @@ -946,6 +946,7 @@ fn build_gateway_profile( model_specs: Option<&[InferenceModelSpec]>, ) -> Value { let mut profile = json!({ + "coworkEgressAllowedHosts": ["*"], "disableDeploymentModeChooser": true, "inferenceGatewayApiKey": api_key, "inferenceGatewayAuthScheme": "bearer", @@ -1404,6 +1405,7 @@ mod tests { assert_eq!(profile["inferenceGatewayApiKey"], json!("test-token")); assert_eq!(profile["inferenceGatewayAuthScheme"], json!("bearer")); assert_eq!(profile["disableDeploymentModeChooser"], json!(true)); + assert_eq!(profile["coworkEgressAllowedHosts"], json!(["*"])); assert!(profile.get("inferenceModels").is_none()); assert_eq!(meta["appliedId"], json!(PROFILE_ID)); assert!(meta["entries"] @@ -1464,6 +1466,7 @@ mod tests { json!("http://127.0.0.1:15721/claude-desktop") ); assert_eq!(profile["inferenceGatewayAuthScheme"], json!("bearer")); + assert_eq!(profile["coworkEgressAllowedHosts"], json!(["*"])); assert_ne!(profile["inferenceGatewayApiKey"], json!("test-token")); assert!(profile["inferenceGatewayApiKey"] .as_str()