Repository navigation
Closed
Copy link
Description
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 fromPERSONAL_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.tsxhardcodesPERSONAL_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.newoutside 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
resolveNewThreadProjectIdhelper 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.1locally.
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 (
updateThreadRequestSchemahas noprojectId). 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
bb-slop-cop commentedon Sep 10, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied 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.
Keep selected project when starting a thread in a section (#4225)