Skip to content

[zed-recent-projects] Projects are inheriting environment variables from the raycast process #24807

@adamhl8

Description

@adamhl8

Extension

https://www.raycast.com/ewgenius/zed-recent-projects

Raycast Version

1.104.3

OS Version

macOS 26.2

Description

I think this is ultimately the same issue as #24758

When opening a Zed project via the extension, any terminals opened within Zed are inheriting environment variables from the Raycast process.

For example, running env inside a Zed terminal has the following set: NODE_PATH=/Applications/Raycast.app/Contents/Resources/RaycastNodeExtensions_RaycastNodeExtensions.bundle/Contents/Resources/api/node_modules. Also LC_ALL=en_US-u-hc-h12-u-ca-gregory-u-nu-latn which is mentioned in the above issue.

This is also setting NODE_ENV=production, which was causing problems for me until I figured out why that was being set.

If Zed is not launched via the extension, then these environment variables are not set.

Steps To Reproduce

  1. Close any instances of Zed
  2. Open a recent project via the extension
  3. Open a terminal in Zed
  4. Run env
  5. See environment variables from the Raycast process

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingextensionIssues related to one of the extensions in the Storeextension: zed-recent-projectsIssues related to the zed-recent-projects extension

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions