#5334 · Desktop server destination duplication
Verdict: PARTIALLY REPRODUCED. Root-cause confidence: high for duplicate list entries and their labels. Native macOS rendering and real-account discovery were not reproduced.
1. TL;DR
The desktop server chooser can represent one remote destination twice, once as an account target and once as a saved custom URL. Both clean source checkouts returned the extra row, using synthetic servers and the real on-disk target store. The list builder concatenates the two sources rather than merging destinations, always includes the built-in target, and uses different naming rules for the two remote target types. The broader claim that discovery cannot enumerate multiple servers without the built-in runtime is not supported by the current implementation: it queries the gate directly when a cached credential is available. A small local deduplication candidate passed list and related tests, but was not pushed because Connect and custom targets use different authentication paths; merging their selectable identities needs an explicit policy decision.
2. Claims vs findings
| Claim | Finding | Evidence |
|---|---|---|
| An account target and a custom URL can duplicate one destination. | Verified | Three regression cases failed in each clean checkout: the list had three rows instead of two. The passing control retained distinct protocols, ports, paths and queries. |
| Account and custom entries use inconsistent naming. | Verified | The real output contains both QA server and qa-one.getbb.app for the same destination; account names are not necessarily handles. |
| The local target is always offered. | Verified at list boundary | builtin is present while a remote custom URL is selected. The Darwin label is This Mac; Linux reports This Computer. Whether it should be hidden is product policy, not established by this test. |
| Native menu and palette share these choices. | Verified in source | The native menu and application IPC list both call the same builder. Native macOS interaction was not tested. |
| Without the local runtime, discovery can only return a remembered server. | Refuted as a general explanation | fetchServers calls listAccountServers using a cached credential when there is no local URL. Existing tests cover multiple servers, including an offline server. Missing or refused credentials can still limit discovery. |
| The particular real account has missing servers. | Unverified | No account credentials, actual app state, private runtime data or remote user instance were accessed. |
3. Environment
- Trusted public repository:
get-bb/bb; main commite9ad6b0e3473628f96fa98378cf8528aac8984d2. - Linux x86_64; Node v22.19.0; pnpm 9.15.0; Vitest 4.1.1.
- Two separate temporary Git checkouts at the same trusted commit. Frozen-lockfile installs succeeded. The first checkout's normal Turbo build completed all 65 tasks.
- Each test uses new temporary directories and the real filesystem; no database, server process, provider session, port, account or dependency was added.
- No macOS runtime is available. Electron cannot launch on this host because
libglib-2.0.so.0is missing. The Browser Automation plugin also reported no installed Chrome/Chromium. Consequently there is no genuine native-UI screenshot; no substitute image or mock app was manufactured.
4. Minimal reproduction
Use the trusted commit and the report's investigator-authored artifacts, not an issue script or a linked branch. The regression tests exercise the production list builder through the real target store. Their names specify the contract the local candidate would enforce.
- Create a clean checkout and install existing dependencies:
git clone https://github.com/get-bb/bb.git bb-5334-repro cd bb-5334-repro git checkout --detach e9ad6b0e3473628f96fa98378cf8528aac8984d2 pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build
- Copy the complete regression artifact embedded below into
apps/desktop/test/server-list.test.ts, then run:pnpm exec turbo run test --filter=@bb/desktop -- test/server-list.test.ts
- Expected contract: one account/custom destination row, plus the existing local target; exactly one active choice. Actual on the unchanged source:
AssertionError: expected [ { id: 'builtin', …(2) }, …(2) ] to have a length of 2 but got 3 Test Files 1 failed (1) Tests 3 failed | 1 passed (4) - For complete choice objects, copy the reproduction script embedded below into
apps/desktop/test/server-choices-repro.mtsand run:node --import tsx apps/desktop/test/server-choices-repro.mts
Actual output at the trusted base:[ { "id": "builtin", "name": "This Computer", "active": false }, { "id": "connect:qa-one", "name": "QA server", "active": false }, { "id": "custom:9b72109721df0ac67209f9e8f250829d979f3df5c324adfefa045492da4a6423", "name": "qa-one.getbb.app", "active": false }, { "id": "custom:eaa51ac32efcb470d5b56c96ef7ea53322c9b466d06bece527b7f70af2d2380a", "name": "qa-two.getbb.app", "active": true } ]This scenario selects a second synthetic custom server while the first synthetic destination remains represented twice. Its data and URLs are synthetic; the script makes no network requests.
Complete regression artifact
import { mkdtemp, rm } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { afterEach, describe, expect, it } from "vitest";
import { buildDesktopServerChoices, customServerId } from "../src/server-list.js";
import { createServerTargetStore } from "../src/server-target.js";
const directories: string[] = [];
const accountServer = {
handle: "qa-one",
name: "QA server",
url: "https://qa-one.getbb.app/",
};
async function createStore() {
const directory = await mkdtemp(join(tmpdir(), "desktop-server-list-"));
directories.push(directory);
return createServerTargetStore({
storagePath: join(directory, "server-target.json"),
});
}
afterEach(async () => {
await Promise.all(directories.splice(0).map((directory) =>
rm(directory, { recursive: true, force: true }),
));
});
describe("desktop server choices", () => {
it.each(["connect", "custom", "builtin"] as const)(
"merges duplicate destinations while preserving the %s selection",
async (selection) => {
const store = await createStore();
await store.setConnectServer(accountServer);
await store.setCustomServerUrl(accountServer.url);
await store.setTarget(selection);
const customUrl = store.getCustomServerUrl();
if (customUrl === null) throw new Error("Missing custom server URL");
const choices = buildDesktopServerChoices(store, [accountServer]);
expect(choices).toHaveLength(2);
expect(choices[1]).toEqual({
id: selection === "custom"
? customServerId(customUrl)
: "connect:qa-one",
name: "QA server",
active: selection !== "builtin",
});
expect(choices.filter((choice) => choice.active)).toHaveLength(1);
},
);
it("keeps different protocols, ports, paths and queries selectable", async () => {
const store = await createStore();
const customUrls = [
"http://qa-one.getbb.app",
"https://qa-one.getbb.app:8443",
"https://qa-one.getbb.app/other",
"https://qa-one.getbb.app?deployment=other",
];
for (const url of customUrls) await store.setCustomServerUrl(url);
const choices = buildDesktopServerChoices(store, [accountServer]);
expect(choices).toHaveLength(6);
expect(choices.map((choice) => choice.id)).toEqual([
"builtin",
"connect:qa-one",
...store.getCustomServerUrls().map(customServerId),
]);
expect(choices.filter((choice) => choice.active)).toEqual([
expect.objectContaining({
id: customServerId(store.getCustomServerUrls()[3]),
}),
]);
});
});
Complete list-output reproduction script
import { mkdtemp, rm } from "node:fs/promises";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { buildDesktopServerChoices } from "../src/server-list.js";
import { createServerTargetStore } from "../src/server-target.js";
const directory = await mkdtemp(join(tmpdir(), "desktop-choice-evidence-"));
try {
const store = createServerTargetStore({
storagePath: join(directory, "server-target.json"),
});
const server = {
handle: "qa-one",
name: "QA server",
url: "https://qa-one.getbb.app/",
};
await store.setConnectServer(server);
await store.setCustomServerUrl(server.url);
await store.setCustomServerUrl("https://qa-two.getbb.app");
console.log(JSON.stringify(buildDesktopServerChoices(store, [server]), null, 2));
} finally {
await rm(directory, { recursive: true, force: true });
}
5. Root cause
buildDesktopServerChoices unconditionally starts with the built-in row, appends account rows by handle, then appends every custom URL using a URL-derived hash. There is no common destination identity or cross-source comparison. Because the two representations have unrelated IDs, saving the account destination as a custom URL produces a second row. Account rows use server.name; custom rows use new URL(url).host.
import { createHash } from "node:crypto";
import type { BbDesktopServerChoice } from "@bb/desktop-contract";
import {
BUILTIN_SERVER_NAME,
type ConnectServerRef,
type ServerTargetStore,
} from "./server-target.js";
export function customServerId(url: string): string {
return `custom:${createHash("sha256").update(url).digest("hex")}`;
}
export function buildDesktopServerChoices(
store: ServerTargetStore | null,
connectServers: readonly ConnectServerRef[],
): BbDesktopServerChoice[] {
const target = store?.getTarget() ?? { kind: "builtin" };
return [
{
id: "builtin",
name: BUILTIN_SERVER_NAME,
active: target.kind === "builtin",
},
...connectServers.map((server) => ({
id: `connect:${server.handle}`,
name: server.name,
active:
target.kind === "connect" && target.server.handle === server.handle,
})),
...(store?.getCustomServerUrls() ?? []).map((url) => ({
id: customServerId(url),
name: new URL(url).host,
active: target.kind === "custom" && target.url === url,
})),
];
}
Menu and app list assembly also appends the remembered account target if discovery did not return its handle. Local target naming explains the platform-specific built-in label. Existing custom URL normalization provides an existing canonical comparison function without collapsing different protocols, ports, paths or queries.
Discovery correction: fetchServers uses the local plugin RPC when a local runtime URL exists, otherwise enumerates account servers directly with the cached credential. selectTargetableConnectServers excludes only the credential's self handle, not all offline servers. The absence of other servers in a particular user's desktop therefore needs credential/sync-state evidence, not the blanket explanation tested here.
Safety constraint: Selection dispatch treats connect: and custom: as different target modes. Target activation authenticates Connect targets and starts session renewal, while custom targets load the destination directly. URL equality alone does not prove these selectable modes are interchangeable.
6. Proposed fix and simple-fix gate
First decide which target mode should represent a destination when both account and custom routes exist. Preserve the active mode, define inactive-mode selection behavior, and verify the intended authentication and renewal behavior before removing any alternative route. Separately decide whether built-in visibility should depend on active/running/previously-used state, and whether names should prefer handles or account display names. The current list/store contract does not encode usage or local runtime availability.
A stopped local candidate uses the existing URL normalizer, removes custom rows matching an account destination, preserves the active custom ID, and retains current account names and built-in visibility. Its 107-line diff spans two existing desktop files (100 additions, seven deletions), adds no dependency, generated module, lockfile, migration or stored-data change, and passes git diff --check. It is provided as investigation evidence, not as an approved fix.
Stopped local candidate diff — do not apply without resolving the authentication policy
diff --git a/apps/desktop/src/server-list.ts b/apps/desktop/src/server-list.ts
index 716d18b96..aa82b4b24 100644
--- a/apps/desktop/src/server-list.ts
+++ b/apps/desktop/src/server-list.ts
@@ -2,6 +2,7 @@ import { createHash } from "node:crypto";
import type { BbDesktopServerChoice } from "@bb/desktop-contract";
import {
BUILTIN_SERVER_NAME,
+ normalizeCustomServerUrl,
type ConnectServerRef,
type ServerTargetStore,
} from "./server-target.js";
@@ -15,19 +16,29 @@ export function buildDesktopServerChoices(
connectServers: readonly ConnectServerRef[],
): BbDesktopServerChoice[] {
const target = store?.getTarget() ?? { kind: "builtin" };
+ const customUrls = new Set(store?.getCustomServerUrls() ?? []);
return [
{
id: "builtin",
name: BUILTIN_SERVER_NAME,
active: target.kind === "builtin",
},
- ...connectServers.map((server) => ({
- id: `connect:${server.handle}`,
- name: server.name,
- active:
- target.kind === "connect" && target.server.handle === server.handle,
- })),
- ...(store?.getCustomServerUrls() ?? []).map((url) => ({
+ ...connectServers.map((server) => {
+ const url = normalizeCustomServerUrl(server.url);
+ const customActive =
+ url !== null && target.kind === "custom" && target.url === url;
+ if (url !== null) customUrls.delete(url);
+ return {
+ id: customActive
+ ? customServerId(target.url)
+ : `connect:${server.handle}`,
+ name: server.name,
+ active:
+ customActive ||
+ (target.kind === "connect" && target.server.handle === server.handle),
+ };
+ }),
+ ...[...customUrls].map((url) => ({
id: customServerId(url),
name: new URL(url).host,
active: target.kind === "custom" && target.url === url,
diff --git a/apps/desktop/test/server-list.test.ts b/apps/desktop/test/server-list.test.ts
new file mode 100644
index 000000000..c36bd951a
--- /dev/null
+++ b/apps/desktop/test/server-list.test.ts
@@ -0,0 +1,82 @@
+import { mkdtemp, rm } from "node:fs/promises";
+import { tmpdir } from "node:os";
+import { join } from "node:path";
+import { afterEach, describe, expect, it } from "vitest";
+import {
+ buildDesktopServerChoices,
+ customServerId,
+} from "../src/server-list.js";
+import { createServerTargetStore } from "../src/server-target.js";
+
+const directories: string[] = [];
+const accountServer = {
+ handle: "qa-one",
+ name: "QA server",
+ url: "https://qa-one.getbb.app/",
+};
+
+async function createStore() {
+ const directory = await mkdtemp(join(tmpdir(), "desktop-server-list-"));
+ directories.push(directory);
+ return createServerTargetStore({
+ storagePath: join(directory, "server-target.json"),
+ });
+}
+
+afterEach(async () => {
+ await Promise.all(
+ directories
+ .splice(0)
+ .map((directory) => rm(directory, { recursive: true, force: true })),
+ );
+});
+
+describe("desktop server choices", () => {
+ it.each(["connect", "custom", "builtin"] as const)(
+ "merges duplicate destinations while preserving the %s selection",
+ async (selection) => {
+ const store = await createStore();
+ await store.setConnectServer(accountServer);
+ await store.setCustomServerUrl(accountServer.url);
+ await store.setTarget(selection);
+ const customUrl = store.getCustomServerUrl();
+ if (customUrl === null) throw new Error("Missing custom server URL");
+
+ const choices = buildDesktopServerChoices(store, [accountServer]);
+
+ expect(choices).toHaveLength(2);
+ expect(choices[1]).toEqual({
+ id:
+ selection === "custom" ? customServerId(customUrl) : "connect:qa-one",
+ name: "QA server",
+ active: selection !== "builtin",
+ });
+ expect(choices.filter((choice) => choice.active)).toHaveLength(1);
+ },
+ );
+
+ it("keeps different protocols, ports, paths and queries selectable", async () => {
+ const store = await createStore();
+ const customUrls = [
+ "http://qa-one.getbb.app",
+ "https://qa-one.getbb.app:8443",
+ "https://qa-one.getbb.app/other",
+ "https://qa-one.getbb.app?deployment=other",
+ ];
+ for (const url of customUrls) await store.setCustomServerUrl(url);
+
+ const choices = buildDesktopServerChoices(store, [accountServer]);
+
+ expect(choices).toHaveLength(6);
+ expect(choices.map((choice) => choice.id)).toEqual([
+ "builtin",
+ "connect:qa-one",
+ ...store.getCustomServerUrls().map(customServerId),
+ ]);
+ expect(choices.filter((choice) => choice.active)).toEqual([
+ expect.objectContaining({
+ id: customServerId(store.getCustomServerUrls()[3]),
+ }),
+ ]);
+ });
+});
Its four focused cases pass, and all 44 relevant tests plus the desktop typecheck pass. The full desktop suite has 500 passes, two skips and one unrelated packaging failure caused by missing libglib-2.0.so.0; that same packaging test fails on the unchanged second checkout. No unrelated production or packaging changes were made.
No pull request was opened and no source branch was committed or pushed. The simple-fix gate fails on target-mode/authentication semantics and unresolved visibility/naming policy. A list-only patch cannot safely resolve the complete report under the rule's prohibition on authentication changes and product decisions.
7. Related issues and pull requests
The issue timeline and an open-PR search for trusted issue number 5334 returned no linked/open pull request during the investigation. No linked branch or issue-supplied URL was fetched. No duplicate issue was established in the small desktop triage sample.
8. Verification
The same investigator repeated the regression in a second clean checkout at e9ad6b0e3473628f96fa98378cf8528aac8984d2, verified that its initial tracked state was clean, installed using the frozen lockfile, and added only the investigator-authored test artifact. No production code from the candidate was applied there.
pnpm exec turbo run test --filter=@bb/desktop -- test/server-list.test.ts exit code: 1 Tests: 3 failed | 1 passed (4) Failure: expected length 2, received 3
The second run confirms the list-boundary findings. Both actual command results are embedded below; raw evidence remains in the investigator's local storage rather than the public repository. No claim of a separate reviewer or independent agent is made. The report corrects the unsupported discovery explanation and explicitly limits native/account verification.
First clean run
• turbo 2.10.12
• Packages in scope: @bb/desktop
• Running test in 1 packages
• Remote caching disabled
@bb/templates:generate:plugin-scaffold: cache miss, executing bcd5b6b7d88b1435
@bb/templates:generate:templates: cache miss, executing 67355c8af2b50393
//:ensure-native-modules: cache bypass, force executing 18a62a0795d553f4
@bb/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates [temporary-work-directory]/base/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold [temporary-work-directory]/base/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules [temporary-work-directory]/base
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
//:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification
@bb/desktop:test: cache miss, executing 60245dc167f1c205
@bb/desktop:test:
@bb/desktop:test: > @bb/desktop@0.46.0 test [temporary-work-directory]/base/apps/desktop
@bb/desktop:test: > install-electron && vitest run --config vitest.config.ts "test/server-list.test.ts"
@bb/desktop:test:
@bb/desktop:test:
@bb/desktop:test: RUN v4.1.1 [temporary-work-directory]/base/apps/desktop
@bb/desktop:test:
@bb/desktop:test: ❯ |@bb/desktop| test/server-list.test.ts (4 tests | 3 failed) 27ms
@bb/desktop:test: × merges duplicate destinations while preserving the connect selection 14ms
@bb/desktop:test: × merges duplicate destinations while preserving the custom selection 3ms
@bb/desktop:test: × merges duplicate destinations while preserving the builtin selection 3ms
@bb/desktop:test: ✓ keeps different protocols, ports, paths and queries selectable 5ms
@bb/desktop:test:
@bb/desktop:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯
@bb/desktop:test:
@bb/desktop:test: FAIL |@bb/desktop| test/server-list.test.ts > desktop server choices > merges duplicate destinations while preserving the connect selection
@bb/desktop:test: FAIL |@bb/desktop| test/server-list.test.ts > desktop server choices > merges duplicate destinations while preserving the custom selection
@bb/desktop:test: FAIL |@bb/desktop| test/server-list.test.ts > desktop server choices > merges duplicate destinations while preserving the builtin selection
@bb/desktop:test: AssertionError: expected [ { id: 'builtin', …(2) }, …(2) ] to have a length of 2 but got 3
@bb/desktop:test:
@bb/desktop:test: - Expected
@bb/desktop:test: + Received
@bb/desktop:test:
@bb/desktop:test: - 2
@bb/desktop:test: + 3
@bb/desktop:test:
@bb/desktop:test: ❯ test/server-list.test.ts:42:23
@bb/desktop:test: 40| const choices = buildDesktopServerChoices(store, [accountServer]…
@bb/desktop:test: 41|
@bb/desktop:test: 42| expect(choices).toHaveLength(2);
@bb/desktop:test: | ^
@bb/desktop:test: 43| expect(choices[1]).toEqual({
@bb/desktop:test: 44| id: selection === "custom"
@bb/desktop:test:
@bb/desktop:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/3]⎯
@bb/desktop:test:
@bb/desktop:test:
@bb/desktop:test: Test Files 1 failed (1)
@bb/desktop:test: Tests 3 failed | 1 passed (4)
@bb/desktop:test: Start at 16:25:38
@bb/desktop:test: Duration 318ms (transform 29ms, setup 0ms, import 94ms, tests 27ms, environment 0ms)
@bb/desktop:test:
@bb/desktop:test: ELIFECYCLE Test failed. See above for more details.
@bb/desktop#test: ERROR command ([temporary-work-directory]/base/apps/desktop) /usr/local/bin/pnpm run test test/server-list.test.ts exited (1)
Tasks: 3 successful, 4 total
Cached: 0 cached, 4 total
Time: 4.309s
Failed: @bb/desktop#test
ERROR run failed: command exited (1)
Second clean run
• turbo 2.10.12
• Packages in scope: @bb/desktop
• Running test in 1 packages
• Remote caching disabled
//:ensure-native-modules: cache bypass, force executing 18a62a0795d553f4
@bb/templates:generate:plugin-scaffold: cache miss, executing bcd5b6b7d88b1435
@bb/templates:generate:templates: cache miss, executing 67355c8af2b50393
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules [temporary-work-directory]/verify
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
@bb/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates [temporary-work-directory]/verify/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold [temporary-work-directory]/verify/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold:
//:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification
@bb/desktop:test: cache miss, executing 60245dc167f1c205
@bb/desktop:test:
@bb/desktop:test: > @bb/desktop@0.46.0 test [temporary-work-directory]/verify/apps/desktop
@bb/desktop:test: > install-electron && vitest run --config vitest.config.ts "test/server-list.test.ts"
@bb/desktop:test:
@bb/desktop:test:
@bb/desktop:test: RUN v4.1.1 [temporary-work-directory]/verify/apps/desktop
@bb/desktop:test:
@bb/desktop:test: ❯ |@bb/desktop| test/server-list.test.ts (4 tests | 3 failed) 27ms
@bb/desktop:test: × merges duplicate destinations while preserving the connect selection 14ms
@bb/desktop:test: × merges duplicate destinations while preserving the custom selection 3ms
@bb/desktop:test: × merges duplicate destinations while preserving the builtin selection 4ms
@bb/desktop:test: ✓ keeps different protocols, ports, paths and queries selectable 5ms
@bb/desktop:test:
@bb/desktop:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 3 ⎯⎯⎯⎯⎯⎯⎯
@bb/desktop:test:
@bb/desktop:test: FAIL |@bb/desktop| test/server-list.test.ts > desktop server choices > merges duplicate destinations while preserving the connect selection
@bb/desktop:test:
@bb/desktop:test: FAIL |@bb/desktop| test/server-list.test.ts > desktop server choices > merges duplicate destinations while preserving the custom selection
@bb/desktop:test: Test Files 1 failed (1)
@bb/desktop:test: Tests 3 failed | 1 passed (4)
@bb/desktop:test: FAIL |@bb/desktop| test/server-list.test.ts > desktop server choices > merges duplicate destinations while preserving the builtin selection
@bb/desktop:test: Start at 16:26:12
@bb/desktop:test: Duration 322ms (transform 34ms, setup 0ms, import 95ms, tests 27ms, environment 0ms)
@bb/desktop:test:
@bb/desktop:test: AssertionError: expected [ { id: 'builtin', …(2) }, …(2) ] to have a length of 2 but got 3
@bb/desktop:test:
@bb/desktop:test: - Expected
@bb/desktop:test: + Received
@bb/desktop:test:
@bb/desktop:test: - 2
@bb/desktop:test: + 3
@bb/desktop:test:
@bb/desktop:test: ❯ test/server-list.test.ts:42:23
@bb/desktop:test: 40| const choices = buildDesktopServerChoices(store, [accountServer]…
@bb/desktop:test: 41|
@bb/desktop:test: 42| expect(choices).toHaveLength(2);
@bb/desktop:test: | ^
@bb/desktop:test: 43| expect(choices[1]).toEqual({
@bb/desktop:test: 44| id: selection === "custom"
@bb/desktop:test:
@bb/desktop:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/3]⎯
@bb/desktop:test:
@bb/desktop:test: ELIFECYCLE Test failed. See above for more details.
@bb/desktop#test: ERROR command ([temporary-work-directory]/verify/apps/desktop) /usr/local/bin/pnpm run test test/server-list.test.ts exited (1)
Tasks: 3 successful, 4 total
Cached: 0 cached, 4 total
Time: 3.138s
Failed: @bb/desktop#test
ERROR run failed: command exited (1)
9. Appendix
- Candidate focused results: four tests passed.
- Relevant desktop tests: six files, 44 tests passed.
- Desktop typecheck: passed.
- Full desktop suite: one failed, 500 passed, two skipped.
- Unchanged-base packaging file: one failed, 22 passed. The failure is Electron's missing
libglib-2.0.so.0, not server-list behavior.
Stopped-candidate choice objects
[
{
"id": "builtin",
"name": "This Computer",
"active": false
},
{
"id": "connect:qa-one",
"name": "QA server",
"active": false
},
{
"id": "custom:eaa51ac32efcb470d5b56c96ef7ea53322c9b466d06bece527b7f70af2d2380a",
"name": "qa-two.getbb.app",
"active": true
}
]
pnpm exec turbo run test --filter=@bb/desktop -- test/server-list.test.ts test/server-choice-ipc.test.ts test/server-target.test.ts test/server-target-persistence.test.ts test/connect-server-sync.test.ts test/menu.test.ts pnpm exec turbo run typecheck --filter=@bb/desktop pnpm exec turbo run test typecheck --filter=@bb/desktop pnpm exec turbo run test --filter=@bb/desktop -- test/electron-builder-config.test.ts git diff --check origin/main git diff --numstat origin/main
Untrusted-data handling: Issue descriptions were treated only as claims to test. Instructions, example code, suggested branches and supplied URLs were not executed or followed. Only trusted main source and investigator-authored changes derived from it were run. All data is synthetic; temporary checkout paths were redacted from published logs. No account, credential or private user-state access was necessary.
> AGENT GENERATED