Skip to content

Commit 67fe08b

Browse files
committed
fix(devin): share the api-server default and drop the out-of-scope GUI comment
The migration wrote its own copy of the Cognition host, so a later change to the shared default would have left it writing the old address. It now imports DEVIN_DEFAULT_API_SERVER. The GUI comment rewrite went back to its dev state. It was unrelated cleanup by the PR checklist's own standard, and because the screenshot gate is path-based it was asking a comment-only diff to produce a screenshot of nothing. It can go in on its own.
1 parent f97612c commit 67fe08b

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

‎gui/src/provider-icons.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ const PROVIDER_ICON_ALIASES: Record<string, string> = {
1414
cursor: "cursor-color.svg",
1515
deepseek: "deepseek-color.svg",
1616
/*
17-
* One mark for both Devin providers. They are one product reached two ways:
18-
* `devin` signs in through Windsurf in a browser, `devin-cli` imports the
19-
* credential the installed CLI already holds, and both stream over the same
20-
* Cognition adapter. Windsurf still publishes its own `W` app icon, but showing it next
17+
* One mark for both Devin providers. `devin` is Cognition's cloud, reached
18+
* through the Windsurf sign-in, and `devin-cli` drives the installed Devin
19+
* CLI; they are two transports into the same product, the meta-model/meta-muse
20+
* shape. Windsurf still publishes its own `W` app icon, but showing it next
2121
* to a row labelled Cognition would name the retired brand.
2222
*/
2323
devin: "devin.svg",

‎src/providers/devin-cli-authmode-migration.ts‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
* resolve a host.
2727
*/
2828
import { PROVIDER_REGISTRY } from "./registry";
29+
import { DEVIN_DEFAULT_API_SERVER } from "../oauth/devin/api-base";
2930
import type { OcxConfig } from "../types";
3031

3132
export interface DevinCliAuthModeProjection {
@@ -38,7 +39,6 @@ export interface DevinCliAuthModeProjection {
3839
const RETIRED_ACP_ADAPTER = "devin-cli";
3940
/** Identity-only URL the ACP rows carried; never a destination. */
4041
const RETIRED_ACP_IDENTITY_HOST = "cli.devin.ai";
41-
const DEVIN_API_SERVER = "https://server.codeium.com";
4242

4343
function retiredIdentityUrl(baseUrl: string | undefined): boolean {
4444
if (typeof baseUrl !== "string") return false;
@@ -61,8 +61,10 @@ export function projectDevinCliAuthMode(config: OcxConfig): DevinCliAuthModeProj
6161
changed = true;
6262
let detail = "";
6363
if (retiredIdentityUrl(row.baseUrl)) {
64-
row.baseUrl = DEVIN_API_SERVER;
65-
detail = ` and repointed its baseUrl at ${DEVIN_API_SERVER}`;
64+
// The shared default, not a second copy of the host: a migration that
65+
// hardcodes it would keep writing the old address after the default moves.
66+
row.baseUrl = DEVIN_DEFAULT_API_SERVER;
67+
detail = ` and repointed its baseUrl at ${DEVIN_DEFAULT_API_SERVER}`;
6668
}
6769
warnings.push(
6870
`rewrote "${name}" adapter ${RETIRED_ACP_ADAPTER} -> devin${detail}: the local ACP transport `
@@ -85,4 +87,3 @@ export function projectDevinCliAuthMode(config: OcxConfig): DevinCliAuthModeProj
8587
);
8688
return { config, changed: true, warnings };
8789
}
88-

0 commit comments

Comments
 (0)