feat: stream MCP probe progress

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
David Kaya
2026-03-28 21:58:07 +01:00
co-authored by Copilot
parent 9ddd831b34
commit cc13ed29f5
8 changed files with 589 additions and 103 deletions
@@ -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);
});
});