Skip to content

Commit 815f270

Browse files
JihaoXinclaude
andcommitted
Fix non-deterministic issue ordering in SimpleMemory.record_issues
Preserve input order instead of converting from set, which caused flaky test failures on Python 3.10. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4efdba4 commit 815f270

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ark/memory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def record_issues(self, issues: list, iteration: int):
268268
# New issue — start at 1
269269
self.issue_history[key] = 1
270270

271-
self.last_issues = list(current_keys)
271+
self.last_issues = [self._issue_key(i) for i in issues]
272272
self.save()
273273

274274
def get_repeat_issues(self, threshold: int = 3) -> List[Tuple[str, int]]:

0 commit comments

Comments
 (0)