diff --git a/backend/Services/OpenClawGatewayClient.cs b/backend/Services/OpenClawGatewayClient.cs index b46b92f..8a3acdc 100644 --- a/backend/Services/OpenClawGatewayClient.cs +++ b/backend/Services/OpenClawGatewayClient.cs @@ -123,7 +123,7 @@ public sealed class OpenClawGatewayClient(HttpClient httpClient, IConfiguration ) }; - // Load agent IDs from openclaw.json config + // Load agent IDs from sanitized agents config (no secrets) var agentIds = LoadAgentIdsFromConfig(); var agents = new List(); @@ -227,7 +227,7 @@ public sealed class OpenClawGatewayClient(HttpClient httpClient, IConfiguration } /// - /// Loads agent IDs from the OpenClaw config file (openclaw.json). + /// Loads agent IDs from the sanitized agents config (no secrets). /// Falls back to the known list if the config file is unavailable. /// private List LoadAgentIdsFromConfig() @@ -235,7 +235,7 @@ public sealed class OpenClawGatewayClient(HttpClient httpClient, IConfiguration try { var configPath = configuration.GetValue("AgentConfigPath") - ?? "/home/node/.openclaw/openclaw.json"; + ?? "/etc/nexus/agents-sanitized.json"; if (!System.IO.File.Exists(configPath)) return GetDefaultAgentIds(); @@ -1085,7 +1085,7 @@ public sealed class OpenClawGatewayClient(HttpClient httpClient, IConfiguration try { var configPath = configuration.GetValue("AgentConfigPath") - ?? "/home/node/.openclaw/openclaw.json"; + ?? "/etc/nexus/agents-sanitized.json"; if (!System.IO.File.Exists(configPath)) return GetDefaultModels();