Before submitting
Area : apps/desktop
Impact: Minor bug or occasional failure
Version or commit: All Versions
Environment : macOS 26.2, Homebrew 5.1.1, zsh 5.9 (arm-apple-darwin25.0.0)
Steps to reproduce
Setup:
This issue happens when you are:
- On the desktop version of T3Code on MacOS running zshrc shell
- Have HomeBrew setup
- Have zshrc plugins setup via homebrew
- or have
$HOMEBREW_PREFIX referenced as path in your ~/.zhsrc
Steps:
- Start the desktop app with the latest version (0.0.14)
- Open any old or new thread and then open the terminal
- Terminal opens and works but you see the following error message
Reason for the issue:
From the code in readEnvironmentFromLoginShell & readPathFromLoginShell we are calling the shell to fetch variables but copying only PATH and in some places SSH_AUTH_SOCK . Homebrew variables are not included.
NOTE: Though adding Homebrew to the list might fix this related issue but other variables that might be defined in ~/.zprofile will get missed.
Logs or stack traces
@t3tools/desktop:dev: dev:electron | 16:33:53.298 EVENT [ws] outgoing
push channel="terminal.event" sequence=17 recipients=1 payload=
{
"type": "output",
"threadId": "db9abf8f-e027-4970-a3f5-9b621f54c7a7",
"terminalId": "default",
"createdAt": "",
"data": "/Users/frittlechasm/.zshrc:source:136: no such file or
directory: /share/zsh-autosuggestions/zsh-autosuggestions.zsh\r\n/User
s/frittlechasm/.zshrc:source:137: no such file or directory:
/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh\r\n"
}
Workaround
Add HOMEBREW_PREFIX to the allow list in readEnvironmentFromLoginShell
Before submitting
Area : apps/desktop
Impact: Minor bug or occasional failure
Version or commit: All Versions
Environment : macOS 26.2, Homebrew 5.1.1, zsh 5.9 (arm-apple-darwin25.0.0)
Steps to reproduce
Setup:
This issue happens when you are:
$HOMEBREW_PREFIXreferenced as path in your ~/.zhsrcSteps:
Reason for the issue:
From the code in
readEnvironmentFromLoginShell&readPathFromLoginShellwe are calling the shell to fetch variables but copying only PATH and in some places SSH_AUTH_SOCK . Homebrew variables are not included.NOTE: Though adding Homebrew to the list might fix this related issue but other variables that might be defined in
~/.zprofilewill get missed.Logs or stack traces
Workaround
Add
HOMEBREW_PREFIXto the allow list in readEnvironmentFromLoginShell