In terminal-worker mode the main-process sessions map can be empty; avoid overwriting renderer-pushed __external_mcp__ metadata with an empty sync. Co-authored-by: Cursor <cursoragent@cursor.com>