From ae15fbdf91b1692b016634ad6bf818a95793116a Mon Sep 17 00:00:00 2001 From: sawka Date: Mon, 23 Jan 2023 13:47:36 -0800 Subject: [PATCH] create remote should show remote page, and force an interactive connect --- pkg/cmdrunner/cmdrunner.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkg/cmdrunner/cmdrunner.go b/pkg/cmdrunner/cmdrunner.go index 39d7f1627..4890e9aae 100644 --- a/pkg/cmdrunner/cmdrunner.go +++ b/pkg/cmdrunner/cmdrunner.go @@ -656,7 +656,7 @@ func RemoteConnectCommand(ctx context.Context, pk *scpacket.FeCommandPacketType) if err != nil { return nil, err } - go ids.Remote.MShell.Launch() + go ids.Remote.MShell.Launch(true) return sstore.ModelUpdate{ Info: &sstore.InfoMsgType{ PtyRemoteId: ids.Remote.RemotePtr.RemoteId, @@ -907,13 +907,11 @@ func RemoteNewCommand(ctx context.Context, pk *scpacket.FeCommandPacketType) (ss return makeRemoteEditErrorReturn_new(visualEdit, fmt.Errorf("cannot create remote %q: %v", r.RemoteCanonicalName, err)) } // SUCCESS - update := sstore.ModelUpdate{ + return sstore.ModelUpdate{ Info: &sstore.InfoMsgType{ - InfoMsg: fmt.Sprintf("remote %q created", r.RemoteCanonicalName), - TimeoutMs: 2000, + PtyRemoteId: r.RemoteId, }, - } - return update, nil + }, nil } func RemoteSetCommand(ctx context.Context, pk *scpacket.FeCommandPacketType) (sstore.UpdatePacket, error) {