Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix: read embedding models from public status (#6703)

[._.]/ Adam Eivy911db3e8c5b9
diff --git a/client/src/components/settings/EmbeddingsTab.jsx b/client/src/components/settings/EmbeddingsTab.jsx
index 9cb37d5b78..f03d5d9bcd 100644
--- a/client/src/components/settings/EmbeddingsTab.jsx
+++ b/client/src/components/settings/EmbeddingsTab.jsx
@@ -39,8 +39,8 @@ export default function EmbeddingsTab() {
setModelsLoading(true);
const status = await getLocalLlmStatus({ silent: true }).catch(() => null);
setModels({
- ollama: (status?.ollama?.installedModels || []).map((m) => m.id || m.name),
- lmstudio: (status?.lmstudio?.installedModels || []).map((m) => m.id || m.name),
+ ollama: (status?.ollama?.models || []).map((m) => m.id || m.name),
+ lmstudio: (status?.lmstudio?.models || []).map((m) => m.id || m.name),
});
setModelsLoading(false);
};
diff --git a/client/src/components/settings/EmbeddingsTab.test.jsx b/client/src/components/settings/EmbeddingsTab.test.jsx
new file mode 100644
index 0000000000..8acc7d1bdc
--- /dev/null
+++ b/client/src/components/settings/EmbeddingsTab.test.jsx
@@ -0,0 +1,27 @@
+import { describe, expect, it, vi } from 'vitest';
+import { render, screen, waitFor } from '@testing-library/react';
+import { MemoryRouter } from 'react-router';
+
+vi.mock('../../services/apiSystem', () => ({
+ getSettings: vi.fn().mockResolvedValue({ embeddings: { provider: 'ollama', model: '' } }),
+ updateSettings: vi.fn(),
+}));
+vi.mock('../../services/apiLocalLlm', () => ({
+ getLocalLlmStatus: vi.fn().mockResolvedValue({
+ ollama: { models: [{ id: 'nomic-embed-text' }] },
+ lmstudio: { models: [] },
+ }),
+}));
+vi.mock('../ui/Toast', () => ({
+ default: Object.assign(vi.fn(), { success: vi.fn(), error: vi.fn() }),
+}));
+
+import EmbeddingsTab from './EmbeddingsTab.jsx';
+
+describe('EmbeddingsTab', () => {
+ it('reads installed embedding choices from the public models field', async () => {
+ render(<MemoryRouter><EmbeddingsTab /></MemoryRouter>);
+
+ await waitFor(() => expect(screen.getByRole('option', { name: 'nomic-embed-text' })).toBeInTheDocument());
+ });
+});