Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/extension/src/credential_scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import * as fs from "node:fs";
import * as path from "node:path";
import * as os from "node:os";

import { PROVIDER_MODELS, writeOnboardingConfig } from "./onboarding_panel";
import { PROVIDER_MODELS } from "./onboarding_panel";

// ─── Types ───────────────────────────────────────────────────────────────────

Expand Down
2 changes: 1 addition & 1 deletion packages/extension/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import { watchSolverMode, applyEntitlementForMode, readSolverModeState } from ".
import { runSetCloudKeyCommand } from "./cloud_key";
import { amicodeOpsDir } from "./substrate/vault_store";
import { registerOnboardingPanel, onOnboardingComplete, onOnboardingCancelled } from "./onboarding_panel";
import { isModelConfigured, writeWelcomeShown } from "./onboarding_routing";
import { isModelConfigured } from "./onboarding_routing";
import { stagePasqalConnector } from "./pasqal_assets";
import { needsProvision, pasqalVenvDir, provisionPasqalPython } from "./pasqal_python";
import { createLocalPersonalVault, sanitizeVaultName, suggestVaultName } from "./substrate/vault_setup";
Expand Down
1 change: 0 additions & 1 deletion packages/extension/src/onboarding_webview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,6 @@ function buildForm(): void {
const importLink = document.getElementById("import-link") as HTMLAnchorElement;
const importStatus = document.getElementById("import-status") as HTMLDivElement;
const importPreview = document.getElementById("import-preview") as HTMLDivElement;
const importSection = document.getElementById("import-section") as HTMLDivElement;

importLink.addEventListener("click", (e) => {
e.preventDefault();
Expand Down
8 changes: 8 additions & 0 deletions packages/extension/test/credential_scanner.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -473,6 +473,14 @@ describe("scanCredentials — end-to-end with real default paths", () => {
console.log(` ${c.provider} (from ${c.source}) — key ${c.key.slice(0, 6)}...`);
}

// A CI runner has no real opencode install — the e2e assertion only makes
// sense on a dev machine with credentials (same skip idiom as the
// testConnection case below; #450 shipped this unguarded and CI went red).
if (result.credentials.length === 0) {
console.log(" [e2e] No credentials on this machine — skipping live assertion");
return;
}

expect(result.credentials.length).toBeGreaterThan(0);

// Should find opencode since account.json has opencode-go / opencode entries
Expand Down
Loading