mirror of
https://github.com/davidkaya/aryx.git
synced 2026-08-03 18:38:35 +02:00
feat: stream MCP probe progress
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -87,4 +87,18 @@ describe('WorkspaceRepository scratchpad migration', () => {
|
||||
const persisted = JSON.parse(await readFile(workspaceFilePath, 'utf8')) as WorkspaceState;
|
||||
expect(persisted.sessions[0]?.cwd).toBe(expectedSessionPath);
|
||||
});
|
||||
|
||||
test('strips runtime MCP probing state before persisting workspace data', async () => {
|
||||
const workspaceFilePath = join(USER_DATA_PATH, 'workspace.json');
|
||||
await mkdir(USER_DATA_PATH, { recursive: true });
|
||||
|
||||
const repository = new WorkspaceRepository();
|
||||
const workspace = createStoredWorkspace();
|
||||
workspace.mcpProbingServerIds = ['server-a', 'server-b'];
|
||||
|
||||
await repository.save(workspace);
|
||||
|
||||
const persisted = JSON.parse(await readFile(workspaceFilePath, 'utf8')) as WorkspaceState;
|
||||
expect('mcpProbingServerIds' in persisted).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user