Could you give some details? Claims about "forever" often don't hold up. I guess you're referring to things like component size in relation to the wavelength of light used? One could use smaller wavelengths. Integrated photonics is certainly being done and also commercially relevant (in telecommunications). What integration density would you consider not-abysmal? How much does integration density matter if you have very low loss (which means low power dissipation, a huge problem for semiconductor electronics) and can just make big chips?
There is also research arguing that optoelectronics might eventually be very useful for computing, e.g. recently [1]. (Yes, this is by researchers who need to appear relevant. However, if we dismiss their arguments based on that alone, we can abolish all research altogether.) Why do you disagree? Again, you were talking about forever.
The same issues that affect electronic VLSI manufacturing also apply to trying to use light on-chip. The semiconductor industry had to transition to EUV (13.5nm) light to make it work. But that has huge and inefficient light sources.
Photonics makes sense if one end of your system has light on it; if you're building a LIDAR system, or data transmission over fiber, or somesuch. I have not yet seen anyone doing computation at scale in light.
Moreover even in a hypothetical scenario where we somehow were able to find materials applicable to smaller wavelength, the deBroglie wavelength of an electron is ~1000x smaller, than that of a Photon at the same energy. So in terms of integration density electrons will always have a 10^6 - 10^9 (2d - 3d) theoretical advantage over photons, which means that investment in electron based computation will have a much more likely eventual payoff.
Take for example https://www.nature.com/articles/s41586-020-03070-1, they have a bunch of projections for what they hope to achieve over time. The most fantastical figure they give is 50 Peta MAC / s, but this doesn't take into account the PCM programming time.
If you take a look at the supplementary material https://static-content.springer.com/esm/art%3A10.1038%2Fs415... it becomes clear that they currently have a much lower TOPS/Watt figure than current generation ML ASIC like the TPU and this neglects all the expensive experimental optical equipment they would need to miniaturise. So even in their most favourable comparison they are 5x worse. Most of these papers unfortunately are full of hype and claims like that.
In fact reprogramming the optical non-linearities typically is much slower and energy intensive than retrieving and flipping some bits. Which makes non-static non time-multiplexed computation extremely slow compared to whatever the "best" case static scenario is.