#7359 · Legacy composer preferences are ignored after compatibility retirement
Verdict: REPRODUCED · Root-cause confidence: high
1. TL;DR
A browser profile containing only the old global model and reasoning preferences does not restore those preferences on current main. The saved provider survives, but both selection hooks return an empty string, allowing the composer to use its catalog defaults. The old values remain in localStorage; this is selection non-restoration, not deletion of their bytes. Importantly, the original per-provider change did include compatibility reads: a later cleanup deliberately removed them. Reinstating that retired upgrade policy is outside this automation's simple-fix scope.
2. Claims vs findings
| Claim | Finding | Evidence |
|---|---|---|
| Current main ignores global model and reasoning choices when only those old keys exist. | Verified | Two failing hook-level regression cases in each of two clean checkouts. |
| The per-provider change originally omitted migration. | Refuted | Trusted main history at 04953f96ac contains provider-guarded legacy fallback for both selections. |
| The original global values belonged to the saved provider. | Verified | The pre-change implementation uses global atoms alongside the provider atom; original compatibility code checks that provider before reading old values. |
| Every physical upgrade or full rendered composer shows the same result. | Not directly exercised | The test seeds the exact legacy browser state and runs real public selection hooks. No old binary, provider process, or full browser UI was run. |
3. Environment
- Repository: public
get-bb/bb; trusted main commit7c1353d80729983b86ea1555d18b42407f320406. - Linux 4.19.0-gvisor x86_64; Node v22.19.0; pnpm 9.15.0; repository-pinned Vitest, React, Jotai and jsdom.
- Two separate detached worktrees, named
base-oneandbase-two, at the same verified commit. The second had an empty tracked/untracked status before adding the reproduction file. - Each test has fresh localStorage/sessionStorage and a new Jotai store; all storage is cleared after each case. No ports, persistent app data, live server, real user data, or provider versions were needed.
4. Minimal reproduction
- In a clean trusted checkout at the recorded commit, install and build using these commands. Before the test command, save the complete inline test below as
apps/app/src/hooks/thread-creation-options/issue-7359.test.tsx. It was authored for this report, not taken from the issue. - The test seeds
bb.promptbox.provider=codex,bb.promptbox.model=remembered-model, andbb.promptbox.reasoning=high, with no scoped keys or session state. - Mount the actual provider, model and reasoning preference hooks in a fresh Jotai provider. Expected legacy restoration:
remembered-modelandhigh; actual: empty strings for both, while provider remainscodex.
git clone https://github.com/get-bb/bb.git bb-7359 cd bb-7359 git checkout --detach 7c1353d80729983b86ea1555d18b42407f320406 pnpm install --frozen-lockfile --prefer-offline pnpm exec turbo run build:types build --filter=@get-bb/plugin-sdk pnpm exec turbo run build --filter=@bb/app pnpm exec turbo run test --filter=@bb/app -- apps/app/src/hooks/thread-creation-options/issue-7359.test.tsx pnpm exec turbo run test --filter=@bb/app -- src/hooks/thread-creation-options/persisted-selection-fields.test.tsx src/lib/browser-storage.test.ts
Verbatim assertion messages from both runs:
AssertionError: expected '' to be 'remembered-model' // Object.is equality AssertionError: expected '' to be 'high' // Object.is equality Test Files 1 failed (1) Tests 2 failed | 2 passed (4)
The two passing controls prove current provider-scoped preferences take precedence and a different provider receives no legacy choices. The command exits 1 intentionally: the two legacy-retention expectations expose the reported gap.
Complete reproduction test:
// @vitest-environment jsdom
import { cleanup, renderHook } from "@testing-library/react";
import { createStore, Provider } from "jotai";
import type { ReactNode } from "react";
import { afterEach, beforeEach, describe, expect, it } from "vitest";
import {
usePromptBoxModelPreference,
usePromptBoxProviderPreference,
usePromptBoxReasoningLevelPreference,
} from "./persisted-selection-fields";
beforeEach(() => {
window.localStorage.clear();
window.sessionStorage.clear();
window.localStorage.setItem("bb.promptbox.provider", "codex");
window.localStorage.setItem("bb.promptbox.model", "remembered-model");
window.localStorage.setItem("bb.promptbox.reasoning", "high");
});
afterEach(() => {
cleanup();
window.localStorage.clear();
window.sessionStorage.clear();
});
function renderRememberedSelection(providerOverride?: string) {
const store = createStore();
const wrapper = ({ children }: { children: ReactNode }) => (
<Provider store={store}>{children}</Provider>
);
return renderHook(
() => {
const provider = usePromptBoxProviderPreference();
const providerId = providerOverride ?? provider.value;
return {
provider: provider.value,
model: usePromptBoxModelPreference(providerId).value,
reasoning: usePromptBoxReasoningLevelPreference(providerId).value,
};
},
{ wrapper },
);
}
describe("legacy composer upgrade compatibility", () => {
it.each([
{ field: "model", expected: "remembered-model" },
{ field: "reasoning", expected: "high" },
] as const)(
"retains the legacy $field for its saved provider",
({ field, expected }) => {
const { result } = renderRememberedSelection();
expect(result.current.provider).toBe("codex");
expect(result.current[field]).toBe(expected);
},
);
it("prefers existing provider-scoped selections over legacy selections", () => {
window.localStorage.setItem("bb.promptbox.model-codex-1", "newer-model");
window.localStorage.setItem("bb.promptbox.reasoning-codex-1", "low");
const { result } = renderRememberedSelection();
expect(result.current).toEqual({
provider: "codex",
model: "newer-model",
reasoning: "low",
});
});
it("does not transfer the saved provider's choices to a different provider", () => {
const { result } = renderRememberedSelection("claude-code");
expect(result.current).toEqual({
provider: "codex",
model: "",
reasoning: "",
});
});
});
5. Root cause
Current scoped model read derives a versioned key from the provider, then reads through a string codec that only falls back to its initial empty string. The reasoning read similarly uses only its scoped key. No legacy fallback is present.
return `${storageKey}-${encodeURIComponent(providerId.trim())}-${PROVIDER_SELECTION_STORAGE_VERSION}`;
parse: (value, initialValue) => value ?? initialValue
The shared tab-scoped storage reader looks first in sessionStorage, then localStorage for that same scoped key, parses the result, and snapshots the resulting default into sessionStorage. It never searches the old key.
Historical correction: the original per-provider commit (04953f96ac, August 11, 2026) did read the legacy keys when the saved provider matched. Commit 3f28c07f25, September 30, 2026, removed those functions as expired compatibility. Its trusted commit description explicitly includes unscoped model/reasoning migrations among the retired one-shot localStorage paths. The symptom exists, but attributing its origin to the initial per-provider change is incorrect.
6. Proposed fix and safety decision
If maintaining direct upgrades from the pre-per-provider format is still product policy, restore guarded compatibility at this existing preference-storage boundary. Preserve modern local/session values, require a matching saved provider, validate reasoning, and define one-time migration/removal behavior so a provider switch cannot import another provider's stale data.
No automatic fix or PR: main deliberately retired this compatibility. Reinstating it changes legacy stored-data upgrade policy and needs a product decision, violating the rule's simple-fix conditions. No production code was modified, no fix branch was created or pushed, and no replacement test was copied from issue text. No open PR linked to this issue was found in its cross-reference metadata or an open-PR search at investigation time.
7. Verification
The same agent repeated the test in a second clean detached checkout at 7c1353d80729983b86ea1555d18b42407f320406. This is a repeat verification, not an independent review. It used a separate install, build, Node/Vitest process, fresh jsdom storage and new Jotai stores.
| Run | Command | Result |
|---|---|---|
| base-one | pnpm exec turbo run test --filter=@bb/app -- apps/app/src/hooks/thread-creation-options/issue-7359.test.tsx | Exit 1; 2 failed legacy expectations, 2 passed controls. |
| base-two | Same command in the second clean checkout. | Exit 1; the same two assertion failures and two passing controls. |
| Existing owner/storage suites | pnpm exec turbo run test --filter=@bb/app -- src/hooks/thread-creation-options/persisted-selection-fields.test.tsx src/lib/browser-storage.test.ts | Exit 0; 2 files, 14 tests passed. |
Root-cause permalinks were checked against the recorded trusted commits. Both checkouts retain byte-identical tracked production files. The report corrects the claimed historical attribution based on main's actual implementation history.
8. Related issues and changes
Trusted history identifies the original feature PR #1340 and later cleanup PR #4606. Neither branch was checked out or run; only commits already in trusted main were read. Searches for related composer legacy-preference reports did not identify an exact duplicate.
9. Appendix
Raw evidence remains outside the public repository, per its publication policy. Sanitized command output is embedded here; filesystem prefixes are normalized to avoid publishing local home or temporary paths.
repro-one.log
• turbo 2.11.10
• Packages in scope: @bb/app
• Running test in 1 package
• Remote caching disabled, using shared worktree cache
@bb/templates:generate:plugin-scaffold: cache miss, executing 1d4bea7d779b44b5
@bb/process-utils:generate:profile-worker: cache miss, executing 6b67cc78f63cf592
//:ensure-native-modules: cache bypass, force executing 8da1919161b2e4e1
@bb/plugin-build:generate: cache miss, executing c7e0bf9bbe2de9c7
@bb/templates:generate:templates: cache miss, executing 5a63a03d1e24293e
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold <work>/base-one/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 <work>/base-one
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules:
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker <work>/base-one/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
@bb/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates <work>/base-one/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
@bb/plugin-build:generate:
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate <work>/base-one/packages/plugin-build
@bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs
@bb/plugin-build:generate:
//:ensure-native-modules: [ensure-native-modules] Detached hardlinked better-sqlite3 binary before verification
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
@bb/plugin-build:generate: host-tailwind.css up to date
@bb/plugin-build:generate: host-tailwind-version.ts up to date
@bb/plugin-build:generate: wrote <work>/base-one/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1)
@bb/app:test: cache miss, executing 4533e83685a4e28f
@bb/app:test:
@bb/app:test: > @bb/app@0.0.1 test <work>/base-one/apps/app
@bb/app:test: > node scripts/generate-pwa-icons.mjs --check && vitest run --config vitest.config.ts "src/hooks/thread-creation-options/issue-7359.test.tsx"
@bb/app:test:
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test:
@bb/app:test: RUN v4.1.12 <work>/base-one/apps/app
@bb/app:test:
@bb/app:test: ❯ |@bb/app:isolated| src/hooks/thread-creation-options/issue-7359.test.tsx (4 tests | 2 failed) 33ms
@bb/app:test: × retains the legacy 'model' for its saved provider 22ms
@bb/app:test: × retains the legacy 'reasoning' for its saved provider 4ms
@bb/app:test: ✓ prefers existing provider-scoped selections over legacy selections 4ms
@bb/app:test: ✓ does not transfer the saved provider's choices to a different provider 2ms
@bb/app:test:
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯
@bb/app:test:
@bb/app:test: FAIL |@bb/app:isolated| src/hooks/thread-creation-options/issue-7359.test.tsx > legacy composer upgrade compatibility > retains the legacy 'model' for its saved provider
@bb/app:test: AssertionError: expected '' to be 'remembered-model' // Object.is equality
@bb/app:test:
@bb/app:test: - Expected
@bb/app:test: + Received
@bb/app:test:
@bb/app:test: - remembered-model
@bb/app:test:
@bb/app:test: ❯ src/hooks/thread-creation-options/issue-7359.test.tsx:55:37
@bb/app:test: 53| const { result } = renderRememberedSelection();
@bb/app:test: 54| expect(result.current.provider).toBe("codex");
@bb/app:test: 55| expect(result.current[field]).toBe(expected);
@bb/app:test: | ^
@bb/app:test: 56| },
@bb/app:test: 57| );
@bb/app:test:
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
@bb/app:test:
@bb/app:test: FAIL |@bb/app:isolated| src/hooks/thread-creation-options/issue-7359.test.tsx > legacy composer upgrade compatibility > retains the legacy 'reasoning' for its saved provider
@bb/app:test: AssertionError: expected '' to be 'high' // Object.is equality
@bb/app:test:
@bb/app:test: - Expected
@bb/app:test: + Received
@bb/app:test:
@bb/app:test: - high
@bb/app:test:
@bb/app:test: ❯ src/hooks/thread-creation-options/issue-7359.test.tsx:55:37
@bb/app:test: 53| const { result } = renderRememberedSelection();
@bb/app:test: 54| expect(result.current.provider).toBe("codex");
@bb/app:test: 55| expect(result.current[field]).toBe(expected);
@bb/app:test: | ^
@bb/app:test: 56| },
@bb/app:test: 57| );
@bb/app:test:
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯
@bb/app:test:
@bb/app:test:
@bb/app:test: Test Files 1 failed (1)
@bb/app:test: Tests 2 failed | 2 passed (4)
@bb/app:test: Start at 12:08:35
@bb/app:test: Duration 1.95s (transform 512ms, setup 171ms, import 694ms, tests 33ms, environment 732ms)
@bb/app:test:
@bb/app:test: ELIFECYCLE Test failed. See above for more details.
@bb/app#test: ERROR command (<work>/base-one/apps/app) /usr/local/bin/pnpm run test src/hooks/thread-creation-options/issue-7359.test.tsx exited (1)
Tasks: 5 successful, 6 total
Cached: 0 cached, 6 total
Time: 6.583s
Failed: @bb/app#test
ERROR run failed: command exited (1)
repro-two.log
• turbo 2.11.10
• Packages in scope: @bb/app
• Running test in 1 package
• Remote caching disabled, using shared worktree cache
//:ensure-native-modules: cache bypass, force executing 8da1919161b2e4e1
@bb/templates:generate:plugin-scaffold: cache hit, replaying logs 1d4bea7d779b44b5
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold <work>/base-one/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold:
@bb/templates:generate:templates: cache hit, replaying logs 5a63a03d1e24293e
@bb/templates:generate:templates:
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates <work>/base-one/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates:
@bb/plugin-build:generate: cache hit, replaying logs c7e0bf9bbe2de9c7
@bb/plugin-build:generate:
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate <work>/base-one/packages/plugin-build
@bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs
@bb/plugin-build:generate:
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
@bb/plugin-build:generate: host-tailwind.css up to date
@bb/plugin-build:generate: host-tailwind-version.ts up to date
@bb/plugin-build:generate: wrote <work>/base-one/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1)
@bb/process-utils:generate:profile-worker: cache hit, replaying logs 6b67cc78f63cf592
@bb/process-utils:generate:profile-worker:
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker <work>/base-one/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker:
//:ensure-native-modules:
//:ensure-native-modules: > bb@ ensure-native-modules <work>/base-two
//: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/app:test: cache miss, executing 4533e83685a4e28f
@bb/app:test:
@bb/app:test: > @bb/app@0.0.1 test <work>/base-two/apps/app
@bb/app:test: > node scripts/generate-pwa-icons.mjs --check && vitest run --config vitest.config.ts "src/hooks/thread-creation-options/issue-7359.test.tsx"
@bb/app:test:
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite:
@bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead
@bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning.
@bb/app:test:
@bb/app:test: RUN v4.1.12 <work>/base-two/apps/app
@bb/app:test:
@bb/app:test: ❯ |@bb/app:isolated| src/hooks/thread-creation-options/issue-7359.test.tsx (4 tests | 2 failed) 30ms
@bb/app:test: × retains the legacy 'model' for its saved provider 20ms
@bb/app:test: × retains the legacy 'reasoning' for its saved provider 3ms
@bb/app:test: ✓ prefers existing provider-scoped selections over legacy selections 4ms
@bb/app:test: ✓ does not transfer the saved provider's choices to a different provider 2ms
@bb/app:test:
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯
@bb/app:test:
@bb/app:test: FAIL |@bb/app:isolated| src/hooks/thread-creation-options/issue-7359.test.tsx > legacy composer upgrade compatibility > retains the legacy 'model' for its saved provider
@bb/app:test: AssertionError: expected '' to be 'remembered-model' // Object.is equality
@bb/app:test:
@bb/app:test: - Expected
@bb/app:test: + Received
@bb/app:test:
@bb/app:test: - remembered-model
@bb/app:test:
@bb/app:test: ❯ src/hooks/thread-creation-options/issue-7359.test.tsx:55:37
@bb/app:test: 53| const { result } = renderRememberedSelection();
@bb/app:test: 54| expect(result.current.provider).toBe("codex");
@bb/app:test: 55| expect(result.current[field]).toBe(expected);
@bb/app:test: | ^
@bb/app:test: 56| },
@bb/app:test: 57| );
@bb/app:test:
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯
@bb/app:test:
@bb/app:test: FAIL |@bb/app:isolated| src/hooks/thread-creation-options/issue-7359.test.tsx > legacy composer upgrade compatibility > retains the legacy 'reasoning' for its saved provider
@bb/app:test: AssertionError: expected '' to be 'high' // Object.is equality
@bb/app:test:
@bb/app:test: - Expected
@bb/app:test: + Received
@bb/app:test:
@bb/app:test: - high
@bb/app:test:
@bb/app:test: ❯ src/hooks/thread-creation-options/issue-7359.test.tsx:55:37
@bb/app:test: 53| const { result } = renderRememberedSelection();
@bb/app:test: 54| expect(result.current.provider).toBe("codex");
@bb/app:test: 55| expect(result.current[field]).toBe(expected);
@bb/app:test: | ^
@bb/app:test: 56| },
@bb/app:test: 57| );
@bb/app:test:
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯
@bb/app:test:
@bb/app:test:
@bb/app:test: Test Files 1 failed (1)
@bb/app:test: Tests 2 failed | 2 passed (4)
@bb/app:test: Start at 12:08:44
@bb/app:test: Duration 1.80s (transform 473ms, setup 172ms, import 633ms, tests 30ms, environment 727ms)
@bb/app:test:
@bb/app:test: ELIFECYCLE Test failed. See above for more details.
@bb/app#test: ERROR command (<work>/base-two/apps/app) /usr/local/bin/pnpm run test src/hooks/thread-creation-options/issue-7359.test.tsx exited (1)
Tasks: 5 successful, 6 total
Cached: 4 cached, 6 total
Time: 4.364s
Failed: @bb/app#test
ERROR run failed: command exited (1)
existing-tests.log
• turbo 2.11.10 • Packages in scope: @bb/app • Running test in 1 package • Remote caching disabled, using shared worktree cache @bb/plugin-build:generate: cache miss, executing fbe500689201adf3 @bb/templates:generate:plugin-scaffold: cache miss, executing 88f4bd2fa9da2a60 @bb/templates:generate:templates: cache miss, executing 7122a13a27d8686c //:ensure-native-modules: cache bypass, force executing 03eb045544eaaac0 @bb/process-utils:generate:profile-worker: cache miss, executing 23ff6d2d6023b49d @bb/templates:generate:templates: @bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates <work>/base-one/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 <work>/base-one/packages/templates @bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs @bb/templates:generate:plugin-scaffold: @bb/plugin-build:generate: @bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate <work>/base-one/packages/plugin-build @bb/plugin-build:generate: > node ./scripts/generate-plugin-theme.mjs && node ./scripts/generate-runtime-export-manifest.mjs @bb/plugin-build:generate: @bb/process-utils:generate:profile-worker: @bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker <work>/base-one/packages/process-utils @bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs @bb/process-utils:generate:profile-worker: //:ensure-native-modules: //:ensure-native-modules: > bb@ ensure-native-modules <work>/base-one //:ensure-native-modules: > node scripts/ensure-native-modules.mjs //:ensure-native-modules: @bb/plugin-build:generate: plugin-theme.generated.ts up to date @bb/plugin-build:generate: host-tailwind.css up to date @bb/plugin-build:generate: host-tailwind-version.ts up to date @bb/plugin-build:generate: wrote <work>/base-one/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.3.1) @bb/app:test: cache miss, executing 6d2a376541b51e35 @bb/app:test: @bb/app:test: > @bb/app@0.0.1 test <work>/base-one/apps/app @bb/app:test: > node scripts/generate-pwa-icons.mjs --check && vitest run --config vitest.config.ts "src/hooks/thread-creation-options/persisted-selection-fields.test.tsx" "src/lib/browser-storage.test.ts" @bb/app:test: @bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite: @bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead @bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning. @bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite: @bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead @bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning. @bb/app:test: (!) Your Vite config uses features that are unsupported by `configLoader: 'native'`, which is planned to become the default in a future major version of Vite: @bb/app:test: - `__dirname` (vitest.config.ts:29:38). Use `import.meta.dirname` instead @bb/app:test: Set `VITE_CONFIG_NATIVE_IGNORE_WARNING=true` to suppress this warning. @bb/app:test: @bb/app:test: RUN v4.1.12 <work>/base-one/apps/app @bb/app:test: @bb/app:test: ✓ |@bb/app:isolated| src/lib/browser-storage.test.ts (3 tests) 6ms @bb/app:test: ✓ |@bb/app:isolated| src/hooks/thread-creation-options/persisted-selection-fields.test.tsx (11 tests) 65ms @bb/app:test: @bb/app:test: Test Files 2 passed (2) @bb/app:test: Tests 14 passed (14) @bb/app:test: Start at 12:09:04 @bb/app:test: Duration 2.11s (transform 597ms, setup 352ms, import 722ms, tests 71ms, environment 1.85s) @bb/app:test: Tasks: 6 successful, 6 total Cached: 0 cached, 6 total Time: 6.433s
The first whole-repository build initially failed because the SDK runtime distribution was missing in the fresh checkout. After pnpm exec turbo run build:types build --filter=@get-bb/plugin-sdk, pnpm exec turbo run build completed: 73 successful tasks. The second checkout's SDK build and app-scoped build also passed. This setup failure is unrelated to the selection regression.
Investigation commands also included git ls-remote and a fetch of trusted main, git worktree add --detach twice, git show for the two historical commits, scoped rg searches, and read-only GitHub metadata queries. Production diffs were empty. No full application screenshot is claimed: this report verifies browser-storage behavior through actual hooks, not visual rendering.
Untrusted-data handling: issue content was treated only as hypotheses. Its suggested patch and claimed test were not used; the reproduction was written from trusted main's public hook boundary.
> AGENT GENERATED