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

Method shell_request

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

Source from the content-addressed store, hash-verified

415 }
416
417 async fn shell_request(
418 &mut self,
419 channel: ChannelId,
420 session: &mut Session,
421 ) -> Result<(), Self::Error> {
422 session.channel_success(channel)?;
423 // Only allocate a PTY when the client explicitly requested one via
424 // pty_request. VS Code Remote-SSH sends shell_request *without* a
425 // preceding pty_request and expects pipe-based I/O with clean LF line
426 // endings. Forcing a PTY here caused CRLF translation which made
427 // VS Code misdetect the platform as Windows (and then try to run
428 // `powershell`).
429 self.start_shell(channel, session.handle(), None)?;
430 Ok(())
431 }
432
433 async fn exec_request(
434 &mut self,

Callers

nothing calls this directly

Calls 2

start_shellMethod · 0.80
handleMethod · 0.80

Tested by

no test coverage detected