fix(onboarding): preselect OpenHands LLM provider after picking OpenHands agent (#16531)

Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
Juan Pedro Michelini Jorge
2026-08-14 11:05:27 -03:00
committed by GitHub
co-authored by openhands
parent e6c90d6538
commit fa21e01a6c
5 changed files with 37 additions and 34 deletions
@@ -61,11 +61,10 @@ test.describe("onboarding recent regressions", () => {
});
// Regression coverage for #1077 / PR #1089: first-run LLM setup
// should not default users to the OpenHands provider.
// should default users to the OpenHands provider, matching the agent
// selected on the previous step.
test("defaults the LLM setup step to OpenAI GPT-5.5", async ({
page,
}) => {
test("defaults the LLM setup step to OpenHands GLM-5.2", async ({ page }) => {
await showOnboarding(page, {
apiKey: SESSION_API_KEY,
beforeGoto: async () => {
@@ -95,18 +94,18 @@ test.describe("onboarding recent regressions", () => {
await expect(
providerInput,
"first-run onboarding should default to the OpenAI provider",
).toHaveValue("OpenAI", { timeout: 10_000 });
"first-run onboarding should default to the OpenHands provider",
).toHaveValue("OpenHands", { timeout: 10_000 });
// The model input displays the model ID without the provider prefix.
await expect(
modelInput,
"first-run onboarding should default to GPT-5.5",
).toHaveValue("gpt-5.5", {
"first-run onboarding should default to GLM-5.2",
).toHaveValue("glm-5.2", {
timeout: 10_000,
});
await expect(
page.getByTestId("openhands-account-help"),
"OpenHands account helper should stay hidden for OpenAI defaults",
).toHaveCount(0);
"OpenHands account helper should be visible for OpenHands defaults",
).toBeVisible();
});
});
+2 -1
View File
@@ -21,7 +21,7 @@ export async function routeOnboardingLlmCatalog(page: Page) {
models: {
anthropic: ["claude-opus-4-8"],
openai: ["gpt-5.5"],
openhands: ["claude-opus-4-5-20251101"],
openhands: ["claude-opus-4-5-20251101", "glm-5.2"],
},
}),
});
@@ -36,6 +36,7 @@ export async function routeOnboardingLlmCatalog(page: Page) {
"anthropic/claude-opus-4-8",
"openai/gpt-5.5",
"openhands/claude-opus-4-5-20251101",
"openhands/glm-5.2",
],
}),
});