Background exec output is mixed with shell input
Discord username (optional)
No response
Describe the bug
When running a command in background plus typing another command while the first one still executes, the second command gets garbled and somehow mixed with the output of the background command. As result, the second command errors as it doesn't exist.
To Reproduce
Do:
make&
ls
Expected behaviour
Second command runs as `ls`.
Screenshots
Impossible todo- you have to try for yourself ;)
Operating System
MacOS
OS Version
latest
Shell Version
latest
Additional context
No response
Warp Internal (ignore): linear-label:24888f54-df93-45d5-9bdd-e38f740cac19
No response
Any feedback on this one? It's really a showstopper for using Warp...
Similarly, the history mixes commands with output. At this stage so many basic functionalities of a shell are broken that Warp is unusable for me.
@andig can you try this from the docs: https://docs.warp.dev/help/known-issues#configuring-and-debugging-your-rc-files
@elviskahoro not sure I follow. Are you suggesting to basically disable the shell? I don't think that mixing STDOUT with STDIN is something that depends on the shell's rc files?
@andig Are you suggesting to basically disable the shell? Sorry didn't mean for it to come off this way.
In the scenario for make& ls, I'm confident there isn't anything to do on your end. But for the second issue:
Similarly, the history mixes commands with output.
This happens for other people usually when they're using a plugin that doesn't work with Warp. And the example in the docs where is you set zdotdir is a quick way to run blanks rc files.
Can you share a video of the second bug, where your history mixes with output? Or did you mean this:
Encountering the same issue.
Just running:
while true; do sleep 1; echo hello; done
keeps appending 'hello' to the current input buffer.
Tried disabling a bunch of my rc's including iterm but couldn't track down the issue.
This is happening to me too. It's not related to RC files. The stdout from background processes is getting used as the input for future command lines.
Here's a minimal way to reproduce. Paste this into your terminal and hit enter:
(sleep 1; echo 'not the command I wanted to run') &
Then you can see that your input is corrupted, and if you hit enter again you will get an error message.
This has corrupted my shell history with thousands of lines of shell output that shouldn't have been used as input.
Thanks for sending this over. This is really helpful
Of course, thanks for taking a look!
Basic shell functionality still broken after six months. Why should I care for reordering tabs and youknowwhat if I can‘t even use history? This is a total disaster :(
@andig OK if we leave the issue open? The issue is still ongoing, and I'd like to use Warp. I agree with you that it seems like this should be a high priority.
There's an opportunity for a great feature here. I've always wanted to be able to tail a log, or run some other long process, without having to spawn a new shell/tab. If background and/or long-running processes could easily be moved to their own tabs/blocks/whatever (especially if this is doable after the process starts) then that would be really valuable. Perhaps it might also be part of a solution to the subshell problem?
I would see this more as an opportunity to fix basic functionality. We can reorder tabs but not have a working history?
Came here to report this bug, but found this thread. Really annoything because you bascailly can't use background jobs in warp because any logged output is mixed with shell input..
Video here: https://wes.io/X6u5egP8
@elviskahoro do you think your team will be able to prioritize/address this? In my shell usage, it's critical, and this has forced me to go back to using the macOS terminal app. I'd be really excited to restart using Warp.
To give it another angle: we are able to order tabs and do fancy stuff but basic functionality is broken.
Hey Folks, this is actively being worked on and improvements in this area are coming in the not-too-distant future. No official ETA, but it's on the roadmap 🚀
Good timing - we were just recording the Syntax episode on warp! Thanks for the update
@dannyneira any chance to put working history on the agenda before AI and other things? Imho it would be really important to get the basics right. I've never missed AI in a terminal but have productivity impairment every time the history doesn't work...