Skip to content

fix(code init): use the actual /connect method labels in login copy - #93

Merged
bergetbjork merged 1 commit into
mainfrom
fix/login-label-texts
Oct 23, 2026
Merged

bergetbjork merged 1 commit into
mainfrom
fix/login-label-texts

Conversation

@bergetbjork

Copy link
Copy Markdown
Contributor

Follow-up to #91. The opencode-berget-auth plugin renamed its auth methods (PRs #42/#43, live since 1.1/1.2.0 — confirmed in the original customer report: the user selected "Berget Code Seat - Login using this device"). Our instructions still referenced the old labels:

Before After (matches the actual menu)
choose "Login with Berget" choose "Berget Code Seat - Login using this device"
choose "Enter Berget API Key manually" choose "Berget API Key - Enter API key manually"

Two strings in TOOL_LOGIN_METHODS + one test assertion. 265 tests green, lint/typecheck/format clean.

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.

@berget-ai berget-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review

Summary

Updates the OpenCode login-instruction copy in TOOL_LOGIN_METHODS (the declared single source of truth for login text) to "Berget Code Seat - Login using this device" / "Berget API Key - Enter API key manually", with the corresponding test assertion updated.

Risk

LOW — This is a UI copy change flowing through existing constants; all consumers (init.ts bullets/instructions) derive from TOOL_LOGIN_METHODS so the change propagates consistently, and the one test that asserts on the copy was updated in lockstep.

Issues

None.

Verification performed:

  • The old strings ("Login with Berget", "Enter Berget API Key manually") have no remaining references anywhere in the repo (source, tests, e2e, docs).
  • All copy consumers (init.ts:171 next-steps bullets, SUBSCRIPTION_LOGIN_INSTRUCTIONS, API_KEY_LOGIN_INSTRUCTIONS, LOGIN_METHOD_BULLETS) are computed from TOOL_LOGIN_METHODS, so no site can drift.
  • auth-sync.test.ts:238 asserts on the "Berget Code Seat" substring, which is contained in the new subscription string, so the test still validates the note path; other tests are substring-based on /connect, /login, and the API key and are unaffected.
  • No security, breaking-change, performance, or operational implications — no behavior, paths, or contracts changed.

Suggestions

None.

Architecture

Not applicable — no structural change.

Inline findings


Berget AI (berget/zai-org/GLM-5.3-Flash) | PR #93

@bergetbjork
bergetbjork merged commit 507ede3 into main Oct 23, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant