feat(tools): tighten patch and session workflows

This commit is contained in:
Xubin Ren committed 2026-05-21 01:25:20 +08:00
1 parent 480ca28a2d
commit 5f0ba05de5
6 files changed
+322 -29

No files matched your search

+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