Skip to content

feat(interpreter): clean up leftover agent file in cleanup_session#64

Open
Artem-Dneprovskii wants to merge 1 commit into
ISG-Siegen:developfrom
renegatux:feature/interpreter-cleanup-session
Open

feat(interpreter): clean up leftover agent file in cleanup_session#64
Artem-Dneprovskii wants to merge 1 commit into
ISG-Siegen:developfrom
renegatux:feature/interpreter-cleanup-session

Conversation

@Artem-Dneprovskii

Copy link
Copy Markdown

Summary

Implements Interpreter.cleanup_session so the interpreter removes the leftover agent file after a run.

Motivation

The interpreter writes generated code to workspace/runfile.py during execution, but the file was not removed after the run finished. This left the workspace with a stale file from the last executed node.

Change

cleanup_session now deletes self.agent_file_path if it exists. Cleanup failures are logged as warnings and do not interrupt the run.

Impact

  • Removes stale runfile.py files after completed runs
  • Keeps the workspace cleaner
  • Does not change execution behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant