Skip to content

Mobile: slight touch drift on a pinned thread can unpin it #4281

Closed

Description

@csells

Summary

On a phone, touching a pinned thread in the sidebar can sometimes unpin it instead of opening it. A slightly slow tap or tiny finger drift can cross the sidebar's touch drag activation threshold, after which releasing over a normal section is treated as an intentional drag out of Pinned.

Expected: touching a thread row navigates to it, and pin state changes only after an unmistakably deliberate action.

Versions and environment

  • BB 0.43.4
  • BB server on macOS, accessed from a phone through BB Connect
  • Exact phone OS/browser was not captured
  • Observed in the built-in Thread List plugin

Steps to reproduce

  1. Pin a visible root thread so it appears in the Pinned section.
  2. On a phone, touch the thread row slightly slowly and allow a few pixels of natural finger drift.
  3. Release after the row begins behaving like a drag, over a non-pinned sidebar section.
  4. Observe that the thread leaves Pinned.

The symptom is timing/movement-sensitive rather than occurring on every tap. The source-level trigger is deterministic: the shared touch sensor activates after a 200 ms hold with up to 6 px movement.

Expected vs actual

Expected: The touched thread opens and remains pinned.
Actual: The gesture can be interpreted as a drag out of Pinned, and the thread becomes unpinned.

Evidence

Observed by a user on a physical phone. I then inspected the exact BB 0.43.4 Thread List bundle and current source:

  • The touch sensor uses delay: 200 and tolerance: 6:
    const sensors = useSensors(
    useSensor(MouseSensor, { activationConstraint: { distance: 8 } }),
    useSensor(touchSensor, {
    activationConstraint: { delay: 200, tolerance: 6 },
    }),
    useSensor(KeyboardSensor, {
    coordinateGetter: sortableKeyboardCoordinates,
    }),
  • Committing a cross-section drop unpins every ID in decision.unpinThreadIds:
    const commitDropChanges = useCallback(
    (
    decision: Extract<
    SectionThreadDropDecision,
    { kind: "move" | "nest" | "pin" }
    >,
    failureMessage: string,
    ) =>
    Promise.all(
    decision.unpinThreadIds.map((threadId) =>
    sidebarActions.setPinned(threadId, false),
    ),
    )
  • The existing projection test confirms that dragging a pinned row to a normal section calls setPinned(..., false), but it invokes onDragStart/onDragEnd directly and does not cover touch activation ambiguity:
    it("routes drag unpinning through the optimistic sidebar action", async () => {
    const pinned = createThread({
    id: "pinned-thread",
    pinnedAt: 42,
    sectionId: "a",
    });
    const { inspection, result } = renderSectionThreadDnd(ROOT_ITEMS, [pinned]);
    const props = () => result.current!.dndContextProps;
    act(() => props().onDragStart?.(dragStart(pinned.id)));
    act(() => props().onDragEnd?.(dragEnd(pinned.id, "section:a")));
    await flushTasks();
    expect(inspection.sidebarActionCalls).toEqual([
    { method: "setPinned", threadId: pinned.id, pinned: false },
    ]);
    expect(inspection.sdkCalls).not.toContainEqual({
    method: "threads.unpin",
    args: [{ threadId: pinned.id }],
    });

A mobile-safe correction would make row selection and reordering unambiguous—for example, require an explicit drag handle on coarse pointers. At minimum, add a regression test that drives the touch activation path and proves an ordinary slightly slow/drifting tap cannot mutate pin state.

What you ruled out

  • Not caused by the user's Auto Pin plugin: that plugin has no unpin call or frontend code.
  • No matching open or closed issue was found by searching for mobile/sidebar/drag/unpin terms.
  • This is not only a visual projection: the drop commit path actually persists pinned: false.

Suggested priority and effort

Medium — it changes persistent thread organization through an ambiguous everyday mobile gesture. Workaround: repin the thread manually. Likely medium effort because the shared drag sensor supports multiple sidebar reorder flows.

AGENT GENERATED — investigation thread thr_bizwzwnvq2 (private BB thread)

Activity

  1. added theissue type on Sep 24, 2026
  2. added
    mobile
    ui
    confirmed-repro
    on Sep 24, 2026
  3. bb-slop-cop commented on Sep 24, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Bug · Priority: Medium · Effort: Medium. Applied mobile, ui, and confirmed-repro; no existing classification values were replaced.

    Reproduction and root-cause report: REPRODUCED, high root-cause confidence. In two trusted checkouts, the touch-event regression passed at 100 ms but failed at 210 ms: 4 px movement into an adjacent section invoked setPinned(false). The 200 ms touch activation has no further intent gate before the cross-section unpin action. All 17 relevant existing tests passed.

    Verification used an isolated DOM harness; physical-phone frequency and database persistence were not measured. No PR: choosing a reliable mobile reorder initiation gesture requires a product decision outside the simple-fix rule.

    AGENT GENERATED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-repromobileui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions