Repository navigation
v0.49.93
This patch fixes turns that Pi and Oh My Pi lost on slow machines, makes the nightly tasks work when Pi is installed as a single compiled binary, and takes three internal clean-ups from a contributor.
Upgrading
Update the plugin with npx @cortexkit/magic-context@latest doctor, then restart your host. No database migration is needed.
Fixed
- Pi and Oh My Pi: a finished request could be refused at the 25-second limit (issue 1021, thanks @Qiiks). Bookkeeping for the reminders that ask the agent to free context with
ctx_reduceran after the request was final and could use up the time left for saving it. That work now stops at the 21-second work limit. - Pi as a compiled binary: three background tasks that read your past sessions failed (issue 1035, thanks @evertvorster). The nightly task that learns from moments where you corrected the agent failed every night, reusable project answers had no session history to draw on, and the start-up task that links old sessions to their project failed at every start. These tasks needed Pi's SDK only to find the sessions folder. They now read the session files directly when the SDK cannot be loaded.
- A search that the caller cancelled was counted as an embedding failure (issue 923). A cancelled request no longer changes the embedding worker's status.
- OpenCode 2: an error in replay accounting could keep a cache entry pinned (issue 1020, thanks @iceteaSA).
Changed
- Less repeated work when a request is saved (issues 1018 and 1019, thanks @iceteaSA). Saving the last-good request no longer parses its own text again or serializes unchanged parts twice. What is saved is identical.
- The settings reference says when work at
execute_threshold_percentagerewrites the prompt (issue 925).
What to expect after the update
- Pi and Oh My Pi: on a pass that takes longer than 21 seconds, the
ctx_reducereminders are not measured for that pass. The next pass measures them from scratch. No request changes, and the 25-second limit for saving a request is unchanged. - Pi as a compiled binary: these background tasks start to read your session history. The first nightly run after the update covers the sessions it could not read before. Sessions kept in a custom location (
--session-dir,PI_CODING_AGENT_SESSION_DIRor thesessionDirsetting) are still not read; that is the same on every Pi install. - Oh My Pi is unchanged for these background tasks.
- Requests of your sessions do not change. No prompt cache is rewritten by this update.