I have been using Legacy mode for a few months now. It has the same problem, as far as I can tell…it does not seem to load any kind of shell resource file. I have actually tried to set up custom integrated profiles. As far as I have been able to tell, those ONLY affect the interactive terminals you open (by default in the bottom middle of the Cursor/VSCode ui)… No custom profile I have ever set up, has ever had any impact to the AGENT terminal instances…
FWIW, my thread that you linked, is about AGENT terminal instances, not interactive terminal instances that me, the user, uses. My interactive terminals all properly use my .zshrc file.
I don’t know exactly when this shift happened…I think it was with 1.6.x, when you guys finally reworked the agent terminal system to resolve the problems that were plaguing it before 1.6. Since then, and it was I think some specific update during 1.6 refinement of the agent terminal redesign, when shell profiles were no longer used by the agent terminal instances. This was before the introduction of sandbox, but has persisted, WITH LEGACY TERMINAL MODE, since sandbox mode was introduced as well.
Its a real problem for me, as I have to burn quite a lot of tokens to keep the agent successfully running terminal commands, given the way it works now. There seem to be periodic and moderately frequent terminal recycles with the agent terminals now…it arbitrarily decides to create a new terminal instance, which can happen right in the middle of a chat (even work for a single prompt), requiring full re-setup of the environment for the work that was being done. This affects local psql usage, aws CLI usage, well, pretty much ANY custom CLI tools that I install and set up $PATH and other things for in my .zshrc file.
FWIW, I don’t necessarily want the agent terminal instances to use my full .zshrc file, either. I think what is really needed, is a way to configure the AGENT terminal instances independently of interactive terminal instances inside VSCode/Cursor. The config for settings.json that you shared, at least in my experience, ONLY affects interactive USER terminal instances, it does not affect sandbox or legacy mode AGENT terminals.
FWIW, the versions of Cursor that this has affected, thus far, is 1.6.X (middling version, don’t remember the exact start), 1.7.*, 1.8.*, 2.0.*, 2.1.*, 2.2.* and I am currently on 2.3.* and still have these issues.