This commit is contained in:
2026-02-21 18:36:37 -05:00
parent 383a3f3971
commit 7427b7a9d7
5 changed files with 154 additions and 37 deletions

View File

@@ -108,12 +108,11 @@ def log_tool_call(script: str, result: str, script_path: str | None):
ps1_path = None
ps1_name = f"(write error: {exc})"
# Append to the tool-call sequence log
# Append to the tool-call sequence log (script body omitted - see .ps1 file)
try:
_tool_fh.write(
f"## Call #{seq} [{ts_entry}]\n"
f"Script file: {ps1_path}\n\n"
f"```powershell\n{script}\n```\n\n"
f"### Result\n\n"
f"```\n{result}\n```\n\n"
f"---\n\n"