pub async fn handle_connect(
server: &ProtocolServer,
req: ConnectRequest,
) -> Result<Response<ConnectResponse>, Status>Expand description
Handle a CONNECT RPC.
- Validates the bearer token.
- Looks up the repository by name.
- Retrieves a high-level codebase summary (languages, symbol count, file count).
- Reads the HEAD commit hash as the current codebase version.
- Creates a stateful session and returns the session ID.
- Creates a session workspace (isolated overlay for file changes).
- Returns workspace ID and concurrency info.