Conditionally render WorkflowSelector when in manual mode

This commit is contained in:
2026-06-15 20:27:02 +02:00
parent c3b572be0d
commit 8519b2feca

View File

@@ -1965,12 +1965,14 @@ async function createNewChat() {
libraries={libraries}
setChatLibraryForSession={setChatLibraryForSession}
/>
<WorkflowSelector
disabled={isSending}
selection={chatWorkflowSelection}
workflows={workflows}
onChange={(nextSelection) => setChatWorkflowForSession(activeSessionId, nextSelection)}
/>
{workflowSelectionMode === 'manual' && (
<WorkflowSelector
disabled={isSending}
selection={chatWorkflowSelection}
workflows={workflows}
onChange={(nextSelection) => setChatWorkflowForSession(activeSessionId, nextSelection)}
/>
)}
<div className="footer-tool-group" ref={attachmentMenuRef}>
<button
type="button"