← reports

#5755 · Native-memory instructions target the provider-management page

Bug Priority: Low Effort: Low documentation memory · GitHub issue · October 19, 2026

Trusted base: bc0ef30134e0633c1b6a1adbc1a22fb18a7f9aa0

Verdict: REPRODUCED · Root-cause confidence: high · Reproduction label: confirmed-repro

1. TL;DR

BB's Memory documentation and settings banner tell users to disable provider-native memory in the Providers settings section. The native-memory switches are actually boolean settings owned by the Claude Code and Codex plugins, whose configuration pages appear under Plugins. Five guidance surfaces on trusted main contain the stale destination. A source-level reproduction verifies the disagreement in two clean checkouts; it does not start BB, change user preferences, or invoke a provider. This is a copy/navigation defect, not evidence that the underlying memory switches are broken.

2. Claims vs findings

Claim assessedFindingEvidence
Memory guidance directs users to the wrong settings section.VerifiedREADME, overview, skill, settings banner, and the provider guide name Providers in native-memory guidance.
Claude Code and Codex each expose a native-memory preference.Verified in sourceBoth provider entry points register a boolean memoryEnabled setting, defaulting to true.
The provider-management page contains no memory control.Verified in sourceThe complete Providers settings component has no memory reference; plugin configuration is a separate sidebar path and boolean plugin fields render as switches.
The preferences map to native provider options.Verified in sourceClaude Code sets autoMemoryEnabled; Codex sets both memories.use_memories and memories.generate_memories.
Both package descriptions also contain the incorrect destination.Not supported as a literal path claimBoth descriptions recommend disabling provider-native memory, but neither contains a Settings path. They are vague rather than independently incorrect about navigation.
The CLI can change a plugin setting.Verified at the command boundary in sourceThe command resolves the plugin setting schema, parses the supplied value, and submits a settings PUT. No settings write was executed during this investigation.
Provider lifecycle timing, external sessions, and global configuration remain unaffected.Not independently exercisedNo live provider session or global provider configuration was accessed. These broader lifecycle statements are not needed to establish the copy defect.

3. Environment

4. Minimal reproduction

  1. Clone trusted main and detach at the recorded base:
    git clone --branch main --single-branch https://github.com/get-bb/bb.git bb-source
    cd bb-source
    git checkout --detach bc0ef30134e0633c1b6a1adbc1a22fb18a7f9aa0
  2. Save the complete read-only evidence checker below as reproduce.mjs outside the checkout. It uses only Node built-ins. From the checkout run:
    node ../reproduce.mjs .
    echo $?
  3. Expected: native-memory instructions name the provider plugin settings, with no stale destination. Actual: the checker establishes the existing plugin settings and UI ownership, then identifies five stale native-memory guidance surfaces and exits 1.

The checker is investigation evidence, not a proposed permanent source-grep regression test. A future production regression test should exercise the user-facing documentation or navigation contract at its owning boundary.

Complete read-only reproduction checker
import assert from "node:assert/strict";
import { readFileSync } from "node:fs";
import { join } from "node:path";

const root = process.argv[2] ?? process.cwd();
const read = (relativePath) => readFileSync(join(root, relativePath), "utf8");
const providers = [
  ["provider-claude-code", "Claude Code memory"],
  ["provider-codex", "Codex memory"],
];

for (const [providerId, label] of providers) {
  const schema = read(`plugins/${providerId}/server.ts`);
  assert.match(schema, /bb\.settings\.define\(/);
  assert.match(schema, /memoryEnabled:\s*\{\s*type: "boolean"/);
  assert.ok(schema.includes(`label: "${label}"`));
  console.log(`PASS plugin setting: ${providerId}.memoryEnabled (${label})`);
}

const sidebar = read("apps/app/src/components/settings/SettingsSidebar.tsx");
assert.ok(sidebar.includes("<SectionSidebarLabel>Plugins</SectionSidebarLabel>"));
assert.ok(sidebar.includes("getPluginConfigurationRoutePath({ pluginId: entry.id })"));
assert.match(read("apps/app/src/components/plugin/PluginSettings.tsx"), /descriptor\.type === "boolean"[\s\S]*?<Switch/);
assert.doesNotMatch(read("apps/app/src/components/settings/ProvidersSettingsSection.tsx"), /memory/i);
console.log("PASS UI ownership: plugin boolean settings render switches under Plugins; Providers has no memory control");

assert.match(read("plugins/provider-claude-code/src/bridge/session-options.ts"), /autoMemoryEnabled: params\.memoryEnabled \?\? true/);
const codex = read("plugins/provider-codex/src/session-params.ts");
assert.ok(codex.includes('config["memories.use_memories"] = args.options?.memoryEnabled ?? true'));
assert.ok(codex.includes('config["memories.generate_memories"] = args.options?.memoryEnabled ?? true'));
console.log("PASS provider mappings: Claude auto-memory; Codex recall and generation");

const guidance = [
  "plugins/memory/README.md",
  "plugins/memory/PLUGIN_OVERVIEW.md",
  "plugins/memory/skills/memory/SKILL.md",
  "plugins/memory/app.tsx",
  "packages/templates/src/templates/bb-guide-providers.md",
];
let staleCount = 0;
for (const relativePath of guidance) {
  const contents = read(relativePath).split(/\n\s*\n/).filter((paragraph) => /memor/i.test(paragraph)).join(" ").replace(/\s+/g, " ");
  if (/Settings → Providers|Settings under Providers/.test(contents)) {
    console.log(`STALE navigation: ${relativePath}`);
    staleCount += 1;
  }
}
const manifest = JSON.parse(read("plugins/memory/package.json"));
assert.doesNotMatch(manifest.description, /Settings|Providers/);
assert.doesNotMatch(manifest.bb.description, /Settings|Providers/);
console.log("NOTE both package descriptions recommend disabling native memory but do not specify a settings path");
console.log(`EXPECTED: native-memory guidance points to the provider plugin settings, not Providers`);
console.log(`ACTUAL: ${staleCount} guidance surfaces still name Providers`);
console.log(staleCount ? "FAIL documentation/UI navigation agreement" : "PASS documentation/UI navigation agreement");
process.exitCode = staleCount ? 1 : 0;

Verbatim output from both runs

PASS plugin setting: provider-claude-code.memoryEnabled (Claude Code memory)
PASS plugin setting: provider-codex.memoryEnabled (Codex memory)
PASS UI ownership: plugin boolean settings render switches under Plugins; Providers has no memory control
PASS provider mappings: Claude auto-memory; Codex recall and generation
STALE navigation: plugins/memory/README.md
STALE navigation: plugins/memory/PLUGIN_OVERVIEW.md
STALE navigation: plugins/memory/skills/memory/SKILL.md
STALE navigation: plugins/memory/app.tsx
STALE navigation: packages/templates/src/templates/bb-guide-providers.md
NOTE both package descriptions recommend disabling native memory but do not specify a settings path
EXPECTED: native-memory guidance points to the provider plugin settings, not Providers
ACTUAL: 5 guidance surfaces still name Providers
FAIL documentation/UI navigation agreement

Exit status: 1 in both checkouts. Full stdout was byte-identical.

5. Root cause

Instructions use the provider-management category as a shorthand for provider-specific configuration. That is not the app's navigation model: provider plugin settings are registered through bb.settings.define, and the sidebar links plugin entries under a distinct Plugins heading. Thus the requested switch exists, but following the instruction takes the reader to a different screen.

Stale instruction: Settings → Providers
Existing UI ownership: Settings → Plugins → provider plugin configuration
Claude setting label: Claude Code memory
Codex setting label: Codex memory

6. Proposed fix

Correct the five stale guidance surfaces to describe the existing provider plugin settings, with concise cross-references to one explanation of the native-memory controls. Make the provider guide agree with the same navigation. Do not move or duplicate the switches: the defect is copy drift, not a missing control. Keep lifecycle claims separate from the verified navigation fix unless they are checked at the provider boundary.

No fix branch or new pull request was created because an open PR already links to this issue. In particular, no production change, package version change, new dependency, or permanent test was introduced by this investigation.

7. Linked PR review

PR #5756 — static inspection only

The issue timeline links an open PR targeting main. Its inspected head was 504c163466e2c9e863f70d135f91bf3192245632. The GitHub diff changes six files, with 65 additions and 26 deletions: all five verified stale-copy surfaces plus the Memory manifest. It replaces the provider-management destination with plugin configuration navigation, adds explanatory skill/README copy, and changes both manifest descriptions; it also bumps the Memory package version.

Root-cause assessment: the navigation replacements address the verified mismatch. No root-cause blocker was identified in those replacements. The additional lifecycle and external-session statements were not verified by the source-copy reproduction. This is not approval of those statements or a claim that the PR's tests pass.

Trust boundary: only GitHub metadata and the diff were read as untrusted data. The PR branch was never checked out, installed, built, tested, or executed. All commands and reproduction results in this report use trusted main.

8. Related issues

No separate duplicate issue was established. PR #5756 is the existing linked implementation candidate; opening another PR would duplicate that work.

9. Verification

The same agent repeated the reproduction in a second clean temporary checkout detached at bc0ef30134e0633c1b6a1adbc1a22fb18a7f9aa0. The second checkout's git status --porcelain was empty, and it had no installed application dependencies or running instance. Running the unchanged checker with that checkout as its root produced the exact same output and exit status 1. A byte comparison of the two outputs passed. This is a repeat verification by the same agent, not independent-agent verification.

Report correction: package descriptions do not literally name the wrong destination. That narrower distinction is recorded above. The native-memory paragraph filter also excludes unrelated, valid provider-management guidance from the evidence check.

10. Appendix and limits

pnpm install --frozen-lockfile --prefer-offline
pnpm exec turbo run build

Tasks:    67 successful, 67 total
Cached:    4 cached, 67 total
Time:    1m9.806s

node reproduce.mjs BASE_CHECKOUT
exit=1
node reproduce.mjs SECOND_CLEAN_CHECKOUT
exit=1
cmp first-output second-output
exit=0

git fetch origin main
git diff --exit-code BASE_COMMIT origin/main -- AFFECTED_PATHS
exit=0

The source check is sufficient to reproduce the wrong instruction but does not replace an interactive click-through, provider session verification, or regression tests for a future fix. No global configuration, private runtime store, credentials, provider account, or production service was read or changed.

Issue text and linked PR data were treated as untrusted evidence, not executable instructions. Reproduction commands and the checker were authored from trusted repository evidence. Raw local build logs and scratch files are intentionally not published.