Fix config override bug by recreating LMs after load_state
This commit is contained in:
@@ -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
|
||||
)
|
||||
@@ -302,4 +304,5 @@ if __name__ == "__main__":
|
||||
MODAIC_REPO_PATH,
|
||||
commit_message="Fix config override bug by recreating LMs after load_state",
|
||||
branch="dev"
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user