Repository navigation
Conversation
toCompose gains split: true, which opens the New thread screen beside the caller with toThread's split rules (right split, replace at the pane cap, plain navigation where splits are off; focus and retarget an open composer pane). openNewThread (split-layout/openNewThread.ts) is now the only way core opens the screen: toCompose, the superseded sidebar openNewThread, the sidebar New thread button and its Open in split, the thread.new command, New thread in environment, Create/Edit via chat entry points, Create custom palette, and quick-create project. The thread-list plugin's project, section, machine and Threads plus buttons pass split: true, so they no longer replace the focused pane. Plugin SDK 0.6.184. Fixes #8011 Fixes #2795 Co-Authored-By: Claude Opus 5.5 <[email protected]>
useQuickCreateProject's test mocked root-compose-selection without the new setter, SkillsView's fork test expected the never-read createDraftKind state, and frontend-hooks-and-ui.md went to 501 lines. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Match the sidebar New thread button: a plain click on a project, section, machine, Pinned, Threads or environment plus replaces the focused pane, and Cmd/Ctrl-click opens the New thread screen beside it. The click's modifier now reaches toCompose's split through each handler. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…pose openNewThread always passes its navigate options, and toCompose hands react-router's navigate straight to it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nnewthread-support-split-true-thr_ugkg2rfyx8 # Conflicts: # packages/domain/src/plugin-sdk-version.ts # packages/plugin-sdk/package.json
…nnewthread-support-split-true-thr_ugkg2rfyx8 # Conflicts: # apps/app/src/components/tools/SkillsLibrary.tsx # apps/app/src/lib/plugin-navigation-hooks.ts # apps/app/src/views/ToolsView.tsx # plugins/bb-guide/skills/bb-plugin-authoring/references/frontend-hooks-and-ui.md
Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
deleted the
bb/8011-tocompose-opennewthread-support-split-true-thr_ugkg2rfyx8
branch
November 23, 2026 21:13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
Core opened the New thread screen in about a dozen places, each building
navigate("/", { state })by hand. None of them could place the screen in a split.SplitThreadAreathen reconciled the layout so the composer replaced whatever pane was focused. Plugins had the same limitation:toComposehad nosplit(#8011). The thread-list plugin's project, section and Threads+buttons go throughtoCompose, so they also replaced the pane the user was reading (#2795).What changed
One opener.
openNewThread(apps/app/src/lib/split-layout/openNewThread.ts, withuseOpenNewThreadfor components) is now the only way core opens the New thread screen, asopenThreadis for threads since #7954. It takes the compose options (projectId,initialPrompt/replaceInitialPrompt,focusPrompt,placement,environmentId,hostId), plussplitandreplace. It selects the project, builds the route state once, and withsplitplaces the pane by the same rules asopenPaneContentInSplit:The placement logic is extracted as
placePaneContentInSplit, so both callers share it.Callers moved onto it:
toComposeopenNewThread, which takes nosplitthread.newcommandRedirects after deletion, route repair and
LegacyProjectComposeRedirectstill only build the path. Every caller keeps its current behavior; the thread-list+buttons gain Cmd/Ctrl-click.SDK.
BbNavigate.toComposegainssplit?: boolean. It is stable and unprefixed, liketoThread'ssplit. Plugin SDK is bumped to 0.6.187, and thread-list now requires>=0.6.187.#2795. The thread-list plugin's
+buttons (project, section, machine, Pinned, Threads, and environment groups) now behave like the sidebar New thread button. A plain click still replaces the focused pane, and Cmd/Ctrl-click opens the New thread screen beside it. The issue left this choice open; the modifier keeps all the New thread buttons consistent. The click's modifier reachestoCompose'ssplitthrough each handler. The issue's second point, raisingMAX_PANES, is not part of this PR.Small cleanups:
createDraftKindstate from the skill entry points.openNewThread'ssectionIdstate key, whichplacement(always sent alongside it) already overrides.buildCreateThreadInEnvironmentStateand its test are replaced by theopenNewThreadstate test.Docs:
docs/api_to_audit.md: a new paragraph under Thread creation placement lists the core callers.frontend-navigation.mdgets a New thread screen section;frontend-hooks-and-ui.md,frontend-thread-list.mdand the SKILL.md routing line are updated.No host daemon wire change.
How you verified
openNewThread.test.ts: focuses and replaces history for an existing composer pane, replaces at the pane cap, does not touch panes on compact or without split, and hands RootComposeView the environment, placement and focus state.plugin-navigation-hooks.test.tsx:toCompose({ split: true, ... })from a plugin panel adds a new-thread pane to the right with the state and project selected; without split the layout is untouched. On main the split case fails becausesplitis ignored.plugin-sidebar-hooks.test.tsxnow runs against the real project selection.split: true.pnpm exec turbo run typecheck lint --filter=@bb/app --filter=bb-plugin-thread-list --filter=@get-bb/plugin-sdkturbo run testforbb-plugin-thread-list(458),bb-plugin-bb-guide,bb-plugin-plugin-api-docs.pnpm start:worktreein headless Chrome (1440×900), with a thread open in a single pane:+replaces the pane with the composer, as before.ProjectList.sectionCreate.test.tsxcovers a plain click, Cmd-click and Ctrl-click on a section+.Fixes #8011
Fixes #2795
🤖 Generated with Claude Code