Why do the inputs of this CC circuit op-amp need clamping?

In small signal mode (current within specification with varying currents) U4B is operating as an integrator. Interestingly, U4A (the other half of the amplifier, providing the current set reference) has no such diodes across its inputs.

The two primary reasons for diodes across an input are :

  1. Preventing the input differential mode voltage from being violated

  2. Ensuring the loop can respond quickly.

As I can see no mechanism where the input differential mode voltage can be violated, the other reason (as you suspected) is the likely culprit.

An inspection of small signal response and large signal (i.e. in slew rate limit) is informative:

LF442 Impulse Response

Note that the time axis for small signal and large signal is an order of magnitude different (0.5\$\mu\$s for small signal, 10\$\mu\$s for large signal). Admittedly, the voltage axis is also much smaller for small signal response, but this is the sort of response we would want to see.

For the integrator to maintain proper response (and quite possibly remain stable, although I have not looked carefully into that. Integrator stability or lack thereof has caused many a hair pulling day) when it is in small signal mode (and more particularly, when entering and exiting small signal mode) we do not want the inputs to deviate very much from each other so that the dominant loop response is set by C12.

I cannot see any other reason for the diodes (although that does not mean another reason does not exist).

[Update]

As the supply can only be set into constant current mode with no load atached (see page 5 of the manual), then the transition we can see is from constant current to constant voltage mode.

When the output of the supply exceeds the programmed maximum voltage, U1 engages and takes control of the loop and this actually (effectively) removes U4B from the control loop via the operation of the CR4 and CR5 analogue OR gate.

When this happens, there will be transients at U4B output, which can easily destabilise the integrator. Any perturbations will feed back but will be clamped by the diodes to a diode drop around Vout (which is where R22 and R23 are attached), which prevents serious output disturbances affecting the performance of the voltage error amplifier.