char-fork/llama.cpp

git clone https://git.t4t.associates/char-fork/llama.cpp

Aleksander Grygierui: Constants refactor (#26908)e21152dc9

char/aliceai-t5-moe
806 B19 linesraw
1import { SETTINGS_KEYS } from '$lib/constants';
2import { describe, expect, it } from 'vitest';
3
4/**
5 * Default-value policy for the `MCP_SERVERS` setting.
6 *
7 * Earlier versions of the UI preloaded a hard-coded list of suggested
8 * MCP servers into this setting on first install. That caused silent
9 * third-party HTTP requests at app load (see issue #25509) and a popup
10 * "recommendation" dialog (see issue #25274). New users must now opt
11 * in explicitly when adding a server, so the default is an empty list.
12 */
13describe('MCP_SERVERS default value', () => {
14	it('does not preload any servers in the MCP_SERVERS setting default', async () => {
15		const { SETTING_CONFIG_DEFAULT } = await import('$lib/constants');
16
17		expect(SETTING_CONFIG_DEFAULT[SETTINGS_KEYS.MCP_SERVERS]).toBe('[]');
18	}, 15000);
19});