Compare commits

...

2 Commits

Author SHA1 Message Date
David Hill
ebdfe47ff6 tui: remove shell/normal mode toggle from prompt input
Users no longer need to manually switch between shell and normal modes as the agent now automatically determines the appropriate mode based on context.
2026-03-12 17:22:36 +00:00
David Hill
e06da2189a tui: make context group header non-clickable except for arrow icon
Users now see that only the arrow icon expands/collapses context groups,
not the entire row, making the UI behavior more predictable.
2026-03-12 17:14:46 +00:00
2 changed files with 2 additions and 32 deletions

View File

@@ -26,7 +26,6 @@ import { ProviderIcon } from "@opencode-ai/ui/provider-icon"
import { Tooltip, TooltipKeybind } from "@opencode-ai/ui/tooltip"
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 } from "@/components/dialog-select-model"
import { DialogSelectModelUnpaid } from "@/components/dialog-select-model-unpaid"
@@ -1488,36 +1487,6 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
</TooltipKeybind>
</div>
</div>
<div class="shrink-0">
<RadioGroup
options={["shell", "normal"] as const}
current={store.mode}
value={(mode) => mode}
label={(mode) => (
<TooltipKeybind
placement="top"
gutter={4}
openDelay={2000}
title={language.t(mode === "shell" ? "prompt.mode.shell" : "prompt.mode.normal")}
keybind={command.keybind(mode === "shell" ? "prompt.mode.shell" : "prompt.mode.normal")}
class="size-full flex items-center justify-center"
>
<Icon
name={mode === "shell" ? "console" : "prompt"}
class="size-[18px]"
classList={{
"text-icon-strong-base": store.mode === mode,
"text-icon-weak": store.mode !== mode,
}}
/>
</TooltipKeybind>
)}
onSelect={(mode) => mode && setMode(mode)}
fill
pad="none"
class="w-[68px]"
/>
</div>
</div>
</DockTray>
</Show>

View File

@@ -614,7 +614,7 @@
align-items: center;
justify-content: flex-start;
gap: 0px;
cursor: pointer;
cursor: default;
[data-slot="context-tool-group-title"] {
flex-shrink: 1;
@@ -623,6 +623,7 @@
[data-slot="collapsible-arrow"] {
color: var(--icon-weaker);
cursor: pointer;
}
}