Skip to content

v0.49.109

Choose a tag to compare

@github-actions github-actions released this 04 Dec 17:00
· 145 commits to master since this release

v0.49.109

Version 0.49.108 was not published: its release run stopped in the test stage. Everything it was to carry is in this release.

This patch fixes one fault, explains another, and makes --help work for every command of the CLI: a history model whose context window is too small for the summary instructions received a request it could not hold, although a fallback model was configured (issue 1068); on Oh My Pi older than 18.4.4 a refusal that could only say "send again" now names its cause; and magic-context <command> --help shows that command's own options at every level.

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 history model that is too small is skipped, and the configured fallback writes the summary (issue 1068). The instructions that the history model gets with every summary are longer than a small window holds, before any conversation text is added. A local model with a 16,384-token window, for example, cannot hold them. Magic Context still sent it the request, the provider refused or cut it, and only then did the fallback run. Now such a model is skipped before any request when a fallback model is configured (fallback_models in the historian block of your host), and the fallback gets the request first. A skip is not a failure: it starts no retry pause, raises no failure count and shows no notice.

    Two cases, by what is known about the model:

    • The model publishes a window of 20,000 tokens or more that is still too small. It is skipped wherever it stands in the chain. If no configured model can hold the instructions, the summary is refused before any request, as before.
    • The model publishes a window below 20,000 tokens. Magic Context does not trust such a value by itself, because it is often wrong metadata (a local server that has not been told its real window, or a half-read catalogue file). It is used only to prefer another model: the small model is skipped when a different configured model is available at that moment, and it is sent the request as before when it is the only one. A window that Magic Context already knows for a model always wins over such a value.
  • Pi and Oh My Pi: after a skip, the recorded error is the last real failure. When the first history model was skipped and a later model then failed, the stored error named the skipped model's window. It now names the failure of the model that was called.

  • OpenCode: the log is readable when a pass has to start on a model in a retry pause. When the only other history models were too small, a pass could log a model as skipped for its retry pause and then send the request to it, with no line for the model that was too small. The log now has the usual line for the model that is too small, names only the models the pass really skips, and says trying <model> during retry-after until <time>: no other usable model is ready for the one it sends to.

  • Oh My Pi older than 18.4.4 with a ChatGPT (Codex) login: the refusal says why, and what to do. Over WebSocket, which is Oh My Pi's default for that login, Oh My Pi sends a follow-up message as a short continuation of the previous response. To check a continuation, Magic Context needs a signal that Oh My Pi sends from version 18.4.4 on. On 17.1.7 to 18.4.3 the signal is missing, so each such follow-up is refused, and the message only said to send again. Sending again works for that one turn; the next follow-up is refused again. What is refused has not changed. The message now names the Oh My Pi version and both remedies: run omp update, or turn WebSockets off with omp config set providers.openaiWebsockets off. doctor warns about the same on those versions, and the installation page says it.

Changed

  • Oh My Pi 19.1.0 and newer: the todo list is recorded again. From 19.1.0 on, Oh My Pi offers a plugin's tools to the model as commands of its own shell tool. A todo list written that way ran Magic Context's todowrite, but the plugin recorded the list only from host events, and this route sends none for it. So the todo reminder that Magic Context adds after it rebuilds the context was missing, and the /todos view was not updated. The tool now records the list when it runs, on every route. Sessions on older Oh My Pi versions and on Pi send the same requests as before.

  • CLI: --help and -h work at every level. Every command and subcommand of npx @cortexkit/magic-context prints its own usage with its options and exits without running anything: no store is opened, no host is probed and no prompt is shown. Before, doctor single-store migrate --help, doctor single-store repair-history --help and doctor --prune-discovery --help printed their parent's usage, four subcommands ran the SQLite check before they answered, and doctor <unknown> --help printed the doctor usage as if the subcommand existed. An unknown subcommand asked for help now says so and lists the real ones. Where a command already refused an unknown option, the error now names the option and points to that command's help. No command refuses anything it accepted before.

What to expect after the update

  • A small first history model with a fallback: summaries are written by the fallback at once, and the small model gets no request. The log has one line per skipped model with the window it published.
  • A small history model without a fallback: nothing changes. Configure a history model with a larger context window, or add a fallback.
  • Setups without an explicitly configured first history model, and /ctx-recomp: unchanged. There the first model is still tried as before.
  • No request that was sent before is rewritten by this update. When no model is skipped, the size of the summary request and the choice of model are exactly as in 0.49.107.
  • CLI: every option a command reads is listed in its help. Nothing else about the commands changes.
  • Oh My Pi 17.1.7 to 18.4.3 with a ChatGPT (Codex) login: the same turns are refused as before, with a message that says how to stop it. Other logins and Oh My Pi 18.4.4 or newer see no change.

Documentation

  • The Pi architecture page has a new section, "The request check on Oh My Pi": what the check compares before each request, what it refuses, and what it matches by position only.