     {terminalView} = pane.getOptions()
     terminalView.terminal?.scrollToBottom()
     terminalView.once 'WebTermConnected', (remote)=>
-
+      @emit "WebTermConnected"
       if query.command
         command = decodeURIComponent query.command
         @showApprovalModal remote, command

        { terminalView } = pane.getOptions()
        return unless terminalView
        sessionId = terminalView.sessionId ? terminalView.getOption 'session'
        vmName = terminalView.getOption 'vmName'
        sessions.push "#{ vmName }:#{ sessionId }"
      storage.setValue 'savedSessions', sessions
      storage.setValue 'activeIndex', activeIndex



    @appendTerminalTab terminalView
    terminalView.connectToTerminal()
    @forwardEvent terminalView, "WebTermConnected"

  addStartTab:->

