Skip to content

test(app): save a Go key before connecting OpenCode Go from Settings - #65743

Merged
Hona merged 1 commit into
devfrom
go-settings-test
Nov 23, 2026
Merged

Hona merged 1 commit into
devfrom
go-settings-test

Conversation

@Hona

@Hona Hona commented Nov 23, 2026

Copy link
Copy Markdown
Member

Fixes the e2e (app-2) failure on dev since #65740, on Linux and Windows.

  • Cause: fix(app): hide OpenCode Go from Settings popular providers #65740 lists OpenCode Go in Settings › Providers only when a Go key is already saved. providers: OpenCode Go connects with its own methods, not the Console sign-in clicked Connect on that row with no saved key, so the row was never there.
  • Fix: the test saves a Go key in its integration fixture. A provider opened from its Settings row goes straight to the connect step, so the rest of the test is unchanged.
  • New coverage: the fresh-install table now asserts that Settings offers no OpenCode Go row without a saved key, which nothing checked.
integrations: [
  ...consoleIntegrations.filter((integration) => integration.id !== "opencode-go"),
  {
    id: "opencode-go",
    name: "OpenCode Go",
    methods: [{ type: "key" }],
    connections: [{ type: "credential", id: "cred_go", label: "Go key", method: "key" }],
  },
],

No feature flag: tests only.

@Hona
Hona enabled auto-merge (squash) November 23, 2026 08:13
@Hona
Hona merged commit 609e4bb into dev Nov 23, 2026
11 checks passed
@Hona
Hona deleted the go-settings-test branch November 23, 2026 08:14

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I found no problems with this change. On the base, the Go test times out because Settings has no OpenCode Go row to click. With this PR it passes, and the fresh-install table rows, including the new "no OpenCode Go row" assertion, passed in repeated runs. The fixture matches the saved-key condition #65740 added in providers.tsx. typecheck:e2e gives the same errors on base and PR, none in this file's changed lines.

Public API: unchanged (tests only).

@opencodejr opencodejr Bot mentioned this pull request Nov 23, 2026
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