Skip to main content

handle_submit

Function handle_submit 

Source
pub async fn handle_submit(
    server: &ProtocolServer,
    req: SubmitRequest,
) -> Result<Response<SubmitResponse>, Status>
Expand description

Handle a SUBMIT RPC.

  1. Validates the session.
  2. Resolves the repo to obtain the working directory path.
  3. Applies file-level writes through the session workspace overlay.
  4. Re-opens the repo and re-indexes changed files through the engine.
  5. Returns ACCEPTED with a new changeset ID, or REJECTED with errors.