Skip to content

Commit

Permalink
adding missing context to jinja template
Browse files Browse the repository at this point in the history
  • Loading branch information
malhotra5 committed Nov 18, 2024
1 parent fac5237 commit e6781be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 1 addition & 3 deletions openhands/resolver/issue_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -559,9 +559,7 @@ def get_instruction(
# Format thread comments if they exist
thread_context = ''
if issue.thread_comments:
thread_context = '\n\nPR Thread Comments:\n' + '\n---\n'.join(
issue.thread_comments
)
thread_context = '\n---\n'.join(issue.thread_comments)
images.extend(self._extract_image_urls(thread_context))

instruction = template.render(
Expand Down
7 changes: 5 additions & 2 deletions openhands/resolver/prompts/resolve/basic-followup.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ The feedback may be addressed to specific code files. In this case the file loca
Please update the code based on the feedback for the repository in /workspace.
An environment has been set up for you to start working. You may assume all necessary tools are installed.

# Issues addressed
# Issues addressed
{{ issues }}

# Review comments
Expand All @@ -12,6 +12,9 @@ An environment has been set up for you to start working. You may assume all nece
# Review threads
{{ review_threads }}

# PR Thread Comments
{{ thread_context }}

# Review thread files
{{ files }}

Expand All @@ -21,4 +24,4 @@ You SHOULD INCLUDE PROPER INDENTATION in your edit commands.{% if repo_instructi
Some basic information about this repository:
{{ repo_instruction }}{% endif %}

When you think you have fixed the issue through code changes, please finish the interaction.
When you think you have fixed the issue through code changes, please finish the interaction.

0 comments on commit e6781be

Please sign in to comment.