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

Method env_request

crates/openshell-supervisor-process/src/ssh.rs:491–504  ·  view source on GitHub ↗
(
        &mut self,
        channel: ChannelId,
        variable_name: &str,
        variable_value: &str,
        session: &mut Session,
    )

Source from the content-addressed store, hash-verified

489 }
490
491 async fn env_request(
492 &mut self,
493 channel: ChannelId,
494 variable_name: &str,
495 variable_value: &str,
496 session: &mut Session,
497 ) -> Result<(), Self::Error> {
498 // Accept the env request so the client knows we handled it, but we
499 // don't actually propagate the variables — the sandbox environment is
500 // controlled via policy. We must reply so VSCode doesn't stall.
501 let _ = (variable_name, variable_value);
502 session.channel_success(channel)?;
503 Ok(())
504 }
505
506 async fn data(
507 &mut self,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected