Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
feat(webv2): add the generation devices admin setting
joshistoaste202a1722798
diff --git a/invokeai/frontend/webv2/public/locales/en.json b/invokeai/frontend/webv2/public/locales/en.jsonindex 485103f428..821311a3f7 100644--- a/invokeai/frontend/webv2/public/locales/en.json+++ b/invokeai/frontend/webv2/public/locales/en.json@@ -1315,20 +1315,6 @@"label": "GPU","shortLabel": "GPU {{index}}","tooltip": "Ran on {{name}}"- },- "devices": {- "title": "Generation Devices",- "description": "GPUs used for generation. With more than one selected, InvokeAI runs a session on each at the same time.",- "restartRequired": "Restart InvokeAI for changes to take effect.",- "auto": "Use every available GPU",- "autoHint": "New GPUs are picked up automatically.",- "custom": "Choose specific GPUs",- "loadFailed": "Could not load generation devices.",- "saveFailed": "Could not save generation devices.",- "saved": "Generation devices updated",- "atLeastOne": "Select at least one GPU.",- "unavailable": "No CUDA GPUs were detected, so generation runs on a single device.",- "adminOnly": "Only an administrator can change which GPUs are used."}},"autosaveStatus": {diff --git a/invokeai/frontend/webv2/src/features/identity/capabilities.test.ts b/invokeai/frontend/webv2/src/features/identity/capabilities.test.tsindex 04c872ef28..f97363d1d4 100644--- a/invokeai/frontend/webv2/src/features/identity/capabilities.test.ts+++ b/invokeai/frontend/webv2/src/features/identity/capabilities.test.ts@@ -18,6 +18,7 @@ const session = (overrides: Partial<AuthSession>): AuthSession => ({describe('Identity route capabilities', () => {it.each(['unknown', 'unavailable'] as const)('grants nothing while auth mode is %s', (phase) => {expect(getCapabilities(session({ multiuserEnabled: false, phase }))).toEqual({+ canManageAppConfig: false,canManageModels: false,canManageNodes: false,canManagePromptTemplates: false,@@ -27,6 +28,7 @@ describe('Identity route capabilities', () => {it('allows all local management in single-user mode', () => {expect(getCapabilities(session({ multiuserEnabled: false }))).toEqual({+ canManageAppConfig: true,canManageModels: true,canManageNodes: true,canManagePromptTemplates: true,@@ -46,12 +48,14 @@ describe('Identity route capabilities', () => {};expect(getCapabilities(session({ user: { ...baseUser, is_admin: false } }))).toEqual({+ canManageAppConfig: false,canManageModels: false,canManageNodes: false,canManagePromptTemplates: false,canManageUsers: false,});expect(getCapabilities(session({ user: { ...baseUser, is_admin: true } }))).toEqual({+ canManageAppConfig: true,canManageModels: true,canManageNodes: true,canManagePromptTemplates: true,diff --git a/invokeai/frontend/webv2/src/features/identity/capabilities.ts b/invokeai/frontend/webv2/src/features/identity/capabilities.tsindex 7cb6c5c517..400da06856 100644--- a/invokeai/frontend/webv2/src/features/identity/capabilities.ts+++ b/invokeai/frontend/webv2/src/features/identity/capabilities.ts@@ -1,6 +1,8 @@import { useAuthSession, type AuthSession } from './session';export interface Capabilities {+ /** Server-wide runtime config (e.g. which GPUs generate); `PATCH /app/runtime_config` is admin-only. */+ canManageAppConfig: boolean;canManageModels: boolean;canManageNodes: boolean;/** Bulk import/export of prompt templates; the routes are admin-only. */@@ -11,6 +13,7 @@ export interface Capabilities {export const getCapabilities = (session: AuthSession): Capabilities => {if (session.phase !== 'ready') {return {+ canManageAppConfig: false,canManageModels: false,canManageNodes: false,canManagePromptTemplates: false,@@ -22,6 +25,7 @@ export const getCapabilities = (session: AuthSession): Capabilities => {const isAdmin = isSingleUser || session.user?.is_admin === true;return {+ canManageAppConfig: isAdmin,canManageModels: isAdmin,canManageNodes: isAdmin,// Matches the routers' `AdminUserOrDefault`: everyone qualifies indiff --git a/invokeai/frontend/webv2/src/features/queue/data/generationDevicesStore.test.ts b/invokeai/frontend/webv2/src/features/queue/data/generationDevicesStore.test.tsnew file mode 100644index 0000000000..c1dfa8ba53--- /dev/null+++ b/invokeai/frontend/webv2/src/features/queue/data/generationDevicesStore.test.ts@@ -0,0 +1,87 @@+import { beforeEach, describe, expect, it, vi } from 'vitest';++const mocks = vi.hoisted(() => ({+ apiFetchJson: vi.fn(),+}));++vi.mock('@platform/transport/http', () => ({+ apiFetchJson: (...args: unknown[]) => mocks.apiFetchJson(...args),+ getApiErrorMessage: (_error: unknown, fallback: string) => fallback,+}));++const { getGenerationDevicesSnapshot, refreshGenerationDevices, updateGenerationDevices } =+ await import('./generationDevicesStore');++const options = [+ { device: 'cuda:0', name: 'RTX 5090' },+ { device: 'cuda:1', name: 'RTX 4090' },+];++describe('generationDevicesStore', () => {+ beforeEach(() => {+ mocks.apiFetchJson.mockReset();+ });++ it('loads the device options together with the configured setting', async () => {+ mocks.apiFetchJson.mockImplementation((url: string) =>+ url.includes('generation_device_options')+ ? Promise.resolve(options)+ : Promise.resolve({ config: { generation_devices: ['cuda:0'] }, set_fields: ['generation_devices'] })+ );++ await refreshGenerationDevices();++ expect(getGenerationDevicesSnapshot()).toMatchObject({+ loadState: 'loaded',+ options,+ setting: ['cuda:0'],+ });+ });++ it('still reports the options when the admin-only runtime config is forbidden', async () => {+ // The options endpoint is open to any authenticated user; runtime_config is+ // admin-only. A non-admin must get a read-only view, not an error state.+ mocks.apiFetchJson.mockImplementation((url: string) =>+ url.includes('generation_device_options') ? Promise.resolve(options) : Promise.reject(new Error('403'))+ );++ await refreshGenerationDevices();++ expect(getGenerationDevicesSnapshot()).toMatchObject({ error: null, loadState: 'loaded', options, setting: null });+ });++ it('reports an error when the options themselves cannot be read', async () => {+ mocks.apiFetchJson.mockRejectedValue(new Error('boom'));++ await refreshGenerationDevices();++ expect(getGenerationDevicesSnapshot()).toMatchObject({+ error: 'Failed to load generation devices',+ loadState: 'error',+ });+ });++ it('PATCHes the runtime config and adopts the value the server echoes back', async () => {+ // Shape verified against a live server: the config is nested under `config`,+ // not returned at the top level.+ mocks.apiFetchJson.mockResolvedValue({+ config: { generation_devices: ['cuda:0', 'cuda:1'] },+ set_fields: ['generation_devices'],+ });++ await updateGenerationDevices(['cuda:0', 'cuda:1']);++ expect(mocks.apiFetchJson).toHaveBeenCalledWith('/api/v1/app/runtime_config', {+ body: JSON.stringify({ generation_devices: ['cuda:0', 'cuda:1'] }),+ method: 'PATCH',+ signal: expect.anything(),+ });+ expect(getGenerationDevicesSnapshot().setting).toEqual(['cuda:0', 'cuda:1']);+ });++ it('propagates a save failure instead of reporting success', async () => {+ mocks.apiFetchJson.mockRejectedValue(new Error('422 invalid device'));++ await expect(updateGenerationDevices(['cuda:9'])).rejects.toThrow('422 invalid device');+ });+});diff --git a/invokeai/frontend/webv2/src/features/queue/data/generationDevicesStore.ts b/invokeai/frontend/webv2/src/features/queue/data/generationDevicesStore.tsindex 28205d85dc..a36bdd5747 100644--- a/invokeai/frontend/webv2/src/features/queue/data/generationDevicesStore.ts+++ b/invokeai/frontend/webv2/src/features/queue/data/generationDevicesStore.ts@@ -49,10 +49,20 @@ registerAccountOwnedResource({name: 'generation-devices',});+/**+ * `GET/PATCH /api/v1/app/runtime_config` answer with the config nested under `config`+ * alongside the `set_fields` list — not with the settings at the top level.+ */interface RuntimeConfigResponse {- generation_devices?: GenerationDevicesSetting | null;+ config?: {+ generation_devices?: GenerationDevicesSetting | null;+ } | null;+ set_fields?: string[];}+const readGenerationDevices = (response: RuntimeConfigResponse | null): GenerationDevicesSetting | null =>+ response?.config?.generation_devices ?? null;+/*** Load the device options and the current setting together.*@@ -84,7 +94,7 @@ export const refreshGenerationDevices = (): Promise<void> => {error: null,loadState: 'loaded',options,- setting: runtimeConfig?.generation_devices ?? null,+ setting: readGenerationDevices(runtimeConfig),});}).catch((error: unknown) => {@@ -125,7 +135,7 @@ export const updateGenerationDevices = async (setting: GenerationDevicesSetting)assertAccountScopeCurrent(owner);- store.patchSnapshot({ error: null, setting: runtimeConfig?.generation_devices ?? setting });+ store.patchSnapshot({ error: null, setting: readGenerationDevices(runtimeConfig) ?? setting });};export const getGenerationDevicesSnapshot = (): GenerationDevicesSnapshot => store.getSnapshot();diff --git a/invokeai/frontend/webv2/src/features/queue/react.ts b/invokeai/frontend/webv2/src/features/queue/react.tsindex 8628c6c3b5..ad6e5049b8 100644--- a/invokeai/frontend/webv2/src/features/queue/react.ts+++ b/invokeai/frontend/webv2/src/features/queue/react.ts@@ -1,7 +1,7 @@/** React-facing Queue read models, kept separate from widget registration. */export type { QueueItemProgress } from './core/types';export { QueueUiProvider, type QueueUiAdapter } from './ui/QueueUiContext';-export { type DeviceLabel, type GenerationDeviceOption } from './core/deviceLabels';+export { getDeviceNameLabels, type DeviceLabel, type GenerationDeviceOption } from './core/deviceLabels';export { useActiveProgressTarget, useActiveProgressTargets } from './data/activeProgressTargetStore';export { type ItemProgress, useActiveProgressItemIds, useItemProgress } from './data/itemProgressStore';export {diff --git a/invokeai/frontend/webv2/src/workbench/settings/GenerationDevicesSettings.browser.test.tsx b/invokeai/frontend/webv2/src/workbench/settings/GenerationDevicesSettings.browser.test.tsxnew file mode 100644index 0000000000..6f85d921d5--- /dev/null+++ b/invokeai/frontend/webv2/src/workbench/settings/GenerationDevicesSettings.browser.test.tsx@@ -0,0 +1,157 @@+import type { GenerationDevicesSnapshot } from '@features/queue/react';++import { ChakraProvider } from '@chakra-ui/react';+import { system } from '@theme/system';+import { act } from 'react';+import { createRoot, type Root } from 'react-dom/client';+import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';+import { userEvent } from 'vitest/browser';++const mocks = vi.hoisted(() => ({+ canManageAppConfig: true,+ refreshGenerationDevices: vi.fn(() => Promise.resolve()),+ snapshot: null as GenerationDevicesSnapshot | null,+ updateGenerationDevices: vi.fn((_setting: unknown) => Promise.resolve()),+}));++vi.mock('@features/identity', () => ({+ useCapabilities: () => ({ canManageAppConfig: mocks.canManageAppConfig }),+}));++vi.mock('@features/queue/react', async () => {+ const { getDeviceNameLabels } = await import('@features/queue/core/deviceLabels');++ return {+ getDeviceNameLabels,+ refreshGenerationDevices: () => mocks.refreshGenerationDevices(),+ updateGenerationDevices: (setting: unknown) => mocks.updateGenerationDevices(setting),+ useGenerationDevices: () => mocks.snapshot,+ };+});++import { GenerationDevicesSettings } from './GenerationDevicesSettings';++/**+ * Chakra's `Switch.HiddenInput` sits outside the viewport, so a real click cannot+ * reach it — the visible control is the click target.+ */+const switchControls = (): HTMLElement[] =>+ Array.from(host!.querySelectorAll<HTMLElement>('[data-scope="switch"][data-part="control"]'));++const TWO_GPUS = [+ { device: 'cuda:0', name: 'RTX 5090' },+ { device: 'cuda:1', name: 'RTX 4090' },+];++let host: HTMLDivElement | null = null;+let root: Root | null = null;+(globalThis as typeof globalThis & { IS_REACT_ACT_ENVIRONMENT: boolean }).IS_REACT_ACT_ENVIRONMENT = true;++const render = async (snapshot: Partial<GenerationDevicesSnapshot>): Promise<void> => {+ mocks.snapshot = { error: null, loadState: 'loaded', options: [], setting: 'auto', ...snapshot };++ await act(() => {+ root?.render(+ <ChakraProvider value={system}>+ <GenerationDevicesSettings />+ </ChakraProvider>+ );+ });+};++beforeEach(() => {+ mocks.canManageAppConfig = true;+ mocks.refreshGenerationDevices.mockClear();+ mocks.updateGenerationDevices.mockClear();+ host = document.createElement('div');+ document.body.append(host);+ root = createRoot(host);+});++afterEach(async () => {+ await act(() => root?.unmount());+ host?.remove();+ host = null;+ root = null;+});++describe('GenerationDevicesSettings', () => {+ it('explains that parallel generation needs more than one GPU on a single-GPU box', async () => {+ await render({ options: [{ device: 'cuda:0', name: 'RTX 5090' }] });++ // This machine's real configuration: one GPU, `auto`. No switches should appear,+ // because there is nothing to choose between.+ expect(host?.textContent).toContain('RTX 5090');+ expect(host?.textContent).toContain('needs more than one GPU');+ expect(host?.querySelectorAll('input[type="checkbox"]')).toHaveLength(0);+ });++ it('says so when no CUDA GPU is present', async () => {+ await render({ options: [] });++ expect(host?.textContent).toContain('No CUDA GPUs were detected');+ });++ it('offers the auto switch with two GPUs and hides per-device switches while auto is on', async () => {+ await render({ options: TWO_GPUS, setting: 'auto' });++ expect(host?.textContent).toContain('Use every available GPU');+ // Auto only shows its own switch; the per-device list stays collapsed.+ expect(host?.querySelectorAll('input[type="checkbox"]')).toHaveLength(1);+ });++ it('lists a switch per device when a specific set is configured', async () => {+ await render({ options: TWO_GPUS, setting: ['cuda:0'] });++ expect(host?.textContent).toContain('RTX 5090');+ expect(host?.textContent).toContain('RTX 4090');+ // The auto switch plus one per device.+ expect(host?.querySelectorAll('input[type="checkbox"]')).toHaveLength(3);+ });++ it('saves the devices in effect when auto is turned off, changing nothing else', async () => {+ await render({ options: TWO_GPUS, setting: 'auto' });++ await userEvent.click(switchControls()[0]!);++ // Leaving auto must not silently narrow the device set.+ expect(mocks.updateGenerationDevices).toHaveBeenCalledWith(['cuda:0', 'cuda:1']);+ });++ it('shows the restart notice only after a change is saved', async () => {+ await render({ options: TWO_GPUS, setting: 'auto' });++ expect(host?.textContent).not.toContain('Restart InvokeAI');++ await userEvent.click(switchControls()[0]!);++ expect(host?.textContent).toContain('Restart InvokeAI for changes to take effect.');+ });++ it('refuses to deselect the last GPU rather than letting the server 422', async () => {+ await render({ options: TWO_GPUS, setting: ['cuda:1'] });++ // Index 0 is the auto switch; the per-device switches follow in device order, so+ // index 2 is cuda:1 — the only selected device. Turning it off would write an+ // empty list, which the backend rejects and which would fail the next startup.+ await userEvent.click(switchControls()[2]!);++ expect(mocks.updateGenerationDevices).not.toHaveBeenCalled();+ expect(host?.textContent).toContain('Select at least one GPU.');+ });++ it('shows a read-only summary to a non-admin', async () => {+ mocks.canManageAppConfig = false;+ await render({ options: TWO_GPUS, setting: ['cuda:1'] });++ expect(host?.textContent).toContain('RTX 4090');+ expect(host?.textContent).toContain('Only an administrator can change which GPUs are used.');+ expect(host?.querySelectorAll('input[type="checkbox"]')).toHaveLength(0);+ });++ it('surfaces a load failure instead of rendering empty controls', async () => {+ await render({ error: 'Failed to load generation devices', loadState: 'error' });++ expect(host?.textContent).toContain('Failed to load generation devices');+ });+});diff --git a/invokeai/frontend/webv2/src/workbench/settings/GenerationDevicesSettings.tsx b/invokeai/frontend/webv2/src/workbench/settings/GenerationDevicesSettings.tsxnew file mode 100644index 0000000000..5a5363e656--- /dev/null+++ b/invokeai/frontend/webv2/src/workbench/settings/GenerationDevicesSettings.tsx@@ -0,0 +1,216 @@+import type { GenerationDevicesSetting } from '@features/queue/react';++import { Spinner, Stack, Switch, Text } from '@chakra-ui/react';+import { useCapabilities } from '@features/identity';+import {+ getDeviceNameLabels,+ refreshGenerationDevices,+ updateGenerationDevices,+ useGenerationDevices,+} from '@features/queue/react';+import { useMountEffect } from '@platform/react/useMountEffect';+import { useCallback, useMemo, useState } from 'react';++/**+ * Which GPUs the server uses for generation (`generation_devices`).+ *+ * Server-wide app config rather than a user preference, so it is admin-only and only+ * takes effect after a restart — both of which the copy states plainly instead of+ * pretending the change is live.+ */+export const GenerationDevicesSettings = () => {+ const { canManageAppConfig } = useCapabilities();+ const { error, loadState, options, setting } = useGenerationDevices();+ const [saveError, setSaveError] = useState<string | null>(null);+ const [didChange, setDidChange] = useState(false);++ useMountEffect(() => {+ void refreshGenerationDevices();+ });++ const labels = useMemo(() => getDeviceNameLabels(options), [options]);+ const isAuto = setting === 'auto' || setting === null;+ const selectedDevices = useMemo(+ () => (Array.isArray(setting) ? setting : options.map((option) => option.device)),+ [options, setting]+ );++ const save = useCallback(async (next: GenerationDevicesSetting) => {+ setSaveError(null);+ try {+ await updateGenerationDevices(next);+ setDidChange(true);+ } catch (saveFailure) {+ setSaveError(saveFailure instanceof Error ? saveFailure.message : 'Could not save generation devices.');+ }+ }, []);++ const toggleAuto = useCallback(+ (checked: boolean) => {+ // Leaving auto starts from the devices in effect right now, so turning the+ // switch off is not itself a change in which GPUs are used.+ void save(checked ? 'auto' : selectedDevices);+ },+ [save, selectedDevices]+ );++ const toggleDevice = useCallback(+ (device: string, checked: boolean) => {+ const next = checked+ ? options+ .map((option) => option.device)+ .filter((candidate) => selectedDevices.includes(candidate) || candidate === device)+ : selectedDevices.filter((candidate) => candidate !== device);++ // The backend rejects an empty list, and a config with no devices would fail on+ // the next startup — so refuse locally rather than surfacing a 422.+ if (next.length === 0) {+ setSaveError('Select at least one GPU.');+ return;+ }++ void save(next);+ },+ [options, save, selectedDevices]+ );++ if (loadState === 'loading' || loadState === 'idle') {+ return <Spinner size="sm" />;+ }++ if (error) {+ return (+ <Text color="fg.error" fontSize="xs">+ {error}+ </Text>+ );+ }++ if (options.length <= 1) {+ return (+ <Text color="fg.subtle" fontSize="xs">+ {options.length === 1+ ? `Generation runs on ${labels[options[0].device] ?? options[0].device}. Parallel generation needs more than one GPU.`+ : 'No CUDA GPUs were detected, so generation runs on a single device.'}+ </Text>+ );+ }++ if (!canManageAppConfig) {+ return (+ <Stack gap="1">+ <Text color="fg" fontSize="xs">+ {isAuto+ ? 'Every available GPU is used for generation.'+ : selectedDevices.map((device) => labels[device] ?? device).join(', ')}+ </Text>+ <Text color="fg.subtle" fontSize="xs">+ Only an administrator can change which GPUs are used.+ </Text>+ </Stack>+ );+ }++ return (+ <Stack gap="3">+ <DeviceSwitch+ checked={isAuto}+ description="New GPUs are picked up automatically."+ label="Use every available GPU"+ onChange={toggleAuto}+ />+ {isAuto ? null : (+ <Stack gap="2" ps="4">+ {options.map((option) => (+ <DeviceToggle+ key={option.device}+ checked={selectedDevices.includes(option.device)}+ device={option.device}+ label={labels[option.device] ?? option.device}+ onToggle={toggleDevice}+ />+ ))}+ </Stack>+ )}+ {saveError ? (+ <Text color="fg.error" fontSize="xs">+ {saveError}+ </Text>+ ) : null}+ {didChange ? (+ <Text color="fg.subtle" fontSize="xs">+ Restart InvokeAI for changes to take effect.+ </Text>+ ) : null}+ </Stack>+ );+};++/**+ * One device's switch. Binds the device to the shared handler in its own scope so the+ * list does not create a fresh callback per row on every render.+ */+const DeviceToggle = ({+ checked,+ device,+ label,+ onToggle,+}: {+ checked: boolean;+ device: string;+ label: string;+ onToggle: (device: string, checked: boolean) => void;+}) => {+ const handleChange = useCallback((next: boolean) => onToggle(device, next), [device, onToggle]);++ return <DeviceSwitch checked={checked} label={label} onChange={handleChange} />;+};++/**+ * Each switch owns its own Switch.Root rather than sharing one Field.Root: sibling+ * switches under a single Field.Root share a generated id, and a label click then+ * toggles the wrong control.+ */+const DeviceSwitch = ({+ checked,+ description,+ label,+ onChange,+}: {+ checked: boolean;+ description?: string;+ label: string;+ onChange: (checked: boolean) => void;+}) => {+ const handleCheckedChange = useCallback(+ (event: { checked: boolean | 'indeterminate' }) => onChange(event.checked === true),+ [onChange]+ );++ return (+ <Switch.Root+ alignItems="center"+ checked={checked}+ display="flex"+ gap="4"+ justifyContent="space-between"+ w="full"+ onCheckedChange={handleCheckedChange}+ >+ <Stack gap="0.5">+ <Switch.Label color="fg" fontSize="sm" fontWeight="500">+ {label}+ </Switch.Label>+ {description ? (+ <Text color="fg.subtle" fontSize="xs">+ {description}+ </Text>+ ) : null}+ </Stack>+ <Switch.HiddenInput />+ <Switch.Control>+ <Switch.Thumb />+ </Switch.Control>+ </Switch.Root>+ );+};diff --git a/invokeai/frontend/webv2/src/workbench/settings/SettingsDialog.tsx b/invokeai/frontend/webv2/src/workbench/settings/SettingsDialog.tsxindex 6c843979d7..d9c0231cf3 100644--- a/invokeai/frontend/webv2/src/workbench/settings/SettingsDialog.tsx+++ b/invokeai/frontend/webv2/src/workbench/settings/SettingsDialog.tsx@@ -52,6 +52,7 @@ import {import { useCallback, useEffect, useId, useMemo, useState, type ReactNode } from 'react';import { useTranslation } from 'react-i18next';+import { GenerationDevicesSettings } from './GenerationDevicesSettings';import { HotkeysSettingsSection } from './HotkeysSettingsSection';import { setWorkbenchSettingsSection, settingsDialogStore } from './settingsDialogStore';import {@@ -578,15 +579,23 @@ const QueueSection = () => {}, []);return (- <SettingsSection description="Choose which jobs the Queue widget includes in its counts and lists." title="Queue">- <SettingSelect- description="Show jobs from only the active project, or all queue jobs visible to you."- label="Show jobs from"- options={QUEUE_JOBS_SCOPE_OPTIONS}- value={queueJobsScope}- onChange={updateQueueJobsScope}- />- </SettingsSection>+ <Stack gap="6">+ <SettingsSection description="Choose which jobs the Queue widget includes in its counts and lists." title="Queue">+ <SettingSelect+ description="Show jobs from only the active project, or all queue jobs visible to you."+ label="Show jobs from"+ options={QUEUE_JOBS_SCOPE_OPTIONS}+ value={queueJobsScope}+ onChange={updateQueueJobsScope}+ />+ </SettingsSection>+ <SettingsSection+ description="GPUs used for generation. With more than one selected, InvokeAI runs a session on each at the same time. This is a server-wide setting."+ title="Generation Devices"+ >+ <GenerationDevicesSettings />+ </SettingsSection>+ </Stack>);};