Skip to content

Commit 85dbd30

Browse files
committed
Use login shell to start aish in sidecar pane to inherit proper PATH
1 parent 5f9d0b8 commit 85dbd30

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

shell/AIShell.Integration/InitAndCleanup.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace AIShell.Integration;
77

88
public class InitAndCleanup : IModuleAssemblyInitializer, IModuleAssemblyCleanup
99
{
10-
private const int ScriptVersion = 1;
10+
private const int ScriptVersion = 2;
1111
private const string ScriptFileTemplate = "aish_split_pane_v{0}.py";
1212
private const string SplitPanePythonCode = """
1313
import iterm2
@@ -31,7 +31,8 @@ await app.async_activate()
3131
3232
change = iterm2.LocalWriteOnlyProfile()
3333
change.set_use_custom_command('Yes')
34-
change.set_command(f'{app_path} --channel {channel}')
34+
# Use login shell to inherit proper PATH and environment
35+
change.set_command(f'/bin/zsh -l -c "{app_path} --channel {channel}"')
3536
3637
# Split pane vertically
3738
split_pane = await current_pane.async_split_pane(vertical=True, profile_customizations=change)

0 commit comments

Comments
 (0)