mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 22:34:59 +00:00
fix: make new dicts and sets for each instance
This commit is contained in:
parent
152188389c
commit
13c617ed44
1 changed files with 12 additions and 7 deletions
|
@ -51,7 +51,6 @@ class Coder:
|
||||||
abs_fnames = None
|
abs_fnames = None
|
||||||
repo = None
|
repo = None
|
||||||
last_aider_commit_hash = None
|
last_aider_commit_hash = None
|
||||||
aider_commit_hashes = set()
|
|
||||||
aider_edited_files = None
|
aider_edited_files = None
|
||||||
last_asked_for_commit_time = 0
|
last_asked_for_commit_time = 0
|
||||||
repo_map = None
|
repo_map = None
|
||||||
|
@ -70,8 +69,6 @@ class Coder:
|
||||||
lint_outcome = None
|
lint_outcome = None
|
||||||
test_outcome = None
|
test_outcome = None
|
||||||
multi_response_content = ""
|
multi_response_content = ""
|
||||||
rejected_urls = set()
|
|
||||||
abs_root_path_cache = {}
|
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def create(
|
def create(
|
||||||
|
@ -219,6 +216,10 @@ class Coder:
|
||||||
summarizer=None,
|
summarizer=None,
|
||||||
total_cost=0.0,
|
total_cost=0.0,
|
||||||
):
|
):
|
||||||
|
self.aider_commit_hashes = set()
|
||||||
|
self.rejected_urls = set()
|
||||||
|
self.abs_root_path_cache = {}
|
||||||
|
|
||||||
if not fnames:
|
if not fnames:
|
||||||
fnames = []
|
fnames = []
|
||||||
|
|
||||||
|
@ -398,10 +399,14 @@ class Coder:
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def abs_root_path(self, path):
|
def abs_root_path(self, path):
|
||||||
if path not in self.abs_root_path_cache:
|
key = path
|
||||||
res = Path(self.root) / path
|
if key in self.abs_root_path_cache:
|
||||||
self.abs_root_path_cache[path] = utils.safe_abs_path(res)
|
return self.abs_root_path_cache[key]
|
||||||
return self.abs_root_path_cache[path]
|
|
||||||
|
res = Path(self.root) / path
|
||||||
|
res = utils.safe_abs_path(res)
|
||||||
|
self.abs_root_path_cache[key] = res
|
||||||
|
return res
|
||||||
|
|
||||||
fences = [
|
fences = [
|
||||||
("``" + "`", "``" + "`"),
|
("``" + "`", "``" + "`"),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue