fix(github): label Copilot profiles by account identity (#2498)

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
ryanngit
2026-07-10 11:29:12 +07:00
committed by decolua
co-authored by Cursor
parent e79f9eddb4
commit 3a7a878f91
3 changed files with 28 additions and 1 deletions
+13
View File
@@ -101,6 +101,19 @@ describe("DB SQLite layer — public API parity", () => {
expect(back.providerSpecificData).toEqual({ foo: "bar" });
});
it("providerConnections: GitHub OAuth uses account identity as fallback name", async () => {
const c = await sqliteDb.createProviderConnection({
provider: "github",
authType: "oauth",
accessToken: "tok",
providerSpecificData: { githubLogin: "octocat" },
});
expect(c.name).toBe("octocat");
const back = await sqliteDb.getProviderConnectionById(c.id);
expect(back.name).toBe("octocat");
});
it("providerNodes: CRUD", async () => {
const n = await sqliteDb.createProviderNode({ type: "openai", name: "Test", baseUrl: "https://api.test", apiType: "openai" });
expect(n.id).toBeDefined();