π OpenHands: AI-Driven Development
feat: set Canvas default model to GLM 5.2 (#16146)
Juan Michelini246dbd48c370
diff --git a/__tests__/api/settings-service.test.ts b/__tests__/api/settings-service.test.tsindex 68c328ba80..eb7211698f 100644--- a/__tests__/api/settings-service.test.ts+++ b/__tests__/api/settings-service.test.ts@@ -52,7 +52,7 @@ describe("SettingsService", () => {// Should have normalized settings with derived fieldsexpect(settings.agent).toBe("CodeActAgent");- expect(settings.llm_model).toBe("openhands/minimax-m2.7");+ expect(settings.llm_model).toBe("openhands/glm-5.2");expect(settings.confirmation_mode).toBe(false);expect(settings.security_analyzer).toBe("llm");});diff --git a/specs/llm-defaults.md b/specs/llm-defaults.mdindex 111e5fe115..916936e1a6 100644--- a/specs/llm-defaults.md+++ b/specs/llm-defaults.md@@ -3,7 +3,7 @@---### LLD-001: Frontend always sends its chosen default model-- [x] When the agent-server returns an absent or empty `llm.model` (e.g. because the user has never saved settings), the frontend adapter shall substitute `DEFAULT_SETTINGS.llm_model` (`"openhands/minimax-m2.7"`) before sending the conversation-start request.+- [x] When the agent-server returns an absent or empty `llm.model` (e.g. because the user has never saved settings), the frontend adapter shall substitute `DEFAULT_SETTINGS.llm_model` (`"openhands/glm-5.2"`) before sending the conversation-start request.- [x] The frontend shall never rely on the agent-server SDK's own default model (`gpt-5.5`); it shall always send an explicit model value.- [x] Whitespace-only model strings shall be treated as absent and fall back to the default.- [x] The same guard applies when LLM settings arrive via `encryptedAgentSettings` (the conversation-start encrypted payload path).diff --git a/src/mocks/settings-handlers.ts b/src/mocks/settings-handlers.tsindex d355003af2..e2da913ecf 100644--- a/src/mocks/settings-handlers.ts+++ b/src/mocks/settings-handlers.ts@@ -595,7 +595,7 @@ const MOCK_MODELS = ["openhands/claude-sonnet-4-5-20250929","openhands/claude-haiku-4-5-20251001","openhands/claude-opus-4-5-20251101",- "openhands/minimax-m2.7",+ "openhands/glm-5.2","sambanova/Meta-Llama-3.1-8B-Instruct",];@@ -608,7 +608,7 @@ const MOCK_VERIFIED_MODELS = new Set(["openai/gpt-5.5","openhands/claude-opus-4-5-20251101","openhands/claude-sonnet-4-5-20250929",- "openhands/minimax-m2.7",+ "openhands/glm-5.2",]);const MOCK_VERIFIED_PROVIDERS = [@@ -733,7 +733,7 @@ export const SETTINGS_HANDLERS = ["claude-sonnet-4-5-20250929",],verified_providers: MOCK_VERIFIED_PROVIDERS,- default_model: "openhands/minimax-m2.7",+ default_model: "openhands/glm-5.2",}),),diff --git a/src/services/settings.ts b/src/services/settings.tsindex 00e69e87d5..4ea15939f8 100644--- a/src/services/settings.ts+++ b/src/services/settings.ts@@ -3,7 +3,7 @@ import { Settings } from "#/types/settings";export const LATEST_SETTINGS_VERSION = 5;export const DEFAULT_SETTINGS: Settings = {- llm_model: "openhands/minimax-m2.7",+ llm_model: "openhands/glm-5.2",llm_base_url: "",agent: "CodeActAgent",language: "en",@@ -41,7 +41,7 @@ export const DEFAULT_SETTINGS: Settings = {agent_kind: "openhands",agent: "CodeActAgent",llm: {- model: "openhands/minimax-m2.7",+ model: "openhands/glm-5.2",},condenser: {enabled: true,