summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-12-31 13:31:46 -0600
committerAdam <[email protected]>2025-12-31 13:31:46 -0600
commit31e2c8b5e9fe63f1427c6ddf2dc83a794c011945 (patch)
tree7b3559cccdc30580c4b5c3f063c5d53bb57a6cb9
parenteab23738a88f8804309a09e2376c169c71350ce3 (diff)
downloadopencode-31e2c8b5e9fe63f1427c6ddf2dc83a794c011945.tar.gz
opencode-31e2c8b5e9fe63f1427c6ddf2dc83a794c011945.zip
wip: input changes
-rw-r--r--packages/app/src/components/prompt-input.tsx11
1 files changed, 5 insertions, 6 deletions
diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsx
index 1a1f53e34..44d3fbef8 100644
--- a/packages/app/src/components/prompt-input.tsx
+++ b/packages/app/src/components/prompt-input.tsx
@@ -1271,6 +1271,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
<form
onSubmit={handleSubmit}
classList={{
+ "group/prompt-input": true,
"bg-surface-raised-stronger-non-alpha shadow-xs-border relative": true,
"rounded-md overflow-clip focus-within:shadow-xs-border": true,
"border-icon-info-active border-dashed": store.dragging,
@@ -1392,17 +1393,15 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
</Button>
</Tooltip>
<Show when={local.model.variant.list().length > 0}>
- <Tooltip placement="top" value="Cycle effort level">
+ <TooltipKeybind placement="top" title="Thinking effort" keybind={command.keybind("model.variant")}>
<Button
variant="ghost"
onClick={() => local.model.variant.cycle()}
- classList={{
- "text-icon-warning": !!local.model.variant.current(),
- }}
+ class="text-text-base hidden group-hover/prompt-input:inline-block"
>
- <span class="text-12-regular">{local.model.variant.current() ?? "Default"}</span>
+ <span class="capitalize text-12-regular">{local.model.variant.current() ?? "Default"}</span>
</Button>
- </Tooltip>
+ </TooltipKeybind>
</Show>
</Match>
</Switch>