No way to copy code from code interpreter cards on threads page

Really happy with the threads page ya’ll added for viewing threads generated by the Assistants API! It saved me a lot of time with troubleshooting customer’s threads.

I noticed a small bug though where if you try to select/copy text within the code interpreter card it just closes the card on click.

Kapture 2024-04-10 at 17.39.58

It appears this bug occurs on the playground page as well: https://platform.openai.com/playground/assistants

Please fix this as this is a minor annoyance can make it hard to re-run code the LLM ran locally.

Seems to work okay in Firefox…

Looks like there are several elements used in the page that are non-standard, being deprecated out on Chrome, Edge 123+ (current), safari 17.4 (current): box-align, box-pack, box-flex

@_j Oh nice find! Interesting that Firefox is working for you, I am seeing this bug on both Chrome & Firefox browsers. I also disabled all my extensions to verify those weren’t the cause.

Firefox Version 124.0.2
Chrome Version 123.0.6312.122

Hmm I think the reason this was working for you is that your example shows code the LLM outputted as a markdown response(EX: write me a function that does X). That case works for me.

The usecase i referenced in my original example is specific to code that was RUN by code interpreter.

Appreciate you looking into this though, that js you found seems like it could be the cause!