Skip to content

The agent that grows with you

fix: name the preserved snapshot path in the ROLLBACK FAILED payload

kshitijk4poor154fd10af0f0
diff --git a/tools/skill_manager_tool.py b/tools/skill_manager_tool.py
index b977f7c98f6..8e1416ab98f 100644
--- a/tools/skill_manager_tool.py
+++ b/tools/skill_manager_tool.py
@@ -1734,7 +1734,11 @@ def _skill_manage_batch(
# Batch created this skill: remove the partial result.
shutil.rmtree(post_dir)
except Exception as exc: # noqa: BLE001
- notes.append(f"ROLLBACK FAILED for '{nm}' ({exc})")
+ notes.append(
+ f"ROLLBACK FAILED for '{nm}' ({exc}); snapshot preserved at '{snap}'"
+ if snap is not None
+ else f"ROLLBACK FAILED for '{nm}' ({exc})"
+ )
nonlocal rollback_failed
rollback_failed = bool(notes)
return "; ".join(notes) if notes else "all touched skills rolled back"