MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / handle_undo_draft_chunk

Function handle_undo_draft_chunk

crates/openshell-server/src/grpc/policy.rs:2902–2911  ·  view source on GitHub ↗
(
    state: &Arc<ServerState>,
    request: Request<UndoDraftChunkRequest>,
)

Source from the content-addressed store, hash-verified

2900}
2901
2902pub(super) async fn handle_undo_draft_chunk(
2903 state: &Arc<ServerState>,
2904 request: Request<UndoDraftChunkRequest>,
2905) -> Result<Response<UndoDraftChunkResponse>, Status> {
2906 let result = handle_undo_draft_chunk_inner(state, request).await;
2907 if result.is_err() {
2908 emit_policy_decision_failure(PolicyDecisionOperation::Undo, 1);
2909 }
2910 result
2911}
2912
2913async fn handle_undo_draft_chunk_inner(
2914 state: &Arc<ServerState>,

Calls 2

Tested by

no test coverage detected