-
-
Couldn't load subscription status.
- Fork 402
Description
When I run a script using CodeInterpreter (CI) it creates a session, does its thing, and exits. I notice afterwords there is a ./codebox directory which contains files that I've uploaded. Hm. Then I run my script with HISTORY_BACKEND=codebox, and when its done there is a history.json in .codebox with my conversation history. I run my script again, and now history.json has my history from both runs! I don't want the history from my first run to pollute my second run. And I don't want large file uploads to accumulate forever in the codebox, right?
Seems to me that when a session is closed, any persistent state should be deleted. At least, that should be the default, and perhaps one could maintain state across sessions if one wants.
Maybe I'm missing something? Is this Codebox behavior?
I know I could (probably?) upload an empty "history.json" on my first generate_response(), or even programmatically delete ./.codebox at the beginning of my script. Seems kind of hacky though.