auto-git:

[change] src/App.jsx
This commit is contained in:
2026-06-16 23:32:48 +02:00
parent d2323e4e88
commit 0492231194

View File

@@ -84,28 +84,17 @@ export default function App() {
const activeSidebarModeRef = useRef(activeSidebarMode) const activeSidebarModeRef = useRef(activeSidebarMode)
const [activeSettingsSubmenu, setActiveSettingsSubmenu] = useState('General'); const [activeSettingsSubmenu, setActiveSettingsSubmenu] = useState('General');
const [editingSessionId, setEditingSessionId] = useState(null); // ID of the session being edited const [editingSessionId, setEditingSessionId] = useState(null); // ID of the session being edited
const [editingLibrarySlug, setEditingLibrarySlug] = useState(null)
const [libraries, setLibraries] = useState([]) const [libraries, setLibraries] = useState([])
const [libraryJobs, setLibraryJobs] = useState([]) const [libraryJobs, setLibraryJobs] = useState([])
const [activeLibrarySlug, setActiveLibrarySlug] = useState(null)
const [isCreatingLibrary, setIsCreatingLibrary] = useState(false)
const [newLibraryName, setNewLibraryName] = useState('')
const [libraryCreateError, setLibraryCreateError] = useState('')
const [workflows, setWorkflows] = useState([]) const [workflows, setWorkflows] = useState([])
const [workflowTools, setWorkflowTools] = useState([]) const [workflowTools, setWorkflowTools] = useState([])
const [activeWorkflowId, setActiveWorkflowId] = useState(null) const [activeWorkflowId, setActiveWorkflowId] = useState(null)
const [activeWorkflow, setActiveWorkflow] = useState(null) const [activeWorkflow, setActiveWorkflow] = useState(null)
const [workflowError, setWorkflowError] = useState('') const [workflowError, setWorkflowError] = useState('')
const { function isLibrarySyncing(slug) {
chatLibrary, if (!slug) return false
chatLibrarySlug, return libraryJobs.some(job => job.slug === slug && (job.status === 'queued' || job.status === 'running'))
chatLibraryStatusSuffix, }
clearChatLibrarySelections,
getChatLibraryForSession,
isLibrarySyncing,
removeLibraryFromChatSelections,
setChatLibraryForSession,
} = useChatLibrarySelection({ activeSessionId, libraries, libraryJobs })
const { const {
getSelectionForSession: getChatWorkflowForSession, getSelectionForSession: getChatWorkflowForSession,
selectedWorkflow, selectedWorkflow,