Skip to content

v0.49.104

Choose a tag to compare

@github-actions github-actions released this 03 Dec 10:10
· 310 commits to master since this release

v0.49.104

This patch fixes two faults in local memory search, both reported with a precise diagnosis by a contributor. Neither changes what a session sends to a model.

Upgrading

Update the plugin with npx @cortexkit/magic-context@latest doctor, then restart your host. No database migration is needed.

On Oh My Pi the doctor cannot upgrade the plugin: run omp plugin install @cortexkit/pi-magic-context@latest, then restart running Oh My Pi sessions.

Fixed

  • A cancelled embedding request no longer runs (issue 1046). With the local embedding model, a request that was cancelled while it waited behind another one still ran its inference in the worker. The result was thrown away, and every request queued behind it waited for nothing, which was worst for a large batch. The worker is now told which request was cancelled. It skips a request that has not started, and it starts no further batch of one that is running; the batch in progress finishes. A cancellation does not stop the worker and is not recorded as a model failure.

  • Memory vectors of a project you stopped searching leave the cache (issue 1053). Magic Context keeps a project's memory vectors in memory for 60 seconds after a search. An expired set was removed only when the same project was searched again, so a process that serves several projects kept the vectors of every project it had searched once. Expired sets are now removed whenever the cache is used, for any project. An expired set was never used for a search; the cost was memory only.