Skip to content

v1.0.166

Latest

Choose a tag to compare

@mksglu mksglu released this 23 Jun 06:43
· 3 commits to main since this release

context-mode v1.0.166

A Pi-focused reliability and DX release: the in-editor diagnostic that blocked typing on Pi is gone, and the foreground session's tools no longer drop after an idle pause.

Bug fixes

  • Pi: a background diagnostic no longer appears in the editor and blocks typing (#868, reported by @carolitascl, confirmed by @frsswq). context-mode loads in-process under Pi, and its MCP bridge was writing diagnostics to process.stderr — which is Pi's raw-mode TUI terminal. The idle-helper notice ([mcp-bridge] … idle MCP bridge child self-shutdown …) rendered straight into the prompt box, corrupting the input. All Pi-adapter diagnostics now route to pi.logger (Pi's rotating log under ~/.omp/logs/), the documented channel for in-process extensions — never the terminal. Crash diagnostics are still captured (in the log), not swallowed.

  • Pi: the foreground session no longer loses its ctx_* tools after a pause. The idle reaper that bounds abandoned sub-agent helpers was also reaping the active interactive session's helper after three minutes of inactivity, so a human pause dropped the tools (they reconnected on the next call, but the disconnect was wrong). The foreground session's helper now stays alive; only sub-agent / non-interactive helpers are idle-reaped, so abandoned ones still can't accumulate. The foreground helper is still released immediately when Pi itself exits.

  • Clearer idle-helper wording. When a sub-agent helper is released, the log line now reads in human units and states that it reconnects automatically, instead of the previous low-level "self-shutdown after 180000ms" phrasing.

Scope: this class of issue is specific to Pi, the one adapter that runs context-mode in-process and forwarded its helper's stderr to the terminal. The other supported agents run context-mode as a separate MCP subprocess (or via a host logger), so their diagnostics never reach the interactive UI — they were verified unaffected and unchanged.

Contributors

Thanks to @carolitascl for the precise report (the exact line and where it appeared) and to @frsswq for confirming it across platforms.

Install

npx skills add mksglu/context-mode

Existing installs: /context-mode:ctx-upgrade.

Links