I’ve had this happen a few times with my spa and it always shows up exactly the way you described, totally clear water until the jets kick on, then a ring of foam appears within a minute or two.
What’s usually happening is the jets are injecting air and creating a lot of agitation. That aeration acts almost like a mixer. If there are body oils, lotion residue, detergent from swimsuits, or even a bit of leftover sunscreen in the water, the bubbles grab onto those compounds and form foam. When the spa is sitting still those same contaminants stay dissolved so the water looks perfectly clear.
One thing I noticed is it tends to be worse after heavier bather load. A long soak with two or three people can add a surprising amount of oils and organic material. In warm spa water those compounds build up faster than in a pool, and the jets basically reveal it instantly.
For me the clues are usually small ones like the foam appearing quickly when jets start, or the filter cartridge feeling slightly slick when I rinse it. Cleaning the filter and running the spa through a good circulation cycle usually improves it a lot. Keeping an eye on sanitizer levels after heavy use also helps because once those organics start accumulating, the foam shows up faster when the jets run.