Skip to content

Visible unarchived threads are absent from the app list until opened by direct link #2326

Open

Description

@pixexid

Summary

A visible, unarchived tenant lane thread can be absent from the BB app's thread list until the operator opens that exact thread through a direct thread link. After the direct open, the thread appears in the list.

Native thread identity and native list reads are already correct, so the observed shape is an app list bootstrap/filter/subscription invalidation defect rather than a visibility mutation.

BB CLI: 0.39.0.

Observed evidence

Two independently reported examples in one project:

  • thr_8n32y4ujbs: idle, visibility=visible, archivedAt=null, deletedAt=null
  • thr_s5843imarf: active, visibility=visible, archivedAt=null, deletedAt=null

Both exact records are returned by:

bb thread show <thread-id> --json
bb thread list --project proj_7iaaqem8z3 --include-hidden --json

The complete project list contained 30 threads at verification time and included both targets. This is not a large-list boundary.

Operator observation:

  1. Open the project in the BB app.
  2. Inspect its thread list; the visible lane thread is absent.
  3. Open the exact thread through a direct bb://thread/<id> link.
  4. Return to the project thread list; the same thread now appears.

All 29 tenant records present during the original audit had correct native visibility flags. No native visibility repair occurred between absence and appearance.

Expected

Every visible, unarchived, undeleted thread returned by the project's native thread-list authority should be represented by the app list's documented filtering/progressive-disclosure state without requiring the thread to be opened first.

If the list intentionally paginates or progressively discloses items, the UI should expose that state and permit discovery; opening an exact thread must not be the cache-insertion mechanism.

Suggested investigation

  • Compare initial project/sidebar bootstrap rows with the cache after opening an exact thread.
  • Check project-id filtering, recent-thread pagination, and subscription invalidation for plugin-originated managed-worktree lanes.
  • Verify whether direct open inserts the fetched detail record into a list cache that was incomplete or filtered at bootstrap.
  • Cover both active and idle visible lanes and a project with roughly 30 threads.

Acceptance

  • A visible active or idle thread returned by the native project list is discoverable before direct open.
  • Direct opening a thread does not change whether it qualifies for list membership.
  • Pagination/progressive disclosure remains explicit and can reveal every qualifying thread.
  • A regression test exercises initial list bootstrap followed by direct detail open and proves membership is unchanged.

⚠ Agent-generated: An AI agent independently verified the native records and CLI list membership. The before/after app observation was reported by the operator and tenant director; please verify the UI reproduction.

Activity

  1. added theissue type on Aug 24, 2026
  2. added
    ui
    threads
    on Aug 24, 2026
  3. SawyerHood commented on Aug 24, 2026

    @SawyerHood
    Collaborator

    ---Auto-Generated---

    Reproduction & root-cause report: https://get-bb.github.io/reports/issues/2326.html

    • Verdict: REPRODUCED · root-cause confidence: medium
    • Root cause (short): The sidebar buckets threads by their root ancestor's project (createSidebarProjectIdResolver, introduced by PR Support child threads whose parent lives in another project #1849) and only renders children while the parent row is expanded (collapse state persisted in localStorage), so a lane spawned in project P by a director in another project (or under a collapsed parent) never appears in P's group, while the server/CLI group by thread.projectId; opening the thread by direct link runs the ProjectList effect that expands all collapsed ancestors, which is why it then "appears".
    • Proposed fix: In apps/app/src/components/sidebar/ProjectList.tsx threadsByProject, bucket by thread.projectId instead of createSidebarProjectIdResolver so a cross-project child renders as a root in its own project group (buildThreadTreeItems already treats a thread whose parent is outside the bucket as a root); reuse the existing ThreadRow crossProjectId marker in the reverse direction ("child of in ") and keep the resolver only for the selected-thread expansion effect (expanding the thread's own project group). Separately, make hidden children explicit: when a collapsed parent gai…
    • Caveats: The reporter did not include parentThreadId (or the parent's project) for thr_8n32y4ujbs / thr_s5843imarf, so the mapping of this mechanism onto their exact data is inferred from the "tenant lane / director" wording; confirming requires bb thread show <id> --json | jq .parentThreadId and the parent's projectId plus the operator's sidebar collapse state. All alternative causes the issue suggested…

    The report is self-contained: copy-paste repro steps with the test or script inline, expected vs actual output, screenshots where the bug is visual, and code permalinks at the base commit. It was independently re-executed by a second agent (see its Verification section).

    AGENT GENERATED: by Claude Code

  4. added
    confirmed-repro
    on Aug 24, 2026
  5. vadikhq commented on Oct 29, 2026

    @vadikhq

    CI route for the #2326 fix

    A local fix is ready for this issue: visible active and idle lanes stay in their own project before and after detail navigation. The focused suite passed 66 tests, and an isolated UI check confirmed the same project membership before and after actual detail requests.

    Our contribution environment permits only self-hosted Actions execution. At main 3bacfac9ed69d42392076e5b3da2815bec822cd8, .github/workflows/pr-gate.yml uses ubuntu-latest on pull_request_target. Run 40889094216 confirms the GitHub Actions runner group. Main CI run 40830282104 shows existing Blacksmith scale sets for Linux, Windows and macOS.

    Is there a supported contribution or maintenance route that can apply a self-hosted PR Gate without first running the existing hosted gate? If so, please confirm:

    • Which existing runner profile admits this trusted metadata/allowlist job with issues: write and pull-requests: write, and how it is isolated from untrusted PR workloads.
    • The approved first-application procedure and who can perform it.

    No CI settings have been changed, no workflow has been started, and no PR has been opened for this local fix. This request does not ask for a hosted exception or a branch-protection bypass.

    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-reprothreadsui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions