Skip to content

Commit 7212a63

Browse files
fix: urls
1 parent af99284 commit 7212a63

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

extensions/vscode/src/extension/VsCodeMessenger.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { ConfigHandler } from "core/config/ConfigHandler";
2+
import { getControlPlaneEnv } from "core/control-plane/env";
23
import { DataLogger } from "core/data/log";
34
import { EDIT_MODE_STREAM_ID } from "core/edit/constants";
45
import {
@@ -387,10 +388,9 @@ export class VsCodeMessenger {
387388
);
388389

389390
if (selection === "Connect GitHub") {
391+
const env = await getControlPlaneEnv(this.ide.getIdeSettings());
390392
vscode.env.openExternal(
391-
vscode.Uri.parse(
392-
"https://hub.continue.dev/settings/integrations",
393-
),
393+
vscode.Uri.parse(`${env.APP_URL}settings/integrations`),
394394
);
395395
}
396396
} else {

gui/src/components/BackgroundMode/AgentsList.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ export function AgentsList() {
109109
className="cursor-pointer rounded-lg border border-gray-200 bg-gray-50 p-3 transition-colors hover:bg-gray-100"
110110
onClick={() => {
111111
// Open agent detail in browser
112-
const agentUrl = `https://app.continue.dev/agents/${agent.id}`;
113-
ideMessenger.post("openUrl", agentUrl);
112+
ideMessenger.post("controlPlane/openUrl", {
113+
path: `agents/${agent.id}`,
114+
});
114115
}}
115116
>
116117
<div className="flex items-start justify-between">

gui/src/components/BackgroundMode/BackgroundModeView.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,9 @@ export function BackgroundModeView({ onCreateAgent }: BackgroundModeViewProps) {
3131

3232
const handleOpenGitHubSettings = useCallback(() => {
3333
// Open the hub settings page for GitHub integration
34-
ideMessenger.post(
35-
"openUrl",
36-
"https://hub.continue.dev/settings/integrations/github",
37-
);
34+
ideMessenger.post("controlPlane/openUrl", {
35+
path: "settings/integrations/github",
36+
});
3837
}, [ideMessenger]);
3938

4039
// Check if user has GitHub installations when signed in

0 commit comments

Comments
 (0)