Skip to content

Commit fd8e01c

Browse files
committed
fix: prevent Getting Started hint flash and Playground provider ID flash
- Getting Started hint now waits for workflowsLoaded before rendering - Playground provider selector shows placeholder until providers load
1 parent 32cb513 commit fd8e01c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ function App() {
465465
className="space-y-6"
466466
>
467467
{/* Getting Started Hint */}
468-
{!currentWorkflow && !isWorkflowRunning && workflows.length === 0 && (
468+
{!currentWorkflow && !isWorkflowRunning && workflowsLoaded && workflows.length === 0 && (
469469
<div className="p-4 rounded-md border border-accent-blue/20 bg-accent-blue/5 flex items-start gap-3">
470470
<svg
471471
width="18"

frontend/src/components/PlaygroundPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ export function PlaygroundPage() {
365365
<Select
366366
className="w-full"
367367
placeholder="Select provider"
368-
value={providerId}
368+
value={providers.length > 0 ? providerId : undefined}
369369
onChange={(val) => {
370370
setProviderId(val);
371371
setModelName(null);

0 commit comments

Comments
 (0)