Skip to content

Setting: default project for new threads instead of the personal project #3429

Description

@vanisenya

The workflow

I use bb almost entirely with one repository. When I start a new thread from the sidebar "New thread" button, from a section's "+" button, or with Cmd+N while a personal thread is open, the composer opens on the personal project. The thread then runs in an empty ~/.bb/personal-workspaces/env_* scratch directory, so the file panel shows nothing from my repo, and I have to remember to switch projects every time.

What happens today

  • The root composer's project is remembered per client in localStorage (bb.root-compose.project-id), starting from PERSONAL_PROJECT_ID. A new device, a cleared browser, or one New thread from a personal thread puts it back on personal.
  • The section "+" handler in ProjectList.tsx hardcodes PERSONAL_PROJECT_ID, so it always creates personal threads.
  • No setting exists to choose a different default.

What you would expect

A server-backed General setting defaultProjectId (default null, so nothing changes unless it is set):

  • Settings -> General: "Default project for new threads", with "Personal (no project)" plus the user's projects.
  • When it is set, the generic entry points start in that project: sidebar New thread, section "+", thread.new outside a real project route, and a client with nothing remembered. Cmd+N inside a real project keeps that project, and the project can still be changed in the composer.
  • CLI: bb settings general defaultProjectId <id|null>.

Prototype on my fork: main...vanisenya:bb:default-project-setting

  • Adds the schema key, a resolveNewThreadProjectId helper with unit tests, the AppLayout, AppSidebar and ProjectList wiring, the Settings select, a CLI test, and updates to the docs, guide template and bb-cli reference.
  • Typecheck plus targeted db, server, cli, app, domain and templates tests pass.
  • I have been running it on top of desktop-v0.42.1 locally.

Context and alternatives

  • Workaround without the setting: pick the project manually on every new thread.
  • A related gap I hit: an existing thread cannot be moved to another project (updateThreadRequestSchema has no projectId). That could be a separate issue if useful.

Checks

  • I searched open and closed issues for the same request.
  • If an agent wrote this, the body ends with > AGENT GENERATED.

AGENT GENERATED

Activity

  1. added
    ui
    cli
    on Sep 10, 2026
  2. bb-slop-cop commented on Sep 10, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied Type: Feature · Priority: Low · Effort: Medium · Labels: ui, cli. All classifications were missing; existing values were preserved. Verified the final Type is Feature.

    This adds a configurable default, with manual project selection available as a workaround. Implementation spans settings and thread creation entry points. Reproduction and fix steps were skipped because this is a feature request; no pull request was opened.

    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

    cliui

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions