feat(python/robomp): added followup thread context to comment handling
- Normalized reviewer-bot matching by stripping a trailing `[bot]` suffix when resolving configured bot logins. - Fetched PR thread history for followup comments without directives and carried it through task execution. - Updated followup prompt rendering to include prior conversation context for handle_comment tasks.
This commit is contained in:
@@ -666,8 +666,19 @@ async def handle_pr_conversation(
|
||||
slot_uid=slot_uid,
|
||||
natives_cache=sandbox.natives_cache,
|
||||
)
|
||||
directive = await _attach_thread(github, directive, repo_full, pr_number, is_pr=True)
|
||||
await run_task(task_kind="handle_comment", inputs=inputs, comment=comment, pr_number=pr_number, directive=directive)
|
||||
thread: tuple[ThreadMessage, ...] = ()
|
||||
if directive is None:
|
||||
thread = await _fetch_thread(github, repo_full, pr_number, is_pr=True)
|
||||
else:
|
||||
directive = await _attach_thread(github, directive, repo_full, pr_number, is_pr=True)
|
||||
await run_task(
|
||||
task_kind="handle_comment",
|
||||
inputs=inputs,
|
||||
comment=comment,
|
||||
pr_number=pr_number,
|
||||
directive=directive,
|
||||
thread=thread,
|
||||
)
|
||||
|
||||
|
||||
async def cleanup_workspace(
|
||||
|
||||
Reference in New Issue
Block a user