Skip to content

Prometheus V1.2#104

Merged
dcloud347 merged 16 commits into
mainfrom
dev
Aug 10, 2025
Merged

Prometheus V1.2#104
dcloud347 merged 16 commits into
mainfrom
dev

Conversation

@dcloud347

Copy link
Copy Markdown
Contributor

This pull request introduces several improvements to repository usage management and context extraction within the application. The most significant changes are the addition of a repository working status to prevent concurrent operations, refactoring the context extraction node for clearer prompts and improved deduplication, and making several methods asynchronous for better performance and reliability.

Repository Usage Management

  • Added an is_working boolean field to the Repository model to track if a repository is currently being processed, and introduced logic to prevent concurrent operations on the same repository. (prometheus/app/entity/repository.py, prometheus/app/api/routes/issue.py, prometheus/app/services/repository_service.py) [1] [2] [3]
  • Implemented update_repository_status in RepositoryService to safely set the working status before and after issue processing, including error handling and edge cases. (prometheus/app/services/repository_service.py, prometheus/app/services/issue_service.py, prometheus/app/api/routes/issue.py) [1] [2] [3]

Async Refactoring and Performance

  • Refactored answer_issue in IssueService and related routes to be asynchronous, including async invocation of patch creation and branch pushing, to improve responsiveness and reliability. (prometheus/app/services/issue_service.py, prometheus/app/api/routes/issue.py, prometheus/git/git_repository.py) [1] [2] [3] [4] [5]

Context Extraction Node Improvements

  • Rewrote the context extraction node to use a more structured prompt with clearer instructions, improved deduplication logic, and more robust handling of context selection. (prometheus/lang_graph/nodes/context_extraction_node.py, prometheus/utils/lang_graph_util.py) [1] [2] [3] [4] [5]

File Utilities Enhancement

  • Updated read_file_with_line_numbers to prepend line numbers to extracted file content, improving traceability in context summaries. (prometheus/utils/file_utils.py) [1] [2]

Configuration and Limits

  • Reduced the recursion limit in the issue not verified bug subgraph to prevent excessive resource usage. (prometheus/lang_graph/subgraphs/issue_not_verified_bug_subgraph.py)

@dcloud347 dcloud347 merged commit e73d4ed into main Aug 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant