fix: Add command to reconnecting PTY (#1860)

This fixes #1708 and opens the door for PTYs to execute
non-shell commands!
This commit is contained in:
Kyle Carberry
2022-05-27 14:51:20 -05:00
committed by GitHub
parent 6052607936
commit d0ed107b08
4 changed files with 10 additions and 8 deletions
+1 -1
View File
@@ -381,7 +381,7 @@ func (api *API) workspaceAgentPTY(rw http.ResponseWriter, r *http.Request) {
return
}
defer agentConn.Close()
ptNetConn, err := agentConn.ReconnectingPTY(reconnect.String(), uint16(height), uint16(width))
ptNetConn, err := agentConn.ReconnectingPTY(reconnect.String(), uint16(height), uint16(width), "")
if err != nil {
_ = conn.Close(websocket.StatusInternalError, httpapi.WebsocketCloseSprintf("dial: %s", err))
return