workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

๐Ÿ› BUG: wrangler dev --remote using interactive dev session in non-interactive terminal and ignores --show-interactive-dev-session=false

Open jdanyow opened this issue 1 year ago โ€ข 1 comments

Which Cloudflare product(s) does this pertain to?

Wrangler

What version(s) of the tool(s) are you using?

3.81.0

What version of Node are you using?

No response

What operating system and version are you using?

Mac

Describe the Bug

After upgrading to 3.81.0, wrangler dev --remote started showing the interactive dev session controls, despite not being run in an interactive manner.

I use wireit to orchestrate npm scripts, and wireit does not currently support interactive sessions (https://github.com/google/wireit/issues/56).

To reproduce without using wireit:

node -e 'require("child_process").spawn("wrangler dev --remote", { stdio: "pipe", shell: true }).stdout.on("data", data => { console.log(`stdout: ${data}`) })'

I tried to turn this off by using --show-interactive-dev-session=false but it had no effect.

wrangler dev --remote --show-interactive-dev-session=false

... outputs ...

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚  [b] open a browser      โ”‚
โ”‚  [d] open devtools       โ”‚
โ”‚  [l] turn on local mode  โ”‚
โ”‚  [c] clear console       โ”‚
โ”‚  [x] to exit             โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

In my setup, the terminal output becomes mangled due to the interactive session output conflicting with the output from other commands which are running in parallel.

CleanShot 2024-10-18 at 12 26 06@2x

jdanyow avatar Oct 18 '24 19:10 jdanyow