Shell process exited after last update
Pre-submit Checks
- [x] I have searched Warp bugs and there are no duplicates
- [x] I have searched Warp known issues page and my issue is not there
- [x] I have an issue with AI and have included the debugging ID (Optional, but helps expedite the AI quality fix). Debugging ID intructions
- [x] I have technical issue and have included the logs (optional, but helps expedite the bug fix). Log intructions
Describe the bug
Hello, After upgrading to the latest version v0.2025.09.01.20.54.stable_02, the agent stops working midway through and I receive the error 'Shell process exited'.
To reproduce
on any task
Screenshots, videos, and logs
https://prnt.sc/hOj86KjVQJFm
Operating system (OS)
macOS
Operating system and version
15.6.1 (24G90)
Regression
Yes, this bug started recently or with an X Warp version
Does this block you from using Warp daily?
Yes, this issue prevents me from using Warp daily.
Is this an issue only in Warp?
No, this issue happens in Warp and other terminals.
I am also having this issue particularly when agent is set to ChatGPT(high reasoning) and the agent is scanning or running background checks in the terminal to sort through and index folders. I do not know if this has to do with permissions since I set my Mac OS to full permissions on the latest sequoia and my Warp is at latest update? Still no solution yet.
Hi, same problem.
lol GPT5 may write a defective shellscript which close the shell backing the agent process.
It indirectly commited suicide
prompt history: https://app.warp.dev/session/d8d175ba-8d01-49f5-af7b-85bffcec3bc2?pwd=2fd899f1-e2c2-4b74-bdec-3fd7e2520752
BTW is there a way to restore a terminated conversation?
lol GPT5 may write a defective shellscript which close the shell backing the agent process.
It indirectly commited suicide
hi @tribbloid , so this may be OS dependant since I use warp on both an older mac with older os and this current machine. Would recommend fully updating sequoia or even to the newest os if using apple, you may even want to completely gut and reinstall warp. The issue is resolved on my more up to date mac but certainly it can be persistent if there's a compatibility issue with the terminal itself. Otherwise keep us updated on what works for you. Thx.
@drewesk My case was on Linux (Pop-OS 24.04), but I'll try what you suggested
so this situation completely b0rk3d me twice in the span of 72 hours, in the midst of some grueling efforts to fix a broken react native build.
he context is that I installed Warp in a clean macOS Sequoia VM (usng SoftVM, which leverages macOS's native h ypervisor) to basically crunch through a bunch of system-level installations, from Ruby to jdk and the lot), only to have Chat GTP 5 high reasoning eventually run a script with the pipefail directive (see below, from history, offered as screenshot because there's no clipboard integration with the VM) that terminated the session and lost ALL my context.
And while I fully understand that this outcome is arguably the "fault" of the LLM, it really just leaves me feeling like any of my Warp sessions are at jeopardy of random context loss.
I basically have to pivot to a different tool entirely.
I think this is a “strict mode kills the backing shell” issue and not just Warp randomly crashing.
A bunch of GPT-generated scripts start with set -euo pipefail. In zsh/bash, set -u (nounset) will error and can exit the shell if any startup hook or helper references an unset variable (e.g. INSIDE_EMACS). Separately, set -e + pipefail makes benign nonzero statuses in pipelines fatal, which can cause the shell running the agent to exit → Warp shows “Shell process exited” and context is lost.
I'm testing out this regex in my agent's deny list to see if it helps: (^|\s)set\s+-[^\n#;|&]*u
Also note that you can still recover the agent session (it keeps going in the background) by hitting cmd + shift + t or whatever your re-open last tab command is. And then once the agent finishes, you can open a new tab and continue the chat with cmd + y.
But Warp themselves should certainly look into this. It's been a terrible user experience, and GPT-5.2 does this all the time.
I think Warp Agent Mode should run commands in an isolated subshell/process by default, so that exit doesn’t terminate the agent’s session.
I think this is a “strict mode kills the backing shell” issue and not just Warp randomly crashing.
A bunch of GPT-generated scripts start with
set -euo pipefail. In zsh/bash,set -u(nounset) will error and can exit the shell if any startup hook or helper references an unset variable (e.g. INSIDE_EMACS). Separately,set -e+pipefailmakes benign nonzero statuses in pipelines fatal, which can cause the shell running the agent to exit → Warp shows “Shell process exited” and context is lost.I'm testing out this regex in my agent's deny list to see if it helps:
(^|\s)set\s+-[^\n#;|&]*uAlso note that you can still recover the agent session (it keeps going in the background) by hitting
cmd + shift + tor whatever your re-open last tab command is. And then once the agent finishes, you can open a new tab and continue the chat withcmd + y.But Warp themselves should certainly look into this. It's been a terrible user experience, and GPT-5.2 does this all the time.
I think Warp Agent Mode should run commands in an isolated subshell/process by default, so that
exitdoesn’t terminate the agent’s session.
@3mdistal The final solution was to move to opencode TUI. It's essentially the same core functionality of warp but without the guardrails.. and more customization + better patches for fixing LLM side effects. Also more cost effective with the right combo of providers/pay-per-req and better outputs with less debugging (prompting better on stronger models)... https://opencode.ai
This is still happening as of v0.2026.01.14.08.15.stable_04. I've lost 2 sessions in 2 days because of this.
This is still happening as of v0.2026.01.14.08.15.stable_04. I've lost 2 sessions in 2 days because of this.
@allenrchan try using OpenCode TUI, much cheaper and more control over the workflow: https://opencode.ai/
I had the same problem on macOS Catalina.
- OS Version: macOS 10.15.8 (Catalina)
- Model: MacBookPro9,2 (MacBook Pro Mid-2012)
It indirectly commited suicide