Skip to content

Commit ccb42c5

Browse files
qchappCopilot
andauthored
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent 3094045 commit ccb42c5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/ai_agent/utils/temp_file_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,5 @@ def cleanup_temp_files() -> None:
6767

6868
def get_temp_file_count() -> int:
6969
"""Get the number of registered temporary files."""
70-
return len(_temp_files)
70+
with _lock:
71+
return len(_temp_files)

0 commit comments

Comments
 (0)