From 5f3f354b3acb7547323b178e4ebecd57f5e570f5 Mon Sep 17 00:00:00 2001 From: Dotta Date: Wed, 11 Mar 2026 14:16:23 -0500 Subject: [PATCH] Simplify adapter environment check: animate pass, show debug only on fail - When the adapter probe passes, show a clean animated "Passed" badge with a checkmark icon instead of verbose check details - Only show the "Manual debug" section when the test fails, reducing noise for successful flows Co-Authored-By: Paperclip --- ui/src/components/OnboardingWizard.tsx | 104 ++++++++++++++----------- 1 file changed, 57 insertions(+), 47 deletions(-) diff --git a/ui/src/components/OnboardingWizard.tsx b/ui/src/components/OnboardingWizard.tsx index a2bcb709..376f78ef 100644 --- a/ui/src/components/OnboardingWizard.tsx +++ b/ui/src/components/OnboardingWizard.tsx @@ -940,9 +940,14 @@ export function OnboardingWizard() { )} - {adapterEnvResult && ( + {adapterEnvResult && adapterEnvResult.status === "pass" ? ( +
+ + Passed +
+ ) : adapterEnvResult ? ( - )} + ) : null} {shouldSuggestUnsetAnthropicApiKey && (
@@ -962,53 +967,58 @@ export function OnboardingWizard() {
)} -
-

Manual debug

-

- {adapterType === "cursor" - ? `${effectiveAdapterCommand} -p --mode ask --output-format json \"Respond with hello.\"` - : adapterType === "codex_local" - ? `${effectiveAdapterCommand} exec --json -` - : adapterType === "gemini_local" - ? `${effectiveAdapterCommand} --output-format json \"Respond with hello.\"` - : adapterType === "opencode_local" - ? `${effectiveAdapterCommand} run --format json "Respond with hello."` - : `${effectiveAdapterCommand} --print - --output-format stream-json --verbose`} -

-

- Prompt:{" "} - Respond with hello. -

- {adapterType === "cursor" || adapterType === "codex_local" || adapterType === "gemini_local" || adapterType === "opencode_local" ? ( + {adapterEnvResult && adapterEnvResult.status === "fail" && ( +
+

Manual debug

+

+ {adapterType === "cursor" + ? `${effectiveAdapterCommand} -p --mode ask --output-format json \"Respond with hello.\"` + : adapterType === "codex_local" + ? `${effectiveAdapterCommand} exec --json -` + : adapterType === "gemini_local" + ? `${effectiveAdapterCommand} --output-format json "Respond with hello."` + : adapterType === "opencode_local" + ? `${effectiveAdapterCommand} run --format json "Respond with hello."` + : `${effectiveAdapterCommand} --print - --output-format stream-json --verbose`} +

- If auth fails, set{" "} - - {adapterType === "cursor" - ? "CURSOR_API_KEY" - : adapterType === "gemini_local" - ? "GEMINI_API_KEY" - : "OPENAI_API_KEY"} - {" "} - in - env or run{" "} - - {adapterType === "cursor" - ? "agent login" - : adapterType === "codex_local" - ? "codex login" + Prompt:{" "} + Respond with hello. +

+ {adapterType === "cursor" || + adapterType === "codex_local" || + adapterType === "gemini_local" || + adapterType === "opencode_local" ? ( +

+ If auth fails, set{" "} + + {adapterType === "cursor" + ? "CURSOR_API_KEY" : adapterType === "gemini_local" - ? "gemini auth" - : "opencode auth login"} - . -

- ) : ( -

- If login is required, run{" "} - claude login and - retry. -

- )} -
+ ? "GEMINI_API_KEY" + : "OPENAI_API_KEY"} + {" "} + in + env or run{" "} + + {adapterType === "cursor" + ? "agent login" + : adapterType === "codex_local" + ? "codex login" + : adapterType === "gemini_local" + ? "gemini auth" + : "opencode auth login"} + . +

+ ) : ( +

+ If login is required, run{" "} + claude login and + retry. +

+ )} +
+ )} )}