Subsequent attempts failed to produce the same result, does it learn as it goes along or what?
Yes, AI will typically have a "memory" of what's been requested. Depending on the implementation, it may treat prompts that follow as requests to modify a prior prompt, or to generate something entirely different.