feat: casan chat optz

This commit is contained in:
thanhnv
2026-07-19 12:14:12 +07:00
parent 709b6cccd6
commit f462079435
16 changed files with 486 additions and 90 deletions
@@ -16,6 +16,7 @@ import os
import subprocess
import sys
PYTHON_BIN = sys.executable or "/usr/bin/python3"
GENESIS_HASH = "0" * 64
@@ -118,7 +119,7 @@ def run_loop_trace(loop_run, cmd: str):
run_id = loop_run.get("run_id")
if not run_id:
return False, "missing_loop_run_id"
args = ["python3", LOOP_TRACE, cmd, "--run-id", run_id]
args = [PYTHON_BIN, LOOP_TRACE, cmd, "--run-id", run_id]
if cmd == "replay":
args += ["--profile", os.environ.get("CASAN_PROFILE", "dev")]
r = subprocess.run(args, cwd=ROOT, capture_output=True, text=True, env=env)