pub async fn handle_submit(
server: &ProtocolServer,
req: SubmitRequest,
) -> Result<Response<SubmitResponse>, Status>Expand description
Handle a SUBMIT RPC.
- Validates the session.
- Resolves the repo to obtain the working directory path.
- Applies file-level writes through the session workspace overlay.
- Re-opens the repo and re-indexes changed files through the engine.
- Returns ACCEPTED with a new changeset ID, or REJECTED with errors.