[bug] Screenshot needs to be of the most recently interacted frame
Describe the bug
I have two frames on the page, one is dark and the other is light. The dark one I've been working on a lot, and yet when I "add a screenshot" it pulls a screenshot from the other frame.
Ideally this takes a screenshot of the workspace that I am working most recently in otherwise it doesn't make sense for the AI.
/attempt: #2676
Will take up this issue. I actually ended up facing some other bug related to screenshotting which I'll try to fix on the same commit. (2 identical screenshots being taken lead to a base64 id conflict, which breaks the context array rendering)
Nice thanks @reddygtvs !