From d4a2652eda926dbfa03878ef3e46e55ef53517ca Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Wed, 31 Dec 2025 14:04:44 -0600 Subject: feat(desktop): better affordance for auto-accept --- packages/app/src/components/prompt-input.tsx | 35 +++++++++++++++++++++++++--- 1 file changed, 32 insertions(+), 3 deletions(-) (limited to 'packages/app/src/components') diff --git a/packages/app/src/components/prompt-input.tsx b/packages/app/src/components/prompt-input.tsx index 44d3fbef8..afa6538a2 100644 --- a/packages/app/src/components/prompt-input.tsx +++ b/packages/app/src/components/prompt-input.tsx @@ -23,6 +23,7 @@ import { useCommand } from "@/context/command" import { persisted } from "@/utils/persist" import { Identifier } from "@/utils/id" import { SessionContextUsage } from "@/components/session-context-usage" +import { usePermission } from "@/context/permission" const ACCEPTED_IMAGE_TYPES = ["image/png", "image/jpeg", "image/gif", "image/webp"] const ACCEPTED_FILE_TYPES = [...ACCEPTED_IMAGE_TYPES, "application/pdf"] @@ -80,6 +81,7 @@ export const PromptInput: Component = (props) => { const dialog = useDialog() const providers = useProviders() const command = useCommand() + const permission = usePermission() let editorRef!: HTMLDivElement let fileInputRef!: HTMLInputElement let scrollRef!: HTMLDivElement @@ -1346,7 +1348,7 @@ export const PromptInput: Component = (props) => {
-
+
@@ -1393,16 +1395,43 @@ export const PromptInput: Component = (props) => { 0}> - + + + + + +
-- cgit v1.2.3