Skip to main content

handle_connect

Function handle_connect 

Source
pub async fn handle_connect(
    server: &ProtocolServer,
    req: ConnectRequest,
) -> Result<Response<ConnectResponse>, Status>
Expand description

Handle a CONNECT RPC.

  1. Validates the bearer token.
  2. Looks up the repository by name.
  3. Retrieves a high-level codebase summary (languages, symbol count, file count).
  4. Reads the HEAD commit hash as the current codebase version.
  5. Creates a stateful session and returns the session ID.
  6. Creates a session workspace (isolated overlay for file changes).
  7. Returns workspace ID and concurrency info.