diff --git a/web/src/pages/GardenEditorPage.tsx b/web/src/pages/GardenEditorPage.tsx index 29afb38..b03b754 100644 --- a/web/src/pages/GardenEditorPage.tsx +++ b/web/src/pages/GardenEditorPage.tsx @@ -110,6 +110,9 @@ export function GardenEditorPage() { const [sharing, setSharing] = useState(false) const [clearing, setClearing] = useState(false) const [scanning, setScanning] = useState(false) + // Whether to offer packet scanning — a vision model is configured. Read once + // here so all three Plants-mode entry points gate identically. + const canScan = !!capabilities.data?.vision const nudgeTimer = useRef(null) const nudgeFire = useRef<(() => void) | null>(null) @@ -634,7 +637,7 @@ export function GardenEditorPage() { onClear={() => setClearing(true)} onFill={fillBed} filling={fillObject.isPending} - canScan={!!capabilities.data?.vision} + canScan={canScan} onScan={() => setScanning(true)} /> ) : ( @@ -732,7 +735,7 @@ export function GardenEditorPage() { ) : (

Tap a bed, then “🌱 Plant here” to start planting.

- {capabilities.data?.vision && ( + {canScan && (