#5773 · Windows detection retains macOS downloads
Verdict: REPRODUCED · Root-cause confidence: high · reproduction label: confirmed-repro
1. TL;DR
The shared download selector never identifies Windows: it only recognizes macOS and Linux. The hook begins with macOS and updates only for a non-null detection result, so Windows remains on macOS. An agent-authored regression reproduces this on unchanged trusted main, including the actual download-button renderer for nav, hero, and closer placements. All five checks fail again in a second clean checkout. This is deterministic source/component evidence, not a claim that native Windows or browser hydration was exercised.
2. Claims vs findings
| Claim | Finding | Evidence |
|---|---|---|
| Windows platform data does not select Windows. | Verified | Legacy platform and client-hints regression cases both receive null. |
| Three primary download placements retain macOS. | Verified at shared-component boundary | Actual DesktopDownloadButton renders /download/macos?placement=nav, hero, and closer with Download for macOS. Call-site tracing shows the homepage uses these components. |
| Existing tests encode Windows returning null. | Verified | Existing platform test explicitly asserts that result; the existing suite passes. |
| Chrome hydration and native Windows behavior match the source result. | Not directly verified here | Browser Automation could not start because Chrome/Chromium is absent. No screenshot or native Windows run is claimed. |
| No open linked fix exists. | No longer true at investigation time | GitHub cross-reference metadata identifies open draft PR #5774. |
3. Environment
- Trusted repository: public get-bb/bb; origin/main 598e1857390a108bad2d1ad3c378ab2d38bb77f9. Canonical main was fetched and matched the local origin/main reference.
- Linux 4.19.0-gvisor; Node v22.19.0; pnpm 9.15.0; Vitest v4.1.1.
- Two separate clean temporary Git worktrees at the same commit. Only the agent-authored reproduction file was added; no production file changed.
- Frozen dependency installation succeeded in both worktrees. Normal full Turbo build passed: 67 successful tasks.
- Optional isolated website dev server started on port 44173, with state confined to the temporary worktree, then stopped after browser setup failed. No user instance, provider session, or runtime store was used. The second reproduction is Node-only and needs no port or persistent data directory.
4. Minimal reproduction
Use a clean checkout of the recorded commit, install the locked dependencies, and save the following file under apps/web/src/landing/issue-5773.repro.test.ts. It is independently authored from trusted repository behavior; no linked PR code was run.
The complete regression file is inline, as required by the reports repository publication policy.
import { createElement } from "react";
import { renderToStaticMarkup } from "react-dom/server";
import { describe, expect, it } from "vitest";
import { DesktopDownloadButton } from "./cta";
import { detectDesktopPlatform } from "./desktop-platform";
import { DEFAULT_DESKTOP_PLATFORM } from "./site";
describe("issue 5773: Windows primary downloads", () => {
it("recognizes the legacy Windows platform", () => {
expect(detectDesktopPlatform({ platform: "Win32" })).toBe("windows");
});
it("recognizes Windows client hints", () => {
expect(
detectDesktopPlatform({ userAgentData: { platform: "Windows" } }),
).toBe("windows");
});
it.each(["nav", "hero", "closer"] as const)(
"renders a Windows primary download at %s",
(placement) => {
const platform =
detectDesktopPlatform({
platform: "Win32",
userAgentData: { platform: "Windows" },
}) ?? DEFAULT_DESKTOP_PLATFORM;
const markup = renderToStaticMarkup(
createElement(DesktopDownloadButton, {
platform,
placement,
className: "",
}),
);
expect(markup).toContain('/download/windows?placement=' + placement);
expect(markup).toContain("Download for Windows (Alpha)");
},
);
});
git fetch origin main git worktree add --detach BASE_CHECKOUT 598e1857390a108bad2d1ad3c378ab2d38bb77f9 cd BASE_CHECKOUT pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build Copy the linked reproduction file to apps/web/src/landing/issue-5773.repro.test.ts pnpm exec turbo run test --filter=@bb/web -- src/landing/issue-5773.repro.test.ts pnpm exec turbo run test --filter=@bb/web -- src/landing/desktop-platform.test.ts src/landing/site-chrome.test.tsx git worktree add --detach VERIFY_CHECKOUT 598e1857390a108bad2d1ad3c378ab2d38bb77f9 cd VERIFY_CHECKOUT pnpm install --frozen-lockfile --prefer-offline Copy the same linked reproduction file to apps/web/src/landing/issue-5773.repro.test.ts pnpm exec turbo run test --force --filter=@bb/web -- src/landing/issue-5773.repro.test.ts
Expected: Windows detection returns windows; the primary anchor uses /download/windows?placement=... and identifies Windows with its alpha status.
Actual, both runs:
Tests 5 failed (5) expected null to be 'windows' Expected: "/download/windows?placement=nav" Received anchor: href="/download/macos?placement=nav"; text="Download for macOS" The same anchor mismatch occurs for hero and closer.
The final two lines summarize the long SVG-containing received markup; the appendix contains verbatim output with local paths scrubbed. The alpha-text assertion follows the href assertion and is not reached on this base. Its separate configuration gap is established by source inspection.
Browser evidence limitation
Attempted bb browser-automation open --backend local --headless --machine <current-host> --json. It failed before a browser session opened:
Install Chrome/Chromium on this host or link its executable at the plugin data runtime/chrome path.
No real screenshots could be captured; none are fabricated. No browser, dependency, or external QA service was installed. Live Chrome/WebKit, native Windows, analytics, and rollback behavior remain outside this report.
5. Root cause
detectDesktopPlatform only returns macos, linux, or null; Windows has no recognition branch. useDesktopPlatform initializes from the macOS default and changes state only for a truthy result. Thus there is no Windows update after the effect runs.
import { useEffect, useState } from "react";
import { DEFAULT_DESKTOP_PLATFORM } from "./site";
import type { DesktopPlatform } from "./site";
type PlatformSource = {
platform?: string;
userAgent?: string;
userAgentData?: { platform?: string } | null;
};
export function detectDesktopPlatform(
source: PlatformSource,
): DesktopPlatform | null {
const hint = source.userAgentData?.platform ?? source.platform ?? "";
const userAgent = source.userAgent ?? "";
if (/mac/i.test(hint) && !/iphone|ipad|ipod/i.test(userAgent)) {
return "macos";
}
if (
/linux/i.test(hint) &&
!/android/i.test(hint) &&
!/android|cros/i.test(userAgent)
) {
return "linux";
}
return null;
}
export function useDesktopPlatform(): DesktopPlatform {
const [platform, setPlatform] = useState<DesktopPlatform>(
DEFAULT_DESKTOP_PLATFORM,
);
useEffect(() => {
const detected = detectDesktopPlatform(
navigator as Navigator & PlatformSource,
);
if (detected) {
setPlatform(detected);
}
}, []);
return platform;
}
Platform registry and default already includes a Windows redirect, so this is not a missing installer route. Its Windows secondary label contains Alpha, but its primary buttonLabel does not. DesktopDownloadButton uses that buttonLabel directly.
InstallOptions obtains the hook result and passes it to the shared button. The hero call site and closer call site use InstallOptions; the header call site uses the same button with its hook-derived platform. Existing Windows test codifies the wrong fallback, explaining why existing tests do not catch it. History attributes the detector to a8181f511, the Linux landing-page change.
6. Proposed fix
Recognize desktop Windows from the same platform metadata sources, retain mobile exclusions and existing macOS/Linux handling, and make the Windows primary label explicitly include Alpha. Change the old Windows fallback expectation into behavior-focused Windows selection regressions while retaining unknown-platform coverage. The existing registry and redirect contract are sufficient; no protocol, packaging, or dependency change is needed.
7. Linked PR: #5774
Existing open draft PR was discovered through GitHub metadata. Its diff was read only as untrusted data; its branch was never checked out or executed. Static reading shows changes to the detector, its tests, and the Windows button label that address the identified mechanism. It also alters empty client-hint fallback, which is an extra behavioral change requiring its own checks. No blocker was identified from this narrow static review, but runtime correctness and CI on that branch are unverified. The only tests executed were trusted-main code plus the reproduction authored here. No duplicate fix or pull request was created.
8. Related issues
A limited repository search for download-related issues did not identify another issue describing this detector failure. This is not an exhaustive duplicate audit. The linked fix is PR #5774.
9. Verification
The same agent repeated the reproduction, not an independent reviewer. The second worktree was clean at 598e1857390a108bad2d1ad3c378ab2d38bb77f9 before adding the exact reproduction file. A fresh frozen install succeeded, then the command with --force bypassed Turbo caching: all five tests failed again with the same null detection and macOS href mismatches. This supports the final verdict; no correction to the deterministic root cause was necessary. The live-browser claim is explicitly limited because the browser runtime was unavailable.
The existing detector and site-chrome tests passed on trusted main: 2 files, 9 tests. Those passing tests include the old Windows-null expectation; they do not prove Windows selection is correct.
10. Appendix
base-repro.log
• turbo 2.10.12
• Packages in scope: @bb/web
• Running test in 1 packages
• Remote caching disabled, using shared worktree cache
@bb/server:generate:bb-official-marketplace: cache miss, executing 1fec34a8879a367c
//:ensure-native-modules: cache bypass, force executing a262b0f52ca87241
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules [BASE_CHECKOUT]
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
@bb/server:generate:bb-official-marketplace:
@bb/server:generate:bb-official-marketplace: > @bb/server@0.0.1 generate:bb-official-marketplace [BASE_CHECKOUT]/apps/server
@bb/server:generate:bb-official-marketplace: > node --conditions=source --import tsx scripts/generate-bb-official-marketplace.ts
@bb/server:generate:bb-official-marketplace:
//:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification
@bb/web:test: cache miss, executing cd3c1d8c6e702c21
@bb/web:test:
@bb/web:test: > @bb/web@0.0.1 test [BASE_CHECKOUT]/apps/web
@bb/web:test: > vitest run --config vitest.config.ts "src/landing/issue-5773.repro.test.ts"
@bb/web:test:
@bb/web:test:
@bb/web:test: RUN v4.1.1 [BASE_CHECKOUT]/apps/web
@bb/web:test:
@bb/web:test: ❯ |@bb/web| src/landing/issue-5773.repro.test.ts (5 tests | 5 failed) 25ms
@bb/web:test: × recognizes the legacy Windows platform 5ms
@bb/web:test: × recognizes Windows client hints 1ms
@bb/web:test: × renders a Windows primary download at nav 11ms
@bb/web:test: × renders a Windows primary download at hero 4ms
@bb/web:test: × renders a Windows primary download at closer 2ms
@bb/web:test:
@bb/web:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 5 ⎯⎯⎯⎯⎯⎯⎯
@bb/web:test:
@bb/web:test: FAIL |@bb/web| src/landing/issue-5773.repro.test.ts > issue 5773: Windows primary downloads > recognizes the legacy Windows platform
@bb/web:test: AssertionError: expected null to be 'windows' // Object.is equality
@bb/web:test:
@bb/web:test: - Expected:
@bb/web:test: "windows"
@bb/web:test:
@bb/web:test: + Received:
@bb/web:test: null
@bb/web:test:
@bb/web:test: ❯ src/landing/issue-5773.repro.test.ts:11:58
@bb/web:test: 9| describe("issue 5773: Windows primary downloads", () => {
@bb/web:test: 10| it("recognizes the legacy Windows platform", () => {
@bb/web:test: 11| expect(detectDesktopPlatform({ platform: "Win32" })).toBe("windows…
@bb/web:test: | ^
@bb/web:test: 12| });
@bb/web:test: 13|
@bb/web:test:
@bb/web:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/5]⎯
@bb/web:test:
@bb/web:test: FAIL |@bb/web| src/landing/issue-5773.repro.test.ts > issue 5773: Windows primary downloads > recognizes Windows client hints
@bb/web:test: AssertionError: expected null to be 'windows' // Object.is equality
@bb/web:test:
@bb/web:test: - Expected:
@bb/web:test: "windows"
@bb/web:test:
@bb/web:test: + Received:
@bb/web:test: null
@bb/web:test:
@bb/web:test: ❯ src/landing/issue-5773.repro.test.ts:17:7
@bb/web:test: 15| expect(
@bb/web:test: 16| detectDesktopPlatform({ userAgentData: { platform: "Windows" } }…
@bb/web:test: 17| ).toBe("windows");
@bb/web:test: | ^
@bb/web:test: 18| });
@bb/web:test: 19|
@bb/web:test:
@bb/web:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/5]⎯
@bb/web:test:
@bb/web:test: FAIL |@bb/web| src/landing/issue-5773.repro.test.ts > issue 5773: Windows primary downloads > renders a Windows primary download at nav
@bb/web:test: AssertionError: expected '<a class="" href="/download/macos?pla…' to contain '/download/windows?placement=nav'
@bb/web:test:
@bb/web:test: Expected: "/download/windows?placement=nav"
@bb/web:test: Received: "<a class="" href="/download/macos?placement=nav"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" color="currentColor" class="btn-ic"><path d="M12 5.75C12 3.75 13.5 1.75 15.5 1.75C15.5 3.75 14 5.75 12 5.75Z" fill="currentColor"></path><path d="M12.5 8.09001C11.9851 8.09001 11.5867 7.92646 11.1414 7.74368C10.5776 7.51225 9.93875 7.25 8.89334 7.25C7.02235 7.25 4 8.74945 4 12.7495C4 17.4016 7.10471 22.25 9.10471 22.25C9.77426 22.25 10.3775 21.9871 10.954 21.7359C11.4815 21.5059 11.9868 21.2857 12.5 21.2857C13.0132 21.2857 13.5185 21.5059 14.046 21.7359C14.6225 21.9871 15.2257 22.25 15.8953 22.25C17.2879 22.25 18.9573 19.8992 20 16.9008C18.3793 16.2202 17.338 14.618 17.338 12.75C17.338 11.121 18.2036 10.0398 19.5 9.25C18.5 7.75 17.0134 7.25 15.9447 7.25C14.8993 7.25 14.2604 7.51225 13.6966 7.74368C13.2514 7.92646 13.0149 8.09001 12.5 8.09001Z" fill="currentColor"></path></svg>Download for macOS</a>"
@bb/web:test:
@bb/web:test: ❯ src/landing/issue-5773.repro.test.ts:35:22
@bb/web:test: 33| }),
@bb/web:test: 34| );
@bb/web:test: 35| expect(markup).toContain('/download/windows?placement=' + placem…
@bb/web:test: | ^
@bb/web:test: 36| expect(markup).toContain("Download for Windows (Alpha)");
@bb/web:test: 37| },
@bb/web:test:
@bb/web:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/5]⎯
@bb/web:test:
@bb/web:test: FAIL |@bb/web| src/landing/issue-5773.repro.test.ts > issue 5773: Windows primary downloads > renders a Windows primary download at hero
@bb/web:test: AssertionError: expected '<a class="" href="/download/macos?pla…' to contain '/download/windows?placement=hero'
@bb/web:test:
@bb/web:test: Expected: "/download/windows?placement=hero"
@bb/web:test: Received: "<a class="" href="/download/macos?placement=hero"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" color="currentColor" class="btn-ic"><path d="M12 5.75C12 3.75 13.5 1.75 15.5 1.75C15.5 3.75 14 5.75 12 5.75Z" fill="currentColor"></path><path d="M12.5 8.09001C11.9851 8.09001 11.5867 7.92646 11.1414 7.74368C10.5776 7.51225 9.93875 7.25 8.89334 7.25C7.02235 7.25 4 8.74945 4 12.7495C4 17.4016 7.10471 22.25 9.10471 22.25C9.77426 22.25 10.3775 21.9871 10.954 21.7359C11.4815 21.5059 11.9868 21.2857 12.5 21.2857C13.0132 21.2857 13.5185 21.5059 14.046 21.7359C14.6225 21.9871 15.2257 22.25 15.8953 22.25C17.2879 22.25 18.9573 19.8992 20 16.9008C18.3793 16.2202 17.338 14.618 17.338 12.75C17.338 11.121 18.2036 10.0398 19.5 9.25C18.5 7.75 17.0134 7.25 15.9447 7.25C14.8993 7.25 14.2604 7.51225 13.6966 7.74368C13.2514 7.92646 13.0149 8.09001 12.5 8.09001Z" fill="currentColor"></path></svg>Download for macOS</a>"
@bb/web:test:
@bb/web:test: ❯ src/landing/issue-5773.repro.test.ts:35:22
@bb/web:test: 33| }),
@bb/web:test: 34| );
@bb/web:test: 35| expect(markup).toContain('/download/windows?placement=' + placem…
@bb/web:test: | ^
@bb/web:test: 36| expect(markup).toContain("Download for Windows (Alpha)");
@bb/web:test: 37| },
@bb/web:test:
@bb/web:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/5]⎯
@bb/web:test:
@bb/web:test: FAIL |@bb/web| src/landing/issue-5773.repro.test.ts > issue 5773: Windows primary downloads > renders a Windows primary download at closer
@bb/web:test: AssertionError: expected '<a class="" href="/download/macos?pla…' to contain '/download/windows?placement=closer'
@bb/web:test:
@bb/web:test: Expected: "/download/windows?placement=closer"
@bb/web:test: Received: "<a class="" href="/download/macos?placement=closer"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" color="currentColor" class="btn-ic"><path d="M12 5.75C12 3.75 13.5 1.75 15.5 1.75C15.5 3.75 14 5.75 12 5.75Z" fill="currentColor"></path><path d="M12.5 8.09001C11.9851 8.09001 11.5867 7.92646 11.1414 7.74368C10.5776 7.51225 9.93875 7.25 8.89334 7.25C7.02235 7.25 4 8.74945 4 12.7495C4 17.4016 7.10471 22.25 9.10471 22.25C9.77426 22.25 10.3775 21.9871 10.954 21.7359C11.4815 21.5059 11.9868 21.2857 12.5 21.2857C13.0132 21.2857 13.5185 21.5059 14.046 21.7359C14.6225 21.9871 15.2257 22.25 15.8953 22.25C17.2879 22.25 18.9573 19.8992 20 16.9008C18.3793 16.2202 17.338 14.618 17.338 12.75C17.338 11.121 18.2036 10.0398 19.5 9.25C18.5 7.75 17.0134 7.25 15.9447 7.25C14.8993 7.25 14.2604 7.51225 13.6966 7.74368C13.2514 7.92646 13.0149 8.09001 12.5 8.09001Z" fill="currentColor"></path></svg>Download for macOS</a>"
@bb/web:test:
@bb/web:test: ❯ src/landing/issue-5773.repro.test.ts:35:22
@bb/web:test: 33| }),
@bb/web:test: 34| );
@bb/web:test: 35| expect(markup).toContain('/download/windows?placement=' + placem…
@bb/web:test: | ^
@bb/web:test: 36| expect(markup).toContain("Download for Windows (Alpha)");
@bb/web:test: 37| },
@bb/web:test:
@bb/web:test:
@bb/web:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/5]⎯
@bb/web:test:
@bb/web:test: Test Files 1 failed (1)
@bb/web:test: Tests 5 failed (5)
@bb/web:test: Start at 20:53:06
@bb/web:test: Duration 405ms (transform 84ms, setup 0ms, import 143ms, tests 25ms, environment 0ms)
@bb/web:test:
@bb/web:test: ELIFECYCLE Test failed. See above for more details.
@bb/web#test: ERROR command ([BASE_CHECKOUT]/apps/web) /usr/local/bin/pnpm run test src/landing/issue-5773.repro.test.ts exited (1)
Tasks: 2 successful, 3 total
Cached: 0 cached, 3 total
Time: 3.02s
Failed: @bb/web#test
ERROR run failed: command exited (1)
verify-repro.log
• turbo 2.10.12
• Packages in scope: @bb/web
• Running test in 1 packages
• Remote caching disabled, using shared worktree cache
//:ensure-native-modules: cache bypass, force executing a262b0f52ca87241
@bb/server:generate:bb-official-marketplace: cache bypass, force executing 1fec34a8879a367c
@bb/server:generate:bb-official-marketplace:
@bb/server:generate:bb-official-marketplace: > @bb/server@0.0.1 generate:bb-official-marketplace [VERIFY_CHECKOUT]/apps/server
@bb/server:generate:bb-official-marketplace: > node --conditions=source --import tsx scripts/generate-bb-official-marketplace.ts
@bb/server:generate:bb-official-marketplace:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules [VERIFY_CHECKOUT]
//: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/web:test: cache bypass, force executing cd3c1d8c6e702c21
@bb/web:test:
@bb/web:test: > @bb/web@0.0.1 test [VERIFY_CHECKOUT]/apps/web
@bb/web:test: > vitest run --config vitest.config.ts "src/landing/issue-5773.repro.test.ts"
@bb/web:test:
@bb/web:test:
@bb/web:test: RUN v4.1.1 [VERIFY_CHECKOUT]/apps/web
@bb/web:test:
@bb/web:test: ❯ |@bb/web| src/landing/issue-5773.repro.test.ts (5 tests | 5 failed) 25ms
@bb/web:test: × recognizes the legacy Windows platform 5ms
@bb/web:test: × recognizes Windows client hints 1ms
@bb/web:test: × renders a Windows primary download at nav 11ms
@bb/web:test: × renders a Windows primary download at hero 5ms
@bb/web:test: × renders a Windows primary download at closer 3ms
@bb/web:test:
@bb/web:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 5 ⎯⎯⎯⎯⎯⎯⎯
@bb/web:test:
@bb/web:test: FAIL |@bb/web| src/landing/issue-5773.repro.test.ts > issue 5773: Windows primary downloads > recognizes the legacy Windows platform
@bb/web:test: AssertionError: expected null to be 'windows' // Object.is equality
@bb/web:test:
@bb/web:test: - Expected:
@bb/web:test: "windows"
@bb/web:test:
@bb/web:test: + Received:
@bb/web:test: null
@bb/web:test:
@bb/web:test: ❯ src/landing/issue-5773.repro.test.ts:11:58
@bb/web:test: 9| describe("issue 5773: Windows primary downloads", () => {
@bb/web:test: 10| it("recognizes the legacy Windows platform", () => {
@bb/web:test: 11| expect(detectDesktopPlatform({ platform: "Win32" })).toBe("windows…
@bb/web:test: | ^
@bb/web:test: 12| });
@bb/web:test: 13|
@bb/web:test:
@bb/web:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/5]⎯
@bb/web:test:
@bb/web:test: FAIL |@bb/web| src/landing/issue-5773.repro.test.ts > issue 5773: Windows primary downloads > recognizes Windows client hints
@bb/web:test: AssertionError: expected null to be 'windows' // Object.is equality
@bb/web:test:
@bb/web:test: - Expected:
@bb/web:test: "windows"
@bb/web:test:
@bb/web:test: + Received:
@bb/web:test: null
@bb/web:test:
@bb/web:test: ❯ src/landing/issue-5773.repro.test.ts:17:7
@bb/web:test: 15| expect(
@bb/web:test: 16| detectDesktopPlatform({ userAgentData: { platform: "Windows" } }…
@bb/web:test: 17| ).toBe("windows");
@bb/web:test: | ^
@bb/web:test: 18| });
@bb/web:test: 19|
@bb/web:test:
@bb/web:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/5]⎯
@bb/web:test:
@bb/web:test: FAIL |@bb/web| src/landing/issue-5773.repro.test.ts > issue 5773: Windows primary downloads > renders a Windows primary download at nav
@bb/web:test: AssertionError: expected '<a class="" href="/download/macos?pla…' to contain '/download/windows?placement=nav'
@bb/web:test:
@bb/web:test: Expected: "/download/windows?placement=nav"
@bb/web:test: Received: "<a class="" href="/download/macos?placement=nav"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" color="currentColor" class="btn-ic"><path d="M12 5.75C12 3.75 13.5 1.75 15.5 1.75C15.5 3.75 14 5.75 12 5.75Z" fill="currentColor"></path><path d="M12.5 8.09001C11.9851 8.09001 11.5867 7.92646 11.1414 7.74368C10.5776 7.51225 9.93875 7.25 8.89334 7.25C7.02235 7.25 4 8.74945 4 12.7495C4 17.4016 7.10471 22.25 9.10471 22.25C9.77426 22.25 10.3775 21.9871 10.954 21.7359C11.4815 21.5059 11.9868 21.2857 12.5 21.2857C13.0132 21.2857 13.5185 21.5059 14.046 21.7359C14.6225 21.9871 15.2257 22.25 15.8953 22.25C17.2879 22.25 18.9573 19.8992 20 16.9008C18.3793 16.2202 17.338 14.618 17.338 12.75C17.338 11.121 18.2036 10.0398 19.5 9.25C18.5 7.75 17.0134 7.25 15.9447 7.25C14.8993 7.25 14.2604 7.51225 13.6966 7.74368C13.2514 7.92646 13.0149 8.09001 12.5 8.09001Z" fill="currentColor"></path></svg>Download for macOS</a>"
@bb/web:test:
@bb/web:test: ❯ src/landing/issue-5773.repro.test.ts:35:22
@bb/web:test: 33| }),
@bb/web:test: 34| );
@bb/web:test: 35| expect(markup).toContain('/download/windows?placement=' + placem…
@bb/web:test: | ^
@bb/web:test: 36| expect(markup).toContain("Download for Windows (Alpha)");
@bb/web:test: 37| },
@bb/web:test:
@bb/web:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/5]⎯
@bb/web:test:
@bb/web:test: FAIL |@bb/web| src/landing/issue-5773.repro.test.ts > issue 5773: Windows primary downloads > renders a Windows primary download at hero
@bb/web:test: AssertionError: expected '<a class="" href="/download/macos?pla…' to contain '/download/windows?placement=hero'
@bb/web:test:
@bb/web:test: Expected: "/download/windows?placement=hero"
@bb/web:test: Received: "<a class="" href="/download/macos?placement=hero"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" color="currentColor" class="btn-ic"><path d="M12 5.75C12 3.75 13.5 1.75 15.5 1.75C15.5 3.75 14 5.75 12 5.75Z" fill="currentColor"></path><path d="M12.5 8.09001C11.9851 8.09001 11.5867 7.92646 11.1414 7.74368C10.5776 7.51225 9.93875 7.25 8.89334 7.25C7.02235 7.25 4 8.74945 4 12.7495C4 17.4016 7.10471 22.25 9.10471 22.25C9.77426 22.25 10.3775 21.9871 10.954 21.7359C11.4815 21.5059 11.9868 21.2857 12.5 21.2857C13.0132 21.2857 13.5185 21.5059 14.046 21.7359C14.6225 21.9871 15.2257 22.25 15.8953 22.25C17.2879 22.25 18.9573 19.8992 20 16.9008C18.3793 16.2202 17.338 14.618 17.338 12.75C17.338 11.121 18.2036 10.0398 19.5 9.25C18.5 7.75 17.0134 7.25 15.9447 7.25C14.8993 7.25 14.2604 7.51225 13.6966 7.74368C13.2514 7.92646 13.0149 8.09001 12.5 8.09001Z" fill="currentColor"></path></svg>Download for macOS</a>"
@bb/web:test:
@bb/web:test: ❯ src/landing/issue-5773.repro.test.ts:35:22
@bb/web:test: 33| }),
@bb/web:test: 34| );
@bb/web:test: 35| expect(markup).toContain('/download/windows?placement=' + placem…
@bb/web:test: | ^
@bb/web:test: 36| expect(markup).toContain("Download for Windows (Alpha)");
@bb/web:test: 37| },
@bb/web:test:
@bb/web:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/5]⎯
@bb/web:test:
@bb/web:test: FAIL |@bb/web| src/landing/issue-5773.repro.test.ts > issue 5773: Windows primary downloads > renders a Windows primary download at closer
@bb/web:test: AssertionError: expected '<a class="" href="/download/macos?pla…' to contain '/download/windows?placement=closer'
@bb/web:test:
@bb/web:test: Expected: "/download/windows?placement=closer"
@bb/web:test: Received: "<a class="" href="/download/macos?placement=closer"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" color="currentColor" class="btn-ic"><path d="M12 5.75C12 3.75 13.5 1.75 15.5 1.75C15.5 3.75 14 5.75 12 5.75Z" fill="currentColor"></path><path d="M12.5 8.09001C11.9851 8.09001 11.5867 7.92646 11.1414 7.74368C10.5776 7.51225 9.93875 7.25 8.89334 7.25C7.02235 7.25 4 8.74945 4 12.7495C4 17.4016 7.10471 22.25 9.10471 22.25C9.77426 22.25 10.3775 21.9871 10.954 21.7359C11.4815 21.5059 11.9868 21.2857 12.5 21.2857C13.0132 21.2857 13.5185 21.5059 14.046 21.7359C14.6225 21.9871 15.2257 22.25 15.8953 22.25C17.2879 22.25 18.9573 19.8992 20 16.9008C18.3793 16.2202 17.338 14.618 17.338 12.75C17.338 11.121 18.2036 10.0398 19.5 9.25C18.5 7.75 17.0134 7.25 15.9447 7.25C14.8993 7.25 14.2604 7.51225 13.6966 7.74368C13.2514 7.92646 13.0149 8.09001 12.5 8.09001Z" fill="currentColor"></path></svg>Download for macOS</a>"
@bb/web:test:
@bb/web:test: ❯ src/landing/issue-5773.repro.test.ts:35:22
@bb/web:test: 33| }),
@bb/web:test: 34| );
@bb/web:test: 35| expect(markup).toContain('/download/windows?placement=' + placem…
@bb/web:test: | ^
@bb/web:test: 36| expect(markup).toContain("Download for Windows (Alpha)");
@bb/web:test: 37| },
@bb/web:test:
@bb/web:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/5]⎯
@bb/web:test:
@bb/web:test:
@bb/web:test: Test Files 1 failed (1)
@bb/web:test: Tests 5 failed (5)
@bb/web:test: Start at 20:53:53
@bb/web:test: Duration 359ms (transform 85ms, setup 0ms, import 136ms, tests 25ms, environment 0ms)
@bb/web:test:
@bb/web:test: ELIFECYCLE Test failed. See above for more details.
@bb/web#test: ERROR command ([VERIFY_CHECKOUT]/apps/web) /usr/local/bin/pnpm run test src/landing/issue-5773.repro.test.ts exited (1)
Tasks: 2 successful, 3 total
Cached: 0 cached, 3 total
Time: 2.871s
Failed: @bb/web#test
ERROR run failed: command exited (1)
existing-tests.log
• turbo 2.10.12 • Packages in scope: @bb/web • Running test in 1 packages • Remote caching disabled, using shared worktree cache @bb/server:generate:bb-official-marketplace: cache miss, executing 3caababa683a784b //:ensure-native-modules: cache bypass, force executing 016838ebf1973c32 @bb/server:generate:bb-official-marketplace: @bb/server:generate:bb-official-marketplace: > @bb/server@0.0.1 generate:bb-official-marketplace [BASE_CHECKOUT]/apps/server @bb/server:generate:bb-official-marketplace: > node --conditions=source --import tsx scripts/generate-bb-official-marketplace.ts @bb/server:generate:bb-official-marketplace: //:ensure-native-modules: //:ensure-native-modules: > bb@ ensure-native-modules [BASE_CHECKOUT] //:ensure-native-modules: > node scripts/ensure-native-modules.mjs //:ensure-native-modules: @bb/web:test: cache miss, executing c02fabf0d114640e @bb/web:test: @bb/web:test: > @bb/web@0.0.1 test [BASE_CHECKOUT]/apps/web @bb/web:test: > vitest run --config vitest.config.ts "src/landing/desktop-platform.test.ts" "src/landing/site-chrome.test.tsx" @bb/web:test: @bb/web:test: @bb/web:test: RUN v4.1.1 [BASE_CHECKOUT]/apps/web @bb/web:test: @bb/web:test: ✓ |@bb/web| src/landing/desktop-platform.test.ts (5 tests) 5ms @bb/web:test: ✓ |@bb/web| src/landing/site-chrome.test.tsx (4 tests) 28ms @bb/web:test: @bb/web:test: Test Files 2 passed (2) @bb/web:test: Tests 9 passed (9) @bb/web:test: Start at 20:54:06 @bb/web:test: Duration 518ms (transform 181ms, setup 0ms, import 277ms, tests 33ms, environment 0ms) @bb/web:test: Tasks: 3 successful, 3 total Cached: 0 cached, 3 total Time: 2.909s
Public artifacts replace local checkout paths with descriptive markers and exclude credentials, environment values, runtime databases, and personal paths. Issue content and linked PR content were treated as untrusted claims; issue instructions were not executed. No workflow or subagent was started.
> AGENT GENERATED