Skip to content

Keep environment picker open during composer updates - #3421

Merged
ymichael merged 2 commits into
mainfrom
bb/environment-picker-opens-and-closes-immediately-thr_ny7sdihgp8
Sep 10, 2026
Merged

ymichael merged 2 commits into
mainfrom
bb/environment-picker-opens-and-closes-immediately-thr_ny7sdihgp8

Conversation

@ymichael

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The new-thread composer rendered different environment-slot component types for project and projectless scope, and the dropdown owned its open state internally. Transient scope replay, provider loading, or provider-count changes could therefore unmount the open picker and recreate it closed. Loading reusable environments also temporarily collapsed a specific reuse selection to the generic reuse value.

What changed

Project and projectless composers now share one stable EnvironmentSlot. It controls the dropdown open state and keeps the picker mounted while open even if projectless options settle to the machine-only layout; the compact machine control returns after normal dismissal. Specific reuse selections are retained while their options load.

How you verified

  • Focused Turbo app tests: 95/95 passed across NewThreadPromptBox, RootComposeView, and EnvironmentPicker.
  • Regression tests assert the same trigger DOM node and open menu survive scope replay and projectless option settling.
  • Turbo app typecheck passed.
  • Formatting and git diff checks passed.

AGENT GENERATED

@ymichael
ymichael force-pushed the bb/environment-picker-opens-and-closes-immediately-thr_ny7sdihgp8 branch from f003039 to e244de8 Compare September 10, 2026 17:16
@ymichael
ymichael merged commit a8a084a into main Sep 10, 2026
16 checks passed
@ymichael
ymichael deleted the bb/environment-picker-opens-and-closes-immediately-thr_ny7sdihgp8 branch September 10, 2026 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant