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:
can1357
2026-05-25 20:11:03 +02:00
parent 7a867a5e85
commit 4cd86383c0
8 changed files with 117 additions and 11 deletions
+13 -2
View File
@@ -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(