From 97998ffec74e22ae2cbebaa4f0d7ccbdffb241e9 Mon Sep 17 00:00:00 2001 From: Codex Agent Date: Sun, 7 Jun 2026 23:01:14 +0800 Subject: [PATCH] feat: add ofcx-go to code agent session provider profile allowlist CODE_AGENT_PROVIDER_PROFILE_IDS was missing ofcx-go, causing session creation to normalize ofcx-go back to the default deepseek profile. Adding ofcx-go to the allowlist ensures sessions are created with the correct providerProfile that propagates to AgentRun backend profile routing. Refs pikasTech/HWLAB#1034 --- internal/cloud/server-code-agent-http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cloud/server-code-agent-http.ts b/internal/cloud/server-code-agent-http.ts index a94257c5..3ee90dda 100644 --- a/internal/cloud/server-code-agent-http.ts +++ b/internal/cloud/server-code-agent-http.ts @@ -34,7 +34,7 @@ const DEFAULT_CODE_AGENT_RESULT_TRACE_EVENT_LIMIT = 120; const DEFAULT_CODE_AGENT_PROJECT_ID = "prj_hwpod_workbench"; const DEFAULT_CODE_AGENT_PROVIDER_PROFILE = "deepseek"; const CODE_AGENT_TERMINAL_STATUSES = new Set(["completed", "failed", "blocked", "timeout", "cancelled", "canceled"]); -const CODE_AGENT_PROVIDER_PROFILE_IDS = Object.freeze(["deepseek", "codex-api", "minimax-m3", "runtime-default"]); +const CODE_AGENT_PROVIDER_PROFILE_IDS = Object.freeze(["deepseek", "codex-api", "minimax-m3", "ofcx-go", "runtime-default"]); const CODE_AGENT_PROVIDER_PROFILE_LABELS = Object.freeze({ "deepseek": "DeepSeek", "codex-api": "Codex API",