Skip to content

Commit 3f43c66

Browse files
docs: v0.22.1 release notes
Co-authored-by: Alfonso [Magic Context] <288211368+alfonso-magic-context@users.noreply.github.com>
1 parent 85e130d commit 3f43c66

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.alfonso/release-notes/v0.22.1.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# v0.22.1 — Issue triage sweep: embeddings, context limits, Windows, config schema
2+
3+
A focused patch closing a batch of reported issues after v0.22.0.
4+
5+
## What's New
6+
7+
- **NVIDIA NIM embedding support** (#127). New optional `embedding.input_type` (`"query"` / `"passage"`) and `embedding.truncate` fields for openai-compatible providers. They flow through the live request, the endpoint probe, and the dashboard's Test Connection. `input_type` is part of the provider identity (it changes the vector space), so changing it triggers a re-embed. Omitted entirely when unset, so standard OpenAI-style endpoints are unaffected.
8+
9+
- **`magic-context.schema.json` is now auto-generated from the Zod config schema** (#109). The JSON Schema can no longer drift from the actual validated config — a CI guard fails the build if they diverge.
10+
11+
## What's Fixed
12+
13+
- **Context usage reported as >1000% for ollama-cloud models** (#117). Two real causes: (1) ollama invokes cloud models with a tag (`deepseek-v4-pro:cloud`) while models.dev stores them tag-less, so the lookup missed and fell back to a 128k default; we now match exact-first, then retry with the tag stripped. (2) ollama's tiny default `num_ctx` reported via the live API was overriding the correct large models.dev window; when both sources know a model we now take the larger limit. A genuinely smaller real limit still comes through the overflow-detection path.
14+
15+
- **Native-module crash on process exit** (#95). On Bun teardown, N-API finalizers could panic. Magic Context now does an orderly cleanup (RPC server, dream timer, auto-update controller) on OpenCode's `server.instance.disposed` event.
16+
17+
- **Auto-update failing on Windows with a locked package directory** (#103). The updater now tolerates `EBUSY`/`EPERM` on the cache directory with a retry instead of aborting the update.
18+
19+
- **"What's new" announcement showing on fresh and sandboxed installs** (#99). The announcement state is seeded on first run, so the dialog only appears on an actual version change.
20+
21+
- **`execute_threshold` above 80% silently capped.** The config loader now explains, via a validation message, that the runtime caps the effective execute threshold at 80% for cache-safety headroom (#111).
22+
23+
- **Windows test-suite EBUSY teardown failures** cleaned up so the suite runs green on Windows CI.
24+
25+
## Housekeeping
26+
27+
- Bumped `@opencode-ai/plugin` and `@opencode-ai/sdk` to `^1.15.13`.
28+
- Added a Feature Request issue template; documented the model cache and log paths plus sandbox guidance in the README Storage section (#100).
29+
30+
## Upgrade
31+
32+
```bash
33+
npx @cortexkit/magic-context@latest doctor --force
34+
```
35+
36+
If OpenCode still loads a cached older plugin after upgrading, `--force` clears the cached install so the new version takes effect on next launch.

0 commit comments

Comments
 (0)