Skip to content

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 11 Jun 02:47
· 13 commits to master since this release

v0.3.1

馃敡 Bug Fixes & Quality Improvements

Linux/Unix CLI Discovery (ServerManager.cs)

  • FindCliViaWhere() renamed to FindCliViaWhich(): uses which on Linux/macOS and where on Windows. Fixes a latent bug where Linux systems fell back to CanRunDirectly() unnecessarily.

Logging Wired Up

  • ServerOptions.Log property added, populated from NOpenCodeBuilder.LogCallback
  • All previously empty catch { } blocks in ServerManager now log the exception via the callback:
    • FindNpmGlobalCli, FindCliViaWhich, CanRunDirectly, IsHealthy, DisposeAsync (instance dispose + kill), CleanupDataDir
  • ServerManager.Start() logs "Reusing existing..." / "Starting opencode serve..."

DI Deadlock Fix (ServiceCollectionExtensions.cs)

  • AddNOpenCode() now wraps builder.Launch() in Task.Run(...) to avoid ASP.NET Core sync context deadlock with .GetAwaiter().GetResult()

WithAutoServer() Documentation

  • Added XML doc explaining this is the default behavior; method exists for explicitness in builder chains