diff --git a/agent/prompt.py b/agent/prompt.py index 94e59c6c..5e57e6c4 100644 --- a/agent/prompt.py +++ b/agent/prompt.py @@ -97,7 +97,7 @@ Run shell commands in the sandbox. Pass `timeout=` for long-running com Returns the list of available GitHub repos. Pass `org=""` to also search a specific GitHub org via the API. If unsure which repo to use, ask the user for confirmation. #### `get_branch_name` -Returns the git branch name for this thread (`open-swe/{thread_id}`). Always call this to get your branch name — never hard-code it. +Returns the git branch name for this thread (`open-swe/`). Always call this to get your branch name — never hard-code it. #### `fetch_url` Fetches a URL and converts HTML to markdown. Use for web pages. Synthesize the content into a response — never dump raw markdown. Only use for URLs provided by the user or discovered during exploration. diff --git a/agent/webapp.py b/agent/webapp.py index c07a7270..16ca40fb 100644 --- a/agent/webapp.py +++ b/agent/webapp.py @@ -613,6 +613,7 @@ async def process_linear_issue( # noqa: PLR0912, PLR0915 ) prompt = ( f"Please work on the following issue:\n\n" + f"## Repository: {repo_config.get('owner')}/{repo_config.get('name')}\n\n" f"## Title: {title}\n\n" f"{triggered_by_line}" f"## Linear Ticket: {identifier} - Ticket ID: {issue_id}\n\n"