diff --git a/src/client/app/settings/GeneralSection.tsx b/src/client/app/settings/GeneralSection.tsx index 3ed9e8bb3..a226e048d 100644 --- a/src/client/app/settings/GeneralSection.tsx +++ b/src/client/app/settings/GeneralSection.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from "react" import { Monitor, Moon, Sun } from "lucide-react" import { ANALYTICS_STATIC_EVENT_NAMES, ANALYTICS_STATIC_PROPERTY_NAMES } from "../../../shared/analytics" import type { EditorPreset } from "../../../shared/protocol" -import { DEFAULT_NEW_PROJECTS_DIRECTORY } from "../../../shared/types" +import { DEFAULT_NEW_PROJECTS_DIRECTORY, type SubmitWhileRunning } from "../../../shared/types" import { EDITOR_OPTIONS, EditorIcon } from "../../components/editor-icons" import { Button } from "../../components/ui/button" import { Dialog, DialogBody, DialogContent, DialogFooter, DialogTitle } from "../../components/ui/dialog" @@ -86,6 +86,7 @@ export function GeneralSection({ const [editorCommandDraft, setEditorCommandDraft] = useState(editorCommandTemplate) const newProjectsDirectory = appSettings?.newProjectsDirectory ?? DEFAULT_NEW_PROJECTS_DIRECTORY const [newProjectsDirectoryDraft, setNewProjectsDirectoryDraft] = useState(newProjectsDirectory) + const submitWhileRunning = appSettings?.submitWhileRunning ?? "queue" const transcriptWindow = appSettings?.transcript?.windowAssistantMessages ?? DEFAULT_TRANSCRIPT_WINDOW_ASSISTANT_MESSAGES const [transcriptWindowDraft, setTranscriptWindowDraft] = useState(String(transcriptWindow)) const [appSettingsError, setAppSettingsError] = useState(null) @@ -320,6 +321,27 @@ export function GeneralSection({ + + + +