Skip to content

Conversation

dcloud347
Copy link
Contributor

This pull request adds support for handling feature request issues in the issue workflow, alongside bug and question issues. It introduces new nodes and modifies existing ones to generalize context and analyzer handling beyond bugs, enabling feature requests to be processed with specialized analysis, context gathering, patch selection, and response generation. The changes also refactor message formatting to use more generic terms and keys, and add several new nodes for the feature request workflow.

Feature request workflow support:

  • Added IssueFeatureSubgraphNode to the workflow in issue_graph.py, enabling feature requests to be routed and processed as part of the issue workflow. The workflow now handles IssueType.FEATURE by invoking the new feature subgraph node instead of ending immediately. (prometheus/lang_graph/graphs/issue_graph.py) [1] [2] [3] [4]

Generalization of context and analyzer handling:

  • Refactored EditMessageNode and FinalPatchSelectionNode to use generic context and analyzer_message keys instead of bug-specific ones, and updated their message formatting accordingly. This allows these nodes to handle both bug and feature issues. (prometheus/lang_graph/nodes/edit_message_node.py, prometheus/lang_graph/nodes/final_patch_selection_node.py) [1] [2] [3] [4] [5] [6] [7] [8] [9]

New nodes for feature request handling:

  • Added IssueFeatureContextMessageNode, IssueFeatureAnalyzerMessageNode, IssueFeatureAnalyzerNode, and IssueFeatureResponderNode to support context gathering, analysis, and response generation for feature requests. These nodes provide prompts and logic specifically tailored for feature implementation analysis and reporting. (prometheus/lang_graph/nodes/issue_feature_context_message_node.py, prometheus/lang_graph/nodes/issue_feature_analyzer_message_node.py, prometheus/lang_graph/nodes/issue_feature_analyzer_node.py, prometheus/lang_graph/nodes/issue_feature_responder_node.py) [1] [2] [3] [4]

Workflow edge and node updates:

  • Updated workflow edges in issue_graph.py to ensure feature requests are properly processed and completed within the workflow, mirroring the handling for bugs and questions. (prometheus/lang_graph/graphs/issue_graph.py)

Prompt and message improvements:

  • Improved prompts throughout the new and existing nodes to clarify instructions, support feature requests, and ensure professional, user-facing responses. (prometheus/lang_graph/nodes/issue_feature_analyzer_message_node.py, prometheus/lang_graph/nodes/issue_feature_analyzer_node.py, prometheus/lang_graph/nodes/issue_feature_responder_node.py) [1] [2] [3]

@dcloud347 dcloud347 merged commit f1a8d90 into main Oct 13, 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