From 36a348789fddfbfd30bdb46435c08ddbd87ac851 Mon Sep 17 00:00:00 2001 From: pallieter-verhoeven-glbnxt Date: Wed, 22 Jul 2026 11:02:24 +0200 Subject: [PATCH] Add toggle button for when there are 2 options --- packages/app/src/components/prompt-input.tsx | 47 +++++++++++++------ .../src/v2/components/prompt-input/index.tsx | 47 ++++++++++++++++++- .../v2/components/segmented-control-v2.css | 12 +++++ 3 files changed, 91 insertions(+), 15 deletions(-) diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsx index bcc5acc0bb72..3337c569cf18 100644 --- a/packages/app/src/components/prompt-input.tsx +++ b/packages/app/src/components/prompt-input.tsx @@ -42,6 +42,7 @@ import { MenuV2 } from "@opencode-ai/ui/v2/menu-v2" import { TooltipV2 } from "@opencode-ai/ui/v2/tooltip-v2" import { IconButton } from "@opencode-ai/ui/icon-button" import { Select } from "@opencode-ai/ui/select" +import { RadioGroup } from "@opencode-ai/ui/radio-group" import { useDialog } from "@opencode-ai/ui/context/dialog" import { ModelSelectorPopover, ModelSelectorPopoverV2 } from "@/components/dialog-select-model" import { DialogSelectModelUnpaid } from "@/components/dialog-select-model-unpaid" @@ -1656,20 +1657,38 @@ export const PromptInput: Component = (props) => { title={language.t("command.agent.cycle")} keybind={command.keybind("agent.cycle")} > -