Console window flashes on every SFTP upload/save on Windows

OS info

  • Operating System : Windows 10.0.26200
  • Wappler Version : 7.9.7

Console window flashes on every SFTP upload/save on Windows

I'm seeing a brief console window flash whenever Wappler automatically uploads a saved file to an SFTP target on Windows.

The upload itself works correctly. The issue is only the visible console window that appears briefly on every save, which becomes distracting during normal development.

Environment

  • Windows

  • Current Wappler 7.x

  • Remote target using SFTP

  • Automatic upload on save enabled

Behavior

Whenever a file is saved and Wappler uploads it to the SFTP target, a black console/terminal window briefly appears and disappears.

Initially Windows Terminal was configured as the default terminal application, and WindowsTerminal.exe briefly appeared in Task Manager.

Changing the Windows default terminal application to Windows Console Host stops WindowsTerminal.exe from launching, but a classic console window still briefly flashes on every upload.

Process Monitor findings

I captured the upload with Microsoft Process Monitor.

The relevant process sequence is:

Wappler
  → lftp.exe
      → conhost.exe
      → lftp.exe
          → conhost.exe
          → sh.exe
              → ssh.exe

Wappler launches its bundled lftp.exe with the SFTP transfer commands. Immediately afterward Windows creates:

conhost.exe 0xffffffff -ForceV1

Later in the transfer, Wappler's bundled shell launches its bundled SSH client:

sh.exe -c ".../ssh.exe -T -a -x -s -l [user] -p 22 [host] sftp"

followed by:

ssh.exe -T -a -x -s -l [user] -p 22 [host] sftp

This appears to indicate that the SFTP/LFTP process is being launched in a way that causes Windows to allocate a visible console.

Expected behavior

SFTP uploads initiated automatically by Wappler should run without opening a visible console window.

Could the Windows LFTP/SFTP process be launched hidden or using the appropriate no-console-window process creation option?

I couldn't find a Wappler preference for suppressing this window.

The SFTP transfers themselves are working correctly; this report is specifically about the console window flashing during each automatic upload.

Hi Bill, welcome to Wappler. Sounds like you are working directly on the remote files? If so this is the way it works. Working on the remote files directly is not recommended. You should always work on a local target and then publish to remote when ready. If I understand you correctly.

Ah, yes, I am. My remote target is right next to me so I figured direct was safe. Thanks for the response, Brad!

1 Like