From 4b8de8a73223c91642570952c9d4fef8c336e083 Mon Sep 17 00:00:00 2001 From: Hugo Bjork Date: Fri, 23 Oct 2026 10:03:41 +0200 Subject: [PATCH] fix(code init): use the actual /connect method labels in login copy The plugin renamed its auth methods in 1.1/1.2 (PRs #42/#43): users now see 'Berget Code Seat - Login using this device' and 'Berget API Key - Enter API key manually', not 'Login with Berget' / 'Enter Berget API Key manually'. Instructions referencing the old labels send new users hunting for menu entries that no longer exist. --- src/commands/code/__tests__/auth-sync.test.ts | 2 +- src/commands/code/auth-sync.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/commands/code/__tests__/auth-sync.test.ts b/src/commands/code/__tests__/auth-sync.test.ts index 2739498..690d73d 100644 --- a/src/commands/code/__tests__/auth-sync.test.ts +++ b/src/commands/code/__tests__/auth-sync.test.ts @@ -235,7 +235,7 @@ describe('configureAuth', () => { const notes = prompter.calls.filter((c) => c.method === 'note'); const instruction = notes.find((n) => JSON.stringify(n.args).includes('/connect')); expect(instruction).toBeDefined(); - expect(JSON.stringify(instruction!.args)).toContain('Login with Berget'); + expect(JSON.stringify(instruction!.args)).toContain('Berget Code Seat'); }); it('Case B (pi): subscription → instructs /login, writes nothing', async () => { diff --git a/src/commands/code/auth-sync.ts b/src/commands/code/auth-sync.ts index ab9bcc0..14b9ee3 100644 --- a/src/commands/code/auth-sync.ts +++ b/src/commands/code/auth-sync.ts @@ -49,9 +49,9 @@ const TOOL_NAMES = { */ export const TOOL_LOGIN_METHODS = { opencode: { - apiKey: 'choose "Enter Berget API Key manually"', + apiKey: 'choose "Berget API Key - Enter API key manually"', command: '/connect', - subscription: 'choose "Login with Berget"', + subscription: 'choose "Berget Code Seat - Login using this device"', }, pi: { apiKey: 'paste the key',