mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-10-06 21:42:13 +00:00
thread_id error
This commit is contained in:
parent
b7c17774b3
commit
ae5b5b6de4
1 changed files with 7 additions and 2 deletions
|
|
@ -136,13 +136,18 @@ I've {action} pull request to address this issue:
|
||||||
commit_message = pr_payload.get("commit_message", pr_title)
|
commit_message = pr_payload.get("commit_message", pr_title)
|
||||||
|
|
||||||
if not thread_id:
|
if not thread_id:
|
||||||
raise ValueError("Missing thread_id in middleware config")
|
if linear_issue_id and last_message_content:
|
||||||
|
comment = f"""🤖 **Agent Response**
|
||||||
|
|
||||||
|
{last_message_content}"""
|
||||||
|
await comment_on_linear_issue(linear_issue_id, comment)
|
||||||
|
raise ValueError("threadId not found")
|
||||||
|
|
||||||
repo_config = configurable.get("repo", {})
|
repo_config = configurable.get("repo", {})
|
||||||
repo_owner = repo_config.get("owner")
|
repo_owner = repo_config.get("owner")
|
||||||
repo_name = repo_config.get("name")
|
repo_name = repo_config.get("name")
|
||||||
|
|
||||||
sandbox_backend = await get_sandbox_backend(thread_id) if thread_id else None
|
sandbox_backend = await get_sandbox_backend(thread_id)
|
||||||
|
|
||||||
repo_dir = f"/workspace/{repo_name}"
|
repo_dir = f"/workspace/{repo_name}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue