feat(tools): tighten patch and session workflows

This commit is contained in:
Xubin Ren
2026-05-21 01:25:20 +08:00
parent 480ca28a2d
commit 5f0ba05de5
6 changed files with 322 additions and 29 deletions
+2
View File
@@ -219,6 +219,8 @@ def _resolve_apply_patch_paths(
patch = params.get("patch")
if not isinstance(patch, str) or not patch.strip():
return []
if params.get("dry_run") is True:
return []
try:
from nanobot.agent.tools.apply_patch import _parse_patch