Fix config override bug by recreating LMs after load_state

This commit is contained in:
2026-01-24 02:49:06 -08:00
parent 29a153616c
commit 7fa08346fb
2 changed files with 53 additions and 29 deletions

View File

@@ -121,6 +121,7 @@ def grep_files(pattern: str, path: str = ".") -> str:
Matching lines in format 'filepath:line_num:content'
"""
print(f"{MAGENTA}⏺ Grep: {pattern}{RESET}")
regex = re.compile(pattern)
hits = []
for filepath in globlib.glob(path + "/**", recursive=True):
@@ -146,6 +147,7 @@ def run_bash(cmd: str) -> str:
Command output (stdout and stderr combined)
"""
print(f"{MAGENTA}⏺ Bash: {cmd}{RESET}")
proc = subprocess.Popen(
cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True
)