Skip to content

fix(app): show agent picker by default in new layout#32277

Closed
devinoldenburg wants to merge 1 commit into
anomalyco:devfrom
devinoldenburg:show-agent-picker
Closed

fix(app): show agent picker by default in new layout#32277
devinoldenburg wants to merge 1 commit into
anomalyco:devfrom
devinoldenburg:show-agent-picker

Conversation

@devinoldenburg

@devinoldenburg devinoldenburg commented Jun 14, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #31972

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

With "New Layout and Designs" on you can't switch between Plan and Build anymore: the agent picker is gone from the composer and mod+. does nothing.

Both are gated by settings.visibility.customAgents(), which in the new layout reduces to the showCustomAgents preference (!newLayoutDesigns() || showCustomAgents()). It defaults to false, so showAgentControl in prompt-input.tsx is false (picker hidden) and the agent.cycle commands in use-session-commands.tsx are disabled (shortcut dead). The old layout always renders the picker, so this only regresses under the new layout.

The picker lists local.agent.list() — primary agents (mode !== "subagent"), i.e. the Build/Plan switcher. That's a core control, so it shouldn't be hidden by default.

The fix flips the showCustomAgents default to true. Picker and mod+. work again, the setting is still toggleable, and anyone who explicitly turned it off keeps that choice (withFallback only uses the default when the key is absent).

#30352 fixes the picker at the component level but leaves the keyboard shortcut broken; this restores both.

How did you verify your code works?

bun typecheck passes for packages/app and the full workspace (the pre-push hook runs turbo typecheck across all 23 packages). I ran the app locally with the new layout enabled to check the composer (screenshot below). Reasoning: with the new default visibility.customAgents() is true, so showAgentControl renders the picker and the agent.cycle commands are no longer disabled.

Screenshots / recordings

Build/Plan picker restored in the composer (new layout):

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Copilot AI review requested due to automatic review settings June 14, 2026 06:52
@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Jun 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Enables the “custom agents” feature by default in app settings, changing the initial UX for users who don’t already have an explicit preference stored.

Changes:

  • Flip showCustomAgents default from false to true.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/app/src/context/settings.tsx
@github-actions

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found:

Enabling "New Layout and Designs" hid the composer's agent picker and
disabled the agent-cycle shortcut, so Plan/Build could no longer be
switched (issue anomalyco#31972).

In the new layout, `visibility.customAgents()` collapses to the
`showCustomAgents` preference, which defaulted to `false`. That gated
both `showAgentControl` (the composer picker) and the `agent.cycle`
commands (mod+.), unlike the old layout which always showed the picker.

Default `showCustomAgents` to `true` so the agent picker and agent
cycling work out of the box, restoring parity with the old layout. The
setting remains toggleable and explicit user overrides are respected.
@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jun 14, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@devinoldenburg

devinoldenburg commented Jun 14, 2026

Copy link
Copy Markdown
Author

The following comment was made by an LLM, it may be inaccurate:

Potential Duplicate Found:

actually, I checked and did not find those.
yea well

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.

New Layout and Designs开启无法切换Plan/Build

2 participants