workers-sdk
workers-sdk copied to clipboard
๐ BUG: wrangler dev --remote using interactive dev session in non-interactive terminal and ignores --show-interactive-dev-session=false
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.