Framework 16: Fedora: Darktable with OpenCL freezes the Desktop and is very slow

Which Linux distro are you using? Fedora

Which release version? 40
(if rolling release without a release version, skip this question)

(If rolling release, last date updated?)

Which kernel are you using? 6.10.7-200.fc40.x86_64

Which BIOS version are you using? 3.03

Which Framework Laptop 16 model are you using? AMD Ryzen™ 7040 Series with Radeon RX 7700S

OpenCL was installed following the directions in SIGs/HC - Fedora Project Wiki. With OpenCL activated, any time Darktable switches from lighttable to darkroom it’s instantaneous but when switching back there is a long delay with a working warning. The delay is so long that Fedora warns that Darktable isn’t responding and the whole desktop intermittently freezes, no mouse, no other apps redraw, etc. How can one set up OpenCL to get the benefits of the discrete GPU in Darktable?