π OpenHands: AI-Driven Development
fix: default LLM setup to Anthropic Claude Opus 4.8 (#1089)
Hiep Lea344117a2bfc
diff --git a/__tests__/components/onboarding/onboarding-modal.test.tsx b/__tests__/components/onboarding/onboarding-modal.test.tsxindex 48aaf3b0a8..2d2a009324 100644--- a/__tests__/components/onboarding/onboarding-modal.test.tsx+++ b/__tests__/components/onboarding/onboarding-modal.test.tsx@@ -233,14 +233,14 @@ describe("OnboardingModal", () => {);});- it("pre-fills the LLM step with the OpenHands provider", () => {+ it("pre-fills the LLM step with the Anthropic provider's Claude Opus model", () => {renderModal();expect(llmSettingsScreenMock).toHaveBeenCalledTimes(1);expect(llmSettingsScreenMock).toHaveBeenCalledWith(expect.objectContaining({initialValueOverrides: {- "llm.model": "openhands/claude-opus-4-5-20251101",+ "llm.model": "anthropic/claude-opus-4-8",},}),);diff --git a/src/components/features/onboarding/steps/setup-llm-step.tsx b/src/components/features/onboarding/steps/setup-llm-step.tsxindex dabea79241..9e918b6038 100644--- a/src/components/features/onboarding/steps/setup-llm-step.tsx+++ b/src/components/features/onboarding/steps/setup-llm-step.tsx@@ -15,12 +15,14 @@ interface SetupLlmStepProps {}/**- * Pre-fills the LLM form with the OpenHands provider's default Claude- * Opus model. Keeping this as an explicit override marks the model- * dirty so the Next button persists the suggested default immediately.+ * Pre-fills the LLM form with the Anthropic provider's Claude Opus+ * model. Most users won't have an OpenHands account, so onboarding+ * routes directly through Anthropic by default. Keeping this as an+ * explicit override marks the model dirty so the Next button persists+ * the suggested default immediately.*/const ONBOARDING_LLM_OVERRIDES = {- "llm.model": "openhands/claude-opus-4-5-20251101",+ "llm.model": "anthropic/claude-opus-4-8",} as const;/**diff --git a/src/mocks/settings-handlers.ts b/src/mocks/settings-handlers.tsindex 5ff78787e1..05e41dcdfa 100644--- a/src/mocks/settings-handlers.ts+++ b/src/mocks/settings-handlers.ts@@ -437,6 +437,7 @@ const MOCK_MODELS = ["anthropic/claude-sonnet-4-5-20250929","anthropic/claude-haiku-4-5-20251001","anthropic/claude-opus-4-5-20251101",+ "anthropic/claude-opus-4-8","openai/gpt-3.5-turbo","openai/gpt-4o","openai/gpt-4o-mini",@@ -450,6 +451,7 @@ const MOCK_MODELS = [const MOCK_VERIFIED_MODELS = new Set(["anthropic/claude-opus-4-5-20251101",+ "anthropic/claude-opus-4-8","anthropic/claude-sonnet-4-5-20250929","openhands/claude-opus-4-5-20251101","openhands/claude-sonnet-4-5-20250929",