Merge the 1.0.0-preview.4 release branch back to main #379
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary
Merge the 1.0.0-preview.4 release branch back to main.
1.0.0-preview.4
release.GitHubRelease
task to create the GitHub draft release.Runspace
is available when importing theAIShell
module and throw otherwise.Runspace
instance passed to the constructor ofAIShell.Integration.Channel
isnull
. The constructor is used only in the public static methodCreateSingleton
which is called fromAIShell.psm1
to create a singleton of theChannel
type upon importing theAIShell
module.AIShell.psm1
, we callCreateSingleton
with$host.Runspace
to pass in theRunspace
instance, and the module's manifest definesPowerShellHostName = 'ConsoleHost'
, so in theory,$host.Runspace
should never be null, but that just happened.CompletionPredictor
module loaded from my profile, which attempts to sync with the modules loaded in the default session from a separateRunspace
-- somehow, theChannel
singleton got created from that separateRunspace
instead of the default session -- but I cannot prove it.AIShell.psm1
and the constructor ofChannel
type, to make sure that aChannel
singleton can be created only if theRunspace
instance is available. Related changes are in this commit: a447dee.