Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: PowerShell/AIShell
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: bfdc008
Choose a base ref
...
head repository: PowerShell/AIShell
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f281b2a
Choose a head ref
  • 6 commits
  • 6 files changed
  • 1 contributor

Commits on May 15, 2025

  1. Configuration menu
    Copy the full SHA
    1d048da View commit details
    Browse the repository at this point in the history

Commits on May 16, 2025

  1. Merge the 1.0.0-preview.4 release branch back to main (#379)

    - Update version info for the `1.0.0-preview.4` release.
    - Use deploy box and `GitHubRelease` task to create the GitHub draft release.
    - Make sure the `Runspace` is available when importing the `AIShell` module and throw otherwise.
      - When validating packages, I found there were rare cases where the `Runspace` instance passed to the constructor of `AIShell.Integration.Channel` is `null`. The constructor is used only in the public static method `CreateSingleton` which is called from `AIShell.psm1` to create a singleton of the `Channel` type upon importing the `AIShell` module.
      - In `AIShell.psm1`, we call `CreateSingleton` with `$host.Runspace` to pass in the `Runspace` instance, and the module's manifest defines `PowerShellHostName = 'ConsoleHost'`, so in theory, `$host.Runspace` should never be null, but that just happened.
      - I'm guessing it could be related to the `CompletionPredictor` module loaded from my profile, which attempts to sync with the modules loaded in the default session from a separate `Runspace` -- somehow, the `Channel` singleton got created from that separate `Runspace` instead of the default session -- but I cannot prove it.
      - To address this issue, I added restricted checks in both `AIShell.psm1` and the constructor of `Channel` type, to make sure that a `Channel` singleton can be created only if the `Runspace` instance is available. Related changes are in this commit: a447dee.
    daxian-dbw authored May 16, 2025
    Configuration menu
    Copy the full SHA
    3e8d335 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d9151ec View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3061ec6 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2025

  1. Configuration menu
    Copy the full SHA
    b591ed9 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2025

  1. Configuration menu
    Copy the full SHA
    f281b2a View commit details
    Browse the repository at this point in the history
Loading