The problem was caused by zsh being out of date causing the shell
initialized check to not work properly as the prompt was delayed after
that.
Fixes#242739
This is some basic work to get MCP hooked up. It's enough to discover
and establish connections to MCP servers on the machine with very very
basic commands to manage them:

Refs #242864
The McpRegistry registers both collections of servers (from various
config files) and 'delegates', which is currently _only_ the node
extension host but is pretty generic and so could point at other
processes in the future. SSE could even be served from the renderer when
we aren't on a remote.
It wraps into IMcpServerConnection's, which do some basic connection
management and expose the McpServerRequestHandler which speaks JSON-RPC
to the MCP server. This is wrapped into the IMcpServer which is the
complete, stateful representation of the server. It does stuff like
caching discovered tools such that they can be viewed and controlled
even when the MCP server isn't running.
The IMcpService is the 'public' entry for other VS Code features. Its
API is very simple right now, exposing an observable of the available
servers, which should be easy for chat to consume.
Still need to get some good tests going, add proper and more discovery,
and excercise currently-untested API. SSE is also a stub right now.
The intent here was to persist live edit sessions, but not old ones, since there is no history for edit sessions. But there were some changes and we ended up persisting all edit sessions, just never exposing them in history.
The 25 session limit still applies, so they would rotate through like other chat sessions, but now edit sessions take up a slot that was supposed to go to chat sessions.
Fixing this will make the persisted data much smaller for people who have used agent mode and don't have a large edit session open at the moment.
But I'm going to switch to writing these to disk anyway so it's all about to change again.
* Chat-related commands should not be available on web (without backend) (fix#241873)
* Remove notebook.cellOutput.addToChat from command palette
* Only show "Toggle agent mode" when chat enabled
* Show notebook.cellOutput.addToChat only when chat enabled
---------
Co-authored-by: Rob Lourens <roblourens@gmail.com>