← reports

#6110 · Deferred rename focus in the iOS shell

BugPriority: MediumEffort: MediummobileuiGitHub issue2026-10-22

Trusted base: 9c3c56fa2b864b45104080a3a89ed39fb3196f0a

PARTIALLY REPRODUCED · Root-cause confidence: medium

1. TL;DR

The reporter describes selecting a thread title without getting the iPad software keyboard. The real inline rename component creates its input during rename, but does not focus or select it until a later animation frame. That timing is confirmed twice on unchanged production code; it can explain DOM selection without a keyboard in a WebView that requires user interaction for keyboard display. The native shell leaves the pinned WebView dependency's default user-action keyboard requirement unchanged. No iOS device or simulator is available on this Linux host, so native keyboard suppression is a supported hypothesis, not a reproduced native result. No production fix or pull request is safe on this evidence alone.

2. Claims vs findings

ClaimStatusEvidence
Opening inline rename selects the entire thread name.Verified at component boundaryReal controller/editor test checks complete selection after the queued frame.
The iPad software keyboard does not appear.Unverified on deviceNo iPad/iOS Simulator on this Linux host; jsdom has no native keyboard.
Double-click and the actions menu reach rename.Verified by source routingHeader double-click enters inline rename directly; wide-layout menu enters it after menu close.
Both gestures fail in TestFlight 0.39.0 (77).Unverified release claimTests use the recorded trusted main commit, not the TestFlight binary.

3. Environment

4. Minimal reproduction

This is a timing diagnostic and characterization of real production components, not a simulation of iOS keyboard policy. It deliberately supplies the already-loaded production editor, so deferred focus is observable even without the additional lazy-load delay. The test does not mock focus, selection, the controller, or the editor. Only the animation scheduler is held so the before/after boundary can be observed.

  1. Create a clean checkout at the trusted commit and install locked dependencies:
    git clone https://github.com/get-bb/bb.git bb-6110
    cd bb-6110
    git checkout --detach 9c3c56fa2b864b45104080a3a89ed39fb3196f0a
    pnpm install --frozen-lockfile --prefer-offline
  2. Copy the complete inline test below to apps/app/src/components/sidebar/Issue6110.repro.test.tsx.
  3. From the repository root run:
    VITEST_MAX_WORKERS=2 pnpm exec turbo run test --filter=@bb/app -- src/components/sidebar/Issue6110.repro.test.tsx
  4. Expected for the diagnostic synchronous-focus contract: the input is focused before returning from the double-click event. Actual: the input exists, but document.activeElement is the body; focusing and selecting happens only after the animation callback. The characterization passes and the synchronous-focus diagnostic intentionally fails. This failure alone does not establish a native keyboard failure.
@bb/app:test:    ✓ records that inline rename only focuses and selects in a later frame 111ms
@bb/app:test:    × diagnostic: rename focus is available before returning from the input gesture 17ms
@bb/app:test:  FAIL  |@bb/app:isolated| src/components/sidebar/Issue6110.repro.test.tsx > diagnostic: rename focus is available before returning from the input gesture
@bb/app:test: AssertionError: expected <body><div><div>…(1)</div></div></body> to be <input …(7)></input> // Object.is equality
@bb/app:test:      58| it("diagnostic: rename focus is available before returning from the in…
@bb/app:test:       Tests  1 failed | 1 passed (2)

Full command output is included in the appendix. Only temporary workspace prefixes have been normalized.

Complete timing reproduction test
// @vitest-environment jsdom

import { act, cleanup, fireEvent, render, screen } from "@testing-library/react";
import { afterEach, expect, it, vi } from "vitest";
import { InlineRenameEditor } from "@bb/shared-ui/inline-rename-editor";
import { useInlineRename, useRenameController } from "@bb/shared-ui/inline-rename";

function RenameHarness() {
  const controller = useRenameController();
  const { editor, isEditing, startEditing } = useInlineRename(
    {
      kind: "thread",
      id: "thr_repro6110",
      name: "Synthetic thread",
      label: "Thread name",
      onSave: async () => {},
    },
    { controller, Editor: InlineRenameEditor },
  );
  return (
    <div onDoubleClick={startEditing}>
      {isEditing ? editor : "Synthetic thread"}
    </div>
  );
}

afterEach(() => {
  cleanup();
  vi.unstubAllGlobals();
});

function beginRename() {
  const frames: FrameRequestCallback[] = [];
  vi.stubGlobal("requestAnimationFrame", (callback: FrameRequestCallback) => {
    frames.push(callback);
    return frames.length;
  });
  vi.stubGlobal("cancelAnimationFrame", vi.fn());
  render(<RenameHarness />);
  fireEvent.doubleClick(screen.getByText("Synthetic thread"));
  const input = screen.getByRole<HTMLInputElement>("textbox", {
    name: "Thread name",
  });
  return { input, frames };
}

it("records that inline rename only focuses and selects in a later frame", () => {
  const { input, frames } = beginRename();
  expect(document.activeElement).not.toBe(input);
  expect(frames).toHaveLength(1);
  act(() => frames[0]!(0));
  expect(document.activeElement).toBe(input);
  expect(input.selectionStart).toBe(0);
  expect(input.selectionEnd).toBe("Synthetic thread".length);
  console.log("Before frame: editor exists but is not focused. After frame: focused with complete title selection.");
});

it("diagnostic: rename focus is available before returning from the input gesture", () => {
  const { input } = beginRename();
  expect(document.activeElement).toBe(input);
});

5. Root cause and limits

Confirmed mechanism: inline rename schedules both focus and select inside requestAnimationFrame from a React effect. These are not performed synchronously while handling the title gesture. An ordinary DOM can still end up with a focused input and selected text; showing an iOS software keyboard is a separate native behavior not represented by those DOM assertions.

packages/shared-ui/src/components/ui/inline-rename-editor.tsx:22

  useEffect(() => {
    const input = inputRef.current;
    const row = input?.closest("[data-sidebar-rename-row]");
    anchorRef.current =
      row?.querySelector<HTMLElement>("[data-sidebar-rename-anchor]") ?? null;
    const frame = requestAnimationFrame(() => {
      input?.focus({ preventScroll: true });
      input?.select();
      openingRef.current = false;
    });
    return () => cancelAnimationFrame(frame);
  }, []);

The header uses this component through a lazy split, adding another possible asynchronous boundary. The diagnostic bypasses only the loader, not the real editor, making it a conservative timing demonstration rather than a test of the entire header.

apps/app/src/components/sidebar/SidebarInlineRename.tsx:9

const InlineRenameEditor = defineSplit<InlineRenameEditorProps>({
  id: "sidebar-rename-editor",
  load: () =>
    import("@bb/shared-ui/inline-rename-editor").then(
      (module) => module.InlineRenameEditor,
    ),
  loading: ({ session }) => (
    <span role="status" className="min-w-0 flex-1 truncate">
      {session.name}
    </span>
  ),
  tier: "intent",
});

export function useSidebarRename(args: InlineRenameArgs) {
  const controller = useRenameController();
  return useInlineRename(args, {
    controller,
    Editor: InlineRenameEditor,
    fitEditorToContent: true,
  });

Both reported entry paths can reach that editor on a wide layout. The menu waits for its close-autofocus event; double-click calls startEditing directly. Compact menu rename instead opens a dialog, so the two reported gestures do not universally use the same focus path.

apps/app/src/views/thread-detail/ThreadDetailHeader.tsx:99

  const { editor, isEditing, startEditing } = useSidebarRename({
    kind: "thread",
    id: threadId,
    name: threadTitle,
    label: "Thread name",
    onSave: handleRename,
  });
  const requestRenameDialog = useDefaultRequestRename();
  const pendingMenuRename = useRef(false);
  const requestRename = (id: string) => {
    if (isCompactViewport) requestRenameDialog(id);
    else startEditing();
  };
  const requestRenameFromMenu = (id: string) => {
    if (isCompactViewport) requestRenameDialog(id);
    else pendingMenuRename.current = true;
  };
  const handleActionsMenuCloseAutoFocus = (event: Event) => {
    if (!pendingMenuRename.current) return;
    pendingMenuRename.current = false;
    event.preventDefault();
    startEditing();
  };

apps/app/src/views/thread-detail/ThreadDetailHeader.tsx:177

  const handleTitleDoubleClick = () => {
    if (isEditing) {
      return;
    }
    startEditing();
  };

The compact breakpoint is 767 CSS pixels (source); actual viewport/orientation for the report was not measured. The shared rename dialog intentionally skips programmatic autofocus for coarse pointers, a separate behavior to distinguish on-device.

packages/shared-ui/src/components/ui/rename-dialog.tsx:61

export function useRenameDialogAutoFocus(): RenameDialogAutoFocus {
  const inputRef = useRef<HTMLInputElement | null>(null);
  const isPointerCoarse = usePointerCoarse();
  const handleOpenAutoFocus = useCallback(
    (event: Event) => {
      event.preventDefault();
      if (isPointerCoarse) return;

      const input = inputRef.current;
      if (input) {
        input.focus();
        input.select();
      }
    },
    [isPointerCoarse],
  );
  return { inputRef, handleOpenAutoFocus };

Native hypothesis: the native shell enables JavaScript but does not set keyboardDisplayRequiresUserAction. The installed, lockfile-pinned WebView documentation explicitly says its default true requires the user to tap the input; default false allows a programmatic focus to show its input view. Source inspection supports a timing/user-interaction mismatch, but cannot prove which iOS behavior actually occurs in the reported binary, including external-keyboard or viewport conditions.

apps/mobile/src/screens/webview/ProfileWebViewScreen.tsx:328

      <ShellWebView
        key={`${loadScope}#${reloadKey}`}
        ref={webViewRef}
        initialUrl={sourceUrl}
        style={{ backgroundColor: tokens.background }}
        sharedCookiesEnabled
        javaScriptEnabled
        domStorageEnabled
        allowsInlineMediaPlayback
        mediaPlaybackRequiresUserAction={false}
        mediaCapturePermissionGrantType="grant"
        hideKeyboardAccessoryView
        allowsBackForwardNavigationGestures={false}
        bounces={false}
        pullToRefreshEnabled={false}
        automaticallyAdjustContentInsets={false}
        contentInsetAdjustmentBehavior="never"
        webviewDebuggingEnabled={__DEV__}
        injectedJavaScriptBeforeContentLoaded={buildBridgeInjectionScript(
          handshake,
        )}
        onMessage={(event) => {
          canGoBack.current = event.nativeEvent.canGoBack;

Dependency evidence read locally: react-native-webview/lib/WebViewTypes.d.ts:444–455 and apple/RNCWebViewImpl.m:906–943. These are observations about locked dependency code, not executed native evidence. No external dependency URL from issue data was fetched.

6. Proposed fix and simple-fix gate

Next experiment: on a clean trusted iOS build, with no hardware keyboard, test a wide iPad viewport and a compact viewport. Compare header double-click, actions-menu rename, and directly tapping the resulting input. Record activeElement, selection range, and the actual keyboard in both cold and warm editor-load cases.

If that confirms the hypothesis, preserve trusted-gesture focus through editor creation/menu closure while avoiding the delayed first focus. Merely swapping useEffect for useLayoutEffect may not be enough because the editor itself is lazy and the menu completes later. Separately evaluate coarse-pointer dialog behavior; do not silently change its intentional keyboard policy.

No fix was started: only the scheduling portion is reproduced on trusted main, not the reported native keyboard defect. A meaningful regression that fails before and passes after an actual iOS repair cannot be demonstrated here. Globally disabling the WebView keyboard user-action requirement would affect more than this rename interaction and is not justified by this evidence.

7. Verification: second clean checkout

The same agent created a second clean detached checkout at exactly 9c3c56fa2b864b45104080a3a89ed39fb3196f0a, performed a separate frozen install, and copied only the authored timing test. Production files remained unchanged (git diff --exit-code passed). Running the same Turbo command in that second checkout again produced one passing characterization and one expected failing synchronous-focus diagnostic. This verifies only the final report's partial timing finding, not native keyboard suppression. No report correction was necessary. The first and second checkout directories were separate temporary worktrees named base and verify. No app process or ports were used in either run.

Existing relevant tests also passed on the unchanged base:

VITEST_MAX_WORKERS=2 pnpm exec turbo run test --filter=@bb/app -- src/views/thread-detail/ThreadDetailHeader.test.tsx src/components/dialogs/RenameDialog.test.tsx
Test Files  2 passed (2)
Tests  23 passed (23)
Full existing-test output is included below. Those tests cover edit/save and focus return but do not assert native keyboard display.

8. Related issues and pull requests

#3217 concerns restoring composer focus after closing rename, not opening the iOS keyboard. It is closed and is not established as a duplicate. The issue timeline contained no linked open pull requests, and an open-PR metadata search for 6110 returned none. No linked pull request code was checked out or executed.

9. Appendix

first-run.log
• turbo 2.10.12

   • Packages in scope: @bb/app
   • Running test in 1 packages
   • Remote caching disabled, using shared worktree cache

//:ensure-native-modules: cache bypass, force executing cf88f3ae476757ca
@bb/templates:generate:plugin-scaffold: cache miss, executing 68b6f1f537714bac
@bb/plugin-build:generate: cache miss, executing 36898d5112e78ab2
@bb/templates:generate:templates: cache miss, executing 0d3dd889eac55ce0
@bb/process-utils:generate:profile-worker: cache miss, executing f75e8e23f66083a2
//:ensure-native-modules: 
//:ensure-native-modules: > bb@ ensure-native-modules /tmp/issue-6110/base
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules: 
@bb/plugin-build:generate: 
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate /tmp/issue-6110/base/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 /tmp/issue-6110/base/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker: 
@bb/templates:generate:plugin-scaffold: 
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold /tmp/issue-6110/base/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold: 
@bb/templates:generate:templates: 
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates /tmp/issue-6110/base/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates: 
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
@bb/plugin-build:generate: wrote /tmp/issue-6110/base/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.2.4)
@bb/app:test: cache miss, executing 1fe5cb61cef836a8
@bb/app:test: 
@bb/app:test: > @bb/app@0.0.1 test /tmp/issue-6110/base/apps/app
@bb/app:test: > node scripts/generate-pwa-icons.mjs --check && vitest run --config vitest.config.ts "src/components/sidebar/Issue6110.repro.test.tsx"
@bb/app:test: 
@bb/app:test: 
@bb/app:test:  RUN  v4.1.1 /tmp/issue-6110/base/apps/app
@bb/app:test: 
@bb/app:test:  ❯ |@bb/app:isolated| src/components/sidebar/Issue6110.repro.test.tsx (2 tests | 1 failed) 130ms
@bb/app:test:    ✓ records that inline rename only focuses and selects in a later frame 111ms
@bb/app:test:    × diagnostic: rename focus is available before returning from the input gesture 17ms
@bb/app:test: 
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
@bb/app:test: 
@bb/app:test:  FAIL  |@bb/app:isolated| src/components/sidebar/Issue6110.repro.test.tsx > diagnostic: rename focus is available before returning from the input gesture
@bb/app:test: AssertionError: expected <body><div><div>…(1)</div></div></body> to be <input …(7)></input> // Object.is equality
@bb/app:test: 
@bb/app:test: - Expected
@bb/app:test: + Received
@bb/app:test: 
@bb/app:test: + <body>
@bb/app:test: +   <div>
@bb/app:test: +     <div>
@bb/app:test: +       <span
@bb/app:test: +         aria-busy="false"
@bb/app:test: +         class="relative z-50 flex min-w-0 flex-1 items-center gap-1"
@bb/app:test: +         data-sidebar-rename-editor=""
@bb/app:test: +       >
@bb/app:test:           <input
@bb/app:test:             aria-invalid="false"
@bb/app:test:             aria-label="Thread name"
@bb/app:test:             autocapitalize="sentences"
@bb/app:test:             autocorrect="off"
@bb/app:test:             class="min-w-0 flex-1 appearance-none border-0 bg-transparent px-0 py-0 [font:inherit] outline-none"
@bb/app:test:             spellcheck="false"
@bb/app:test:             value="Synthetic thread"
@bb/app:test:           />
@bb/app:test: +       </span>
@bb/app:test: +     </div>
@bb/app:test: +   </div>
@bb/app:test: + </body>
@bb/app:test: 
@bb/app:test:  ❯ src/components/sidebar/Issue6110.repro.test.tsx:60:34
@bb/app:test:      58| it("diagnostic: rename focus is available before returning from the in…
@bb/app:test:      59|   const { input } = beginRename();
@bb/app:test:      60|   expect(document.activeElement).toBe(input);
@bb/app:test:        |                                  ^
@bb/app:test:      61| });
@bb/app:test:      62|
@bb/app:test: 
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
@bb/app:test: 
@bb/app:test: 
@bb/app:test:  Test Files  1 failed (1)
@bb/app:test:       Tests  1 failed | 1 passed (2)
@bb/app:test:    Start at  10:31:34
@bb/app:test:    Duration  3.71s (transform 2.58s, setup 1.37s, import 1.48s, tests 130ms, environment 578ms)
@bb/app:test: 
@bb/app:test:  ELIFECYCLE  Test failed. See above for more details.
@bb/app#test:  ERROR  command (/tmp/issue-6110/base/apps/app) /usr/local/bin/pnpm run test src/components/sidebar/Issue6110.repro.test.tsx exited (1)

 Tasks:    5 successful, 6 total
Cached:    0 cached, 6 total
  Time:    6.344s 
Failed:    @bb/app#test

 ERROR  run failed: command  exited (1)
second-run.log
• turbo 2.10.12

   • Packages in scope: @bb/app
   • Running test in 1 packages
   • Remote caching disabled, using shared worktree cache

//:ensure-native-modules: cache bypass, force executing cf88f3ae476757ca
@bb/templates:generate:plugin-scaffold: cache hit, replaying logs 68b6f1f537714bac
@bb/templates:generate:plugin-scaffold: 
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold /tmp/issue-6110/base/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 0d3dd889eac55ce0
@bb/templates:generate:templates: 
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates /tmp/issue-6110/base/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates: 
@bb/plugin-build:generate: cache hit, replaying logs 36898d5112e78ab2
@bb/plugin-build:generate: 
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate /tmp/issue-6110/base/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: wrote /tmp/issue-6110/base/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.2.4)
@bb/process-utils:generate:profile-worker: cache hit, replaying logs f75e8e23f66083a2
@bb/process-utils:generate:profile-worker: 
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker /tmp/issue-6110/base/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 /tmp/issue-6110/verify
//: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 1fe5cb61cef836a8
@bb/app:test: 
@bb/app:test: > @bb/app@0.0.1 test /tmp/issue-6110/verify/apps/app
@bb/app:test: > node scripts/generate-pwa-icons.mjs --check && vitest run --config vitest.config.ts "src/components/sidebar/Issue6110.repro.test.tsx"
@bb/app:test: 
@bb/app:test: 
@bb/app:test:  RUN  v4.1.1 /tmp/issue-6110/verify/apps/app
@bb/app:test: 
@bb/app:test:  ❯ |@bb/app:isolated| src/components/sidebar/Issue6110.repro.test.tsx (2 tests | 1 failed) 130ms
@bb/app:test:    ✓ records that inline rename only focuses and selects in a later frame 112ms
@bb/app:test:    × diagnostic: rename focus is available before returning from the input gesture 17ms
@bb/app:test: 
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 1 ⎯⎯⎯⎯⎯⎯⎯
@bb/app:test: 
@bb/app:test:  FAIL  |@bb/app:isolated| src/components/sidebar/Issue6110.repro.test.tsx > diagnostic: rename focus is available before returning from the input gesture
@bb/app:test: AssertionError: expected <body><div><div>…(1)</div></div></body> to be <input …(7)></input> // Object.is equality
@bb/app:test: 
@bb/app:test: - Expected
@bb/app:test: + Received
@bb/app:test: 
@bb/app:test: + <body>
@bb/app:test: +   <div>
@bb/app:test: +     <div>
@bb/app:test: +       <span
@bb/app:test: +         aria-busy="false"
@bb/app:test: +         class="relative z-50 flex min-w-0 flex-1 items-center gap-1"
@bb/app:test: +         data-sidebar-rename-editor=""
@bb/app:test: +       >
@bb/app:test:           <input
@bb/app:test:             aria-invalid="false"
@bb/app:test:             aria-label="Thread name"
@bb/app:test:             autocapitalize="sentences"
@bb/app:test:             autocorrect="off"
@bb/app:test:             class="min-w-0 flex-1 appearance-none border-0 bg-transparent px-0 py-0 [font:inherit] outline-none"
@bb/app:test:             spellcheck="false"
@bb/app:test:             value="Synthetic thread"
@bb/app:test:           />
@bb/app:test: +       </span>
@bb/app:test: +     </div>
@bb/app:test: +   </div>
@bb/app:test: + </body>
@bb/app:test: 
@bb/app:test:  ❯ src/components/sidebar/Issue6110.repro.test.tsx:60:34
@bb/app:test:      58| it("diagnostic: rename focus is available before returning from the in…
@bb/app:test:      59|   const { input } = beginRename();
@bb/app:test:      60|   expect(document.activeElement).toBe(input);
@bb/app:test:        |                                  ^
@bb/app:test:      61| });
@bb/app:test:      62|
@bb/app:test: 
@bb/app:test: ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/1]⎯
@bb/app:test: 
@bb/app:test: 
@bb/app:test:  Test Files  1 failed (1)
@bb/app:test:       Tests  1 failed | 1 passed (2)
@bb/app:test:    Start at  10:32:22
@bb/app:test:    Duration  3.37s (transform 2.31s, setup 1.27s, import 1.28s, tests 130ms, environment 543ms)
@bb/app:test: 
@bb/app:test:  ELIFECYCLE  Test failed. See above for more details.
@bb/app#test:  ERROR  command (/tmp/issue-6110/verify/apps/app) /usr/local/bin/pnpm run test src/components/sidebar/Issue6110.repro.test.tsx exited (1)

 Tasks:    5 successful, 6 total
Cached:    4 cached, 6 total
  Time:    5.189s 
Failed:    @bb/app#test

 ERROR  run failed: command  exited (1)
existing-tests.log
• turbo 2.10.12

   • Packages in scope: @bb/app
   • Running test in 1 packages
   • Remote caching disabled, using shared worktree cache

@bb/templates:generate:plugin-scaffold: cache miss, executing d6e842845b3d7240
@bb/process-utils:generate:profile-worker: cache miss, executing 54ec5146fbdf5893
//:ensure-native-modules: cache bypass, force executing e9d80a5f63d5d0cb
@bb/plugin-build:generate: cache miss, executing c4481acabdb92725
@bb/templates:generate:templates: cache miss, executing c99c53a316ea25bc
//:ensure-native-modules: 
//:ensure-native-modules: > bb@ ensure-native-modules /tmp/issue-6110/base
//:ensure-native-modules: > node scripts/ensure-native-modules.mjs
//:ensure-native-modules: 
@bb/plugin-build:generate: 
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate /tmp/issue-6110/base/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/templates:generate:plugin-scaffold: 
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold /tmp/issue-6110/base/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold: 
@bb/templates:generate:templates: 
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates /tmp/issue-6110/base/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates: 
@bb/process-utils:generate:profile-worker: 
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker /tmp/issue-6110/base/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker: 
@bb/plugin-build:generate: plugin-theme.generated.ts up to date
@bb/plugin-build:generate: wrote /tmp/issue-6110/base/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.2.4)
@bb/app:test: cache miss, executing 40054181d7283999
@bb/app:test: 
@bb/app:test: > @bb/app@0.0.1 test /tmp/issue-6110/base/apps/app
@bb/app:test: > node scripts/generate-pwa-icons.mjs --check && vitest run --config vitest.config.ts "src/views/thread-detail/ThreadDetailHeader.test.tsx" "src/components/dialogs/RenameDialog.test.tsx"
@bb/app:test: 
@bb/app:test: 
@bb/app:test:  RUN  v4.1.1 /tmp/issue-6110/base/apps/app
@bb/app:test: 
@bb/app:test:  ✓ |@bb/app:isolated| src/components/dialogs/RenameDialog.test.tsx (1 test) 217ms
@bb/app:test:  ✓ |@bb/app:isolated| src/views/thread-detail/ThreadDetailHeader.test.tsx (22 tests) 688ms
@bb/app:test:      ✓ edits the title inline after a double click and commits on Enter  326ms
@bb/app:test: 
@bb/app:test:  Test Files  2 passed (2)
@bb/app:test:       Tests  23 passed (23)
@bb/app:test:    Start at  10:32:29
@bb/app:test:    Duration  20.22s (transform 27.36s, setup 3.06s, import 25.74s, tests 904ms, environment 1.39s)
@bb/app:test: 

 Tasks:    6 successful, 6 total
Cached:    0 cached, 6 total
  Time:    22.315s 

build-attempt.log
• turbo 2.10.12

   • Packages in scope: @bb/agent-runtime, @bb/ai-gateway, @bb/app, @bb/bundled-plugins, @bb/cli, @bb/client-core, @bb/config, @bb/connect, @bb/connect-client, @bb/connect-db, @bb/connect-next, @bb/core-ui, @bb/db, @bb/demo-server, @bb/desktop, @bb/desktop-contract, @bb/domain, @bb/frp-client, @bb/fuzzy-match, @bb/hono-typed-routes, @bb/host-daemon, @bb/host-daemon-contract, @bb/host-watcher, @bb/host-workspace, @bb/integration-tests, @bb/local-open-targets, @bb/logger, @bb/mobile, @bb/mobile-bridge, @bb/plugin-build, @bb/plugin-registry, @bb/process-utils, @bb/provider-bridge-acp, @bb/provider-bridge-protocol, @bb/provider-parity, @bb/qa, @bb/query-tags, @bb/scripts, @bb/sdk, @bb/secret-storage, @bb/server, @bb/server-archive, @bb/server-contract, @bb/shared-ui, @bb/templates, @bb/test-helpers, @bb/text-utils, @bb/thread-view, @bb/tsconfig, @bb/tunnel-client, @bb/tunnel-contract, @bb/web, @get-bb/plugin-sdk, bb-app, bb-environment-provider-host, bb-plugin-account-pool, bb-plugin-agent-annotations, bb-plugin-agent-enrichment, bb-plugin-ask-user-question, bb-plugin-automations, bb-plugin-bb--connect-next, bb-plugin-bb--mcp, bb-plugin-bb--prompt-library, bb-plugin-bb--provider-usage, bb-plugin-bb--storage-retention, bb-plugin-bb-account, bb-plugin-bb-ai, bb-plugin-bb-guide, bb-plugin-browser-automation, bb-plugin-composer-customization, bb-plugin-concurrency-limit, bb-plugin-connect, bb-plugin-content-script-example, bb-plugin-custom-instructions, bb-plugin-drafts, bb-plugin-echo-provider, bb-plugin-environment-git-worktree, bb-plugin-environment-modal-sandbox, bb-plugin-environment-personal-workspace, bb-plugin-environment-project-checkout, bb-plugin-github, bb-plugin-inline-vis, bb-plugin-keep-awake, bb-plugin-memory, bb-plugin-monaco-editor, bb-plugin-navigation, bb-plugin-pdf-preview, bb-plugin-plugin-api-docs, bb-plugin-plugin-api-tester, bb-plugin-provider-acp, bb-plugin-provider-claude-code, bb-plugin-provider-codex, bb-plugin-provider-pi, bb-plugin-provider-retry, bb-plugin-push-notifications, bb-plugin-replacement-lab-alpha, bb-plugin-replacement-lab-beta, bb-plugin-scheduled-send, bb-plugin-scripted-echo-provider, bb-plugin-secrets, bb-plugin-side-chat, bb-plugin-simple-notes, bb-plugin-slack-bot, bb-plugin-tasks, bb-plugin-theme-preview, bb-plugin-thread-chat-demo, bb-plugin-thread-list, bb-plugin-workflows
   • Running build in 108 packages
   • Remote caching disabled, using shared worktree cache

@bb/process-utils:generate:profile-worker: cache miss, executing e221e31e60b12b3a
@bb/connect-next:build: cache miss, executing 5b73226c4c06ea2d
@bb/templates:generate:plugin-scaffold: cache hit, replaying logs 552ecfd720dd14ee
@bb/templates:generate:plugin-scaffold: 
@bb/templates:generate:plugin-scaffold: > @bb/templates@0.0.1 generate:plugin-scaffold /tmp/trusted-checkout/packages/templates
@bb/templates:generate:plugin-scaffold: > node ./scripts/generate-plugin-scaffold.mjs
@bb/templates:generate:plugin-scaffold: 
@bb/server:generate:bb-official-marketplace: cache hit, replaying logs fbff0c7d4e10d654
@bb/server:generate:bb-official-marketplace: 
@bb/server:generate:bb-official-marketplace: > @bb/server@0.0.1 generate:bb-official-marketplace /tmp/trusted-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: 
@bb/plugin-build:generate: cache hit, replaying logs e2d14bbf5a4d4ef7
@bb/templates:generate:templates: cache hit, replaying logs e7f57e7cca057ddc
@bb/plugin-build:generate: 
@bb/plugin-build:generate: > @bb/plugin-build@0.0.1 generate /tmp/trusted-checkout/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: wrote packages/plugin-build/src/generated/plugin-theme.generated.ts
@bb/plugin-build:generate: wrote /tmp/trusted-checkout/packages/plugin-build/src/generated/runtime-export-manifest.generated.ts (react@19.2.4)
@bb/templates:generate:templates: 
@bb/templates:generate:templates: > @bb/templates@0.0.1 generate:templates /tmp/trusted-checkout/packages/templates
@bb/templates:generate:templates: > node ./scripts/generate-templates.mjs
@bb/templates:generate:templates: 
@bb/web:build: cache miss, executing 5ac3236e28a104f1
@bb/connect-next:build: 
@bb/connect-next:build: > @bb/connect-next@0.0.1 build /tmp/issue-6110/base/apps/connect-next
@bb/connect-next:build: > esbuild src/main.ts --bundle --platform=node --format=esm --target=node24 --outfile=dist/gate.mjs
@bb/connect-next:build: 
@bb/web:build: 
@bb/web:build: > @bb/web@0.0.1 build /tmp/issue-6110/base/apps/web
@bb/web:build: > vite build
@bb/web:build: 
@bb/process-utils:generate:profile-worker: 
@bb/process-utils:generate:profile-worker: > @bb/process-utils@0.0.1 generate:profile-worker /tmp/issue-6110/base/packages/process-utils
@bb/process-utils:generate:profile-worker: > node scripts/generate-profile-worker.mjs
@bb/process-utils:generate:profile-worker: 
@bb/connect-next:build: 
@bb/connect-next:build:   dist/gate.mjs  217.1kb
@bb/connect-next:build: 
@bb/connect-next:build: ⚡ Done in 30ms
@bb/sdk:build: cache miss, executing 1ab6aac9c5d6babf
@bb/scripts:build: cache miss, executing 3068c6f4d5ed46c0
@get-bb/plugin-sdk:build: cache miss, executing 6aa54bc07ef736bd
@get-bb/plugin-sdk:build:types: cache miss, executing 58aaf80c035912a1
@bb/plugin-build:build: cache miss, executing f53bd5b2e9e37279
bb-plugin-memory:build: cache miss, executing 35b06c7947a0fb3f
@bb/cli:build: cache miss, executing 2cc10ed8896b896c
bb-plugin-github:build: cache miss, executing 0906aef31c4f67df
bb-plugin-simple-notes:build: cache miss, executing c9c810ab8d335935
bb-plugin-simple-notes:build: 
bb-plugin-simple-notes:build: > bb-plugin-simple-notes@0.2.3 build /tmp/issue-6110/base/plugins/docs
bb-plugin-simple-notes:build: > node --conditions=source --import tsx ../../scripts/build-official-plugins.mjs docs
bb-plugin-simple-notes:build: 
@bb/scripts:build: 
@bb/scripts:build: > @bb/scripts@0.0.1 build /tmp/issue-6110/base/packages/scripts
@bb/scripts:build: > node ../../scripts/build-package.mjs
@bb/scripts:build: 
@get-bb/plugin-sdk:build: 
@get-bb/plugin-sdk:build: > @get-bb/plugin-sdk@0.6.68 build /tmp/issue-6110/base/packages/plugin-sdk
@get-bb/plugin-sdk:build: > node scripts/build-runtime.mjs
@get-bb/plugin-sdk:build: 
@bb/plugin-build:build: 
@bb/plugin-build:build: > @bb/plugin-build@0.0.1 build /tmp/issue-6110/base/packages/plugin-build
@bb/plugin-build:build: > node ../../scripts/build-node-entry.mjs src/cli.ts dist/cli.js --clean-dist
@bb/plugin-build:build: 
bb-plugin-memory:build: 
bb-plugin-memory:build: > bb-plugin-memory@0.2.0 build /tmp/issue-6110/base/plugins/memory
bb-plugin-memory:build: > node --conditions=source --import tsx ../../scripts/build-official-plugins.mjs memory
bb-plugin-memory:build: 
bb-plugin-github:build: 
bb-plugin-github:build: > bb-plugin-github@0.2.1 build /tmp/issue-6110/base/plugins/github
bb-plugin-github:build: > node --conditions=source --import tsx ../../scripts/build-official-plugins.mjs github
bb-plugin-github:build: 
@get-bb/plugin-sdk:build:types: 
@get-bb/plugin-sdk:build:types: > @get-bb/plugin-sdk@0.6.68 build:types /tmp/issue-6110/base/packages/plugin-sdk
@get-bb/plugin-sdk:build:types: > node scripts/build-bundled-dts.mjs
@get-bb/plugin-sdk:build:types: 
@bb/cli:build: 
@bb/cli:build: > @bb/cli@0.0.1 build /tmp/issue-6110/base/apps/cli
@bb/cli:build: > node ../../scripts/build-node-entry.mjs src/index.ts dist/index.js --clean-dist --split
@bb/cli:build: 
@bb/sdk:build: 
@bb/sdk:build: > @bb/sdk@0.0.1 build /tmp/issue-6110/base/packages/sdk
@bb/sdk:build: > node ../../scripts/build-package.mjs
@bb/sdk:build: 
@bb/app:build: cache miss, executing 2bde3fbe51cef586
@bb/app:build: 
@bb/app:build: > @bb/app@0.0.1 build /tmp/issue-6110/base/apps/app
@bb/app:build: > node scripts/generate-pwa-icons.mjs && vite build --logLevel warn && node ../../scripts/precompress-app-dist.mjs dist
@bb/app:build: 
@bb/scripts:build: @bb/scripts: built 4 entries
@bb/server:build: cache miss, executing e9b7b376c9bf6f27
@bb/sdk:build: @bb/sdk: built 4 entries
@bb/host-daemon:build: cache miss, executing 427ca9c3cf490d75
@bb/server:build: 
@bb/server:build: > @bb/server@0.0.1 build /tmp/issue-6110/base/apps/server
@bb/server:build: > node ../../scripts/build-node-entry.mjs src/index.ts dist/index.js --clean-dist --external ./start-server.js --copy-dir ../../packages/db/drizzle dist/drizzle --copy-dir src/assets dist/assets && node --import tsx scripts/copy-builtin-skills.ts && node ../../scripts/build-node-entry.mjs src/start-server.ts dist/start-server.js && node ../../scripts/build-node-entry.mjs ../../packages/plugin-sdk/src/index.ts dist/plugin-sdk-runtime.js && node ../../scripts/build-node-entry.mjs src/services/plugins/zod-runtime.ts dist/zod-runtime.js
@bb/server:build: 
@bb/host-daemon:build: 
@bb/host-daemon:build: > @bb/host-daemon@0.0.1 build /tmp/issue-6110/base/apps/host-daemon
@bb/host-daemon:build: > node ../../scripts/build-node-entry.mjs src/index.ts dist/index.js --clean-dist --external ./start-host-daemon.js && node ../../scripts/build-node-entry.mjs src/start-host-daemon.ts dist/start-host-daemon.js && node ../../scripts/build-node-entry.mjs src/plugin-host-worker.ts dist/plugin-host-worker.js && node ./scripts/build-bundles.mjs
@bb/host-daemon:build: 
bb-plugin-github:build: ✘ [ERROR] "@get-bb/plugin-sdk/host" is installed for this plugin but its dist is not built: run the SDK build (/tmp/issue-6110/base/plugins/github/node_modules/@get-bb/plugin-sdk/dist/host.js is missing); a server entry's "@get-bb/plugin-sdk/host" import is bundled from the plugin's own SDK install (bb serves only the bare "@get-bb/plugin-sdk" at load time), so the plugin needs the built SDK [plugin bb-plugin-sdk-resolution]
bb-plugin-github:build: 
bb-plugin-github:build:     server.ts:4:7:
bb-plugin-github:build:       4 │ } from "@get-bb/plugin-sdk/host";
bb-plugin-github:build:         ╵        ~~~~~~~~~~~~~~~~~~~~~~~~~
bb-plugin-github:build: 
bb-plugin-github:build: /tmp/issue-6110/base/node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/lib/main.js:1748
bb-plugin-github:build:   let error = new Error(text);
bb-plugin-github:build:               ^
bb-plugin-github:build: 
bb-plugin-github:build: Error: Build failed with 1 error:
bb-plugin-github:build: server.ts:4:7: ERROR: [plugin: bb-plugin-sdk-resolution] "@get-bb/plugin-sdk/host" is installed for this plugin but its dist is not built: run the SDK build (/tmp/issue-6110/base/plugins/github/node_modules/@get-bb/plugin-sdk/dist/host.js is missing); a server entry's "@get-bb/plugin-sdk/host" import is bundled from the plugin's own SDK install (bb serves only the bare "@get-bb/plugin-sdk" at load time), so the plugin needs the built SDK
bb-plugin-github:build:     at failureErrorWithLog (/tmp/issue-6110/base/node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/lib/main.js:1748:15)
bb-plugin-github:build:     at /tmp/issue-6110/base/node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/lib/main.js:1207:25
bb-plugin-github:build:     at runOnEndCallbacks (/tmp/issue-6110/base/node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/lib/main.js:1588:45)
bb-plugin-github:build:     at buildResponseToResult (/tmp/issue-6110/base/node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/lib/main.js:1205:7)
bb-plugin-github:build:     at /tmp/issue-6110/base/node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/lib/main.js:1232:16
bb-plugin-github:build:     at responseCallbacks.<computed> (/tmp/issue-6110/base/node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/lib/main.js:884:9)
bb-plugin-github:build:     at handleIncomingPacket (/tmp/issue-6110/base/node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/lib/main.js:939:12)
bb-plugin-github:build:     at Socket.readFromStdout (/tmp/issue-6110/base/node_modules/.pnpm/esbuild@0.28.1/node_modules/esbuild/lib/main.js:862:7)
bb-plugin-github:build:     at Socket.emit (node:events:519:28)
bb-plugin-github:build:     at addChunk (node:internal/streams/readable:561:12) {
bb-plugin-github:build:   errors: [Getter/Setter],
bb-plugin-github:build:   warnings: [Getter/Setter]
bb-plugin-github:build: }
bb-plugin-github:build: 
bb-plugin-github:build: Node.js v22.19.0
bb-plugin-github:build:  ELIFECYCLE  Command failed with exit code 1.
@get-bb/plugin-sdk:build: Built 22 @get-bb/plugin-sdk runtime entries.
bb-plugin-github#build:  ERROR  command (/tmp/issue-6110/base/plugins/github) /usr/local/bin/pnpm run build exited (1)

 Tasks:    10 successful, 19 total
Cached:    4 cached, 19 total
  Time:    3.246s 
Failed:    bb-plugin-github#build

 ERROR  run failed: command  exited (1)

Published logs replace the ephemeral workspace prefix with /tmp/issue-6110; they contain only synthetic titles and repository build/test output. All test results come from actual command execution. No screenshots were manufactured, no native keyboard result was invented, and no secrets or user runtime data were read.

Relevant commands: GitHub read-only issue/type/field/label/timeline queries; trusted-origin identity check; git fetch origin main; git worktree add --detach for base and verify; frozen pnpm installs; pnpm exec turbo run build; the focused timing and existing-test commands above; source and dependency inspection with rg/sed/git blame; git diff --exit-code in the second checkout; Browser Automation open, which failed before creating a session. An initial test invocation with an extra argument separator was interrupted and rerun with the focused command documented above. origin/main was fetched again after investigation and remained at the recorded base.

Issue text was treated only as untrusted claims; no issue-supplied commands, patches, branches, or external URLs were executed or fetched.