Skip to content

Commit ca9224a

Browse files
fix: missing org id
1 parent 48a2517 commit ca9224a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gui/src/components/BackgroundMode/BackgroundModeView.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ export function BackgroundModeView({
5555
setCheckingGitHub(true);
5656
// Try to list agents - if this fails with GitHub token error,
5757
// we know GitHub isn't connected
58-
const result = await ideMessenger.request("listBackgroundAgents", {});
58+
const organizationId =
59+
currentOrg?.id !== "personal" ? currentOrg?.id : undefined;
60+
const result = await ideMessenger.request("listBackgroundAgents", {
61+
organizationId,
62+
});
5963

6064
// Check for error response
6165
if ("error" in result) {

0 commit comments

Comments
 (0)