From ca9224a26dc075896efd82ceeefef984116ced8c Mon Sep 17 00:00:00 2001 From: Tomasz Stefaniak Date: Thu, 16 Oct 2025 16:21:46 -0700 Subject: [PATCH] fix: missing org id --- gui/src/components/BackgroundMode/BackgroundModeView.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gui/src/components/BackgroundMode/BackgroundModeView.tsx b/gui/src/components/BackgroundMode/BackgroundModeView.tsx index 8e7551b94..b721d28c3 100644 --- a/gui/src/components/BackgroundMode/BackgroundModeView.tsx +++ b/gui/src/components/BackgroundMode/BackgroundModeView.tsx @@ -55,7 +55,11 @@ export function BackgroundModeView({ setCheckingGitHub(true); // Try to list agents - if this fails with GitHub token error, // we know GitHub isn't connected - const result = await ideMessenger.request("listBackgroundAgents", {}); + const organizationId = + currentOrg?.id !== "personal" ? currentOrg?.id : undefined; + const result = await ideMessenger.request("listBackgroundAgents", { + organizationId, + }); // Check for error response if ("error" in result) {