Skip to content

Use login shell to start aish in sidecar pane to inherit proper environment PATH #403

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions shell/AIShell.Integration/InitAndCleanup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace AIShell.Integration;

public class InitAndCleanup : IModuleAssemblyInitializer, IModuleAssemblyCleanup
{
private const int ScriptVersion = 1;
private const int ScriptVersion = 2;
private const string ScriptFileTemplate = "aish_split_pane_v{0}.py";
private const string SplitPanePythonCode = """
import iterm2
Expand All @@ -31,7 +31,8 @@ await app.async_activate()

change = iterm2.LocalWriteOnlyProfile()
change.set_use_custom_command('Yes')
change.set_command(f'{app_path} --channel {channel}')
# Use login shell to inherit proper PATH and environment
change.set_command(f'/bin/zsh -l -c "{app_path} --channel {channel}"')

# Split pane vertically
split_pane = await current_pane.async_split_pane(vertical=True, profile_customizations=change)
Expand Down
Loading