Skip to content

Commit 1fb4b7b

Browse files
committed
Ignore unexpected exceptions when retrieving history commands from the connected PS session
1 parent 013ff07 commit 1fb4b7b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

shell/AIShell.Integration/Channel.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,10 @@ private void RunspaceAvailableAction(object sender, RunspaceAvailabilityEventArg
212212
_commandHistory.AddRange(results);
213213
}
214214
}
215+
catch
216+
{
217+
// Ignore unexpected exceptions.
218+
}
215219
finally
216220
{
217221
pwshRunspace.AvailabilityChanged += RunspaceAvailableAction;

0 commit comments

Comments
 (0)