From ccee6aeffa45c92f03cebf1bd7bbf47e66e7d3a5 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Wed, 2 Dec 2026 13:29:17 -0500 Subject: [PATCH] fix(8321): the remote is looked up beside a marker only when the marker sent the project, not again after it resolved the project itself Co-Authored-By: Claude Opus 5.5 --- src/grimoire/routes/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grimoire/routes/plugin.py b/src/grimoire/routes/plugin.py index b957510d..32d198c5 100644 --- a/src/grimoire/routes/plugin.py +++ b/src/grimoire/routes/plugin.py @@ -127,7 +127,7 @@ async def session_context(): # A marker named the project and the hook sent the remote beside it: look # the remote up too, so a disagreement between the two can be said. repo_project_id = 0 - if project_id and repo: + if request.args.get("project_id") and repo: repo_project_id = await repo_bindings_svc.resolve_project(g.user.id, repo) or 0 result = await plugin_ctx_svc.build_session_context( g.user.id, project_id, unbound_repo=unbound_repo,