The open source coding agent.
TypeScript
fix(desktop): don't show image button in shell mode
Adam228b6444f884
diff --git a/packages/desktop/src/components/prompt-input.tsx b/packages/desktop/src/components/prompt-input.tsxindex 98092f5d581..7f6c0ee4f17 100644--- a/packages/desktop/src/components/prompt-input.tsx+++ b/packages/desktop/src/components/prompt-input.tsx@@ -1004,15 +1004,17 @@ export const PromptInput: Component<PromptInputProps> = (props) => {e.currentTarget.value = ""}}/>- <Tooltip placement="top" value="Attach image">- <IconButton- type="button"- icon="photo"- variant="ghost"- class="h-10 w-8"- onClick={() => fileInputRef.click()}- />- </Tooltip>+ <Show when={store.mode === "normal"}>+ <Tooltip placement="top" value="Attach image">+ <IconButton+ type="button"+ icon="photo"+ variant="ghost"+ class="h-10 w-8"+ onClick={() => fileInputRef.click()}+ />+ </Tooltip>+ </Show><Tooltipplacement="top"inactive={!prompt.dirty() && !working()}