warp icon indicating copy to clipboard operation
warp copied to clipboard

Shell process exited after last update

Open eyupdmg06 opened this issue 1 year ago • 12 comments

Pre-submit Checks

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.

eyupdmg06 avatar Sep 03 '25 10:09 eyupdmg06

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.

drewesk avatar Sep 13 '25 16:09 drewesk

Hi, same problem.

Openliquid avatar Sep 16 '25 11:09 Openliquid

lol GPT5 may write a defective shellscript which close the shell backing the agent process.

Image

It indirectly commited suicide

tribbloid avatar Sep 18 '25 03:09 tribbloid

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?

tribbloid avatar Sep 18 '25 03:09 tribbloid

lol GPT5 may write a defective shellscript which close the shell backing the agent process.

Image 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 avatar Sep 19 '25 17:09 drewesk

@drewesk My case was on Linux (Pop-OS 24.04), but I'll try what you suggested

tribbloid avatar Sep 20 '25 00:09 tribbloid

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.

Image

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.

prometheas avatar Nov 09 '25 20:11 prometheas

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.

3mdistal avatar Dec 17 '25 12:12 3mdistal

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.

@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

drewesk avatar Dec 17 '25 13:12 drewesk

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 avatar Jan 19 '26 21:01 allenrchan

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/

drewesk avatar Jan 19 '26 22:01 drewesk

I had the same problem on macOS Catalina.

  • OS Version: macOS 10.15.8 (Catalina)
  • Model: MacBookPro9,2 (MacBook Pro Mid-2012)

tiagordebarros avatar May 18 '26 19:05 tiagordebarros