From 5e4c6bb804e3a90c3f8c6c7247a0aa6063734a0b Mon Sep 17 00:00:00 2001 From: aran-yogesh Date: Mon, 16 Mar 2026 21:45:21 -0700 Subject: [PATCH] fix: include resolved repo in Linear prompt to prevent repo ambiguity --- agent/prompt.py | 2 +- agent/webapp.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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"