We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5c6b247 + 4698b67 commit 9a86900Copy full SHA for 9a86900
1 file changed
MaxKernel/hitl_agent/callbacks.py
@@ -268,8 +268,11 @@ def get_tpu_version_callback(callback_context: CallbackContext):
268
269
def add_workdir_callback(callback_context: CallbackContext):
270
"""Add working directory to state."""
271
- callback_context.state["workdir"] = WORKDIR
272
- logging.info(f"Set working directory to: {WORKDIR}")
+ session_id = callback_context.session.id
+ session_dir = os.path.join(WORKDIR, session_id)
273
+ os.makedirs(session_dir, exist_ok=True)
274
+ callback_context.state["workdir"] = session_dir
275
+ logging.info(f"Set working directory to: {session_dir}")
276
277
278
def extract_fix_summary(
0 commit comments