github badlogic/pi-mono v0.52.10

latest releases: v0.53.0, v0.52.12, v0.52.11...
4 days ago

New Features

  • Extension terminal input interception via terminal_input, allowing extensions to consume or transform raw input before normal TUI handling. See docs/extensions.md.
  • Expanded CLI model selection: --model now supports provider/id, fuzzy matching, and :<thinking> suffixes. See README.md and docs/models.md.
  • Safer package source handling with stricter git source parsing and improved local path normalization. See docs/packages.md.
  • New built-in model definition gpt-5.3-codex-spark for OpenAI and OpenAI Codex providers.
  • Improved OpenAI stream robustness for malformed trailing tool-call JSON in partial chunks.
  • Added built-in GLM-5 model support via z.ai and OpenRouter provider catalogs.

Breaking Changes

  • ContextUsage.tokens and ContextUsage.percent are now number | null. After compaction, context token count is unknown until the next LLM response, so these fields return null. Extensions that read ContextUsage must handle the null case. Removed usageTokens, trailingTokens, and lastUsageIndex fields from ContextUsage (implementation details that should not have been public) (#1382 by @ferologics)
  • Git source parsing is now strict without git: prefix: only protocol URLs are treated as git (https://, http://, ssh://, git://). Shorthand sources like github.com/org/repo and git@github.com:org/repo now require the git: prefix. (#1426)

Added

  • Added extension event forwarding for message and tool execution lifecycles (message_start, message_update, message_end, tool_execution_start, tool_execution_update, tool_execution_end) (#1375 by @sumeet)
  • Added terminal_input extension event to intercept, consume, or transform raw terminal input before normal TUI handling.
  • Added gpt-5.3-codex-spark model definition for OpenAI and OpenAI Codex providers (research preview).

Changed

  • Routed GitHub Copilot Claude 4.x models through Anthropic Messages API, with updated Copilot header handling for Claude model requests.

Fixed

  • Fixed context usage percentage in footer showing stale pre-compaction values. After compaction the footer now shows ?/200k until the next LLM response provides accurate usage (#1382 by @ferologics)
  • Fixed _checkCompaction() using the first compaction entry instead of the latest, which could cause incorrect overflow detection with multiple compactions (#1382 by @ferologics)
  • --model now works without --provider, supports provider/id syntax, fuzzy matching, and :<thinking> suffix (e.g., --model sonnet:high, --model openai/gpt-4o) (#1350 by @mitsuhiko)
  • Fixed local package path normalization for extension sources while tightening git source parsing rules (#1426)
  • Fixed extension terminal input listeners not being cleared during session resets, which could leave stale handlers active.
  • Fixed Termux bootstrap package name for fd installation (#1433)
  • Fixed @ file autocomplete fuzzy matching to prioritize path-prefix and segment matches for nested paths (#1423)
  • Fixed OpenAI streaming tool-call parsing to tolerate malformed trailing JSON in partial chunks (#1424)

Don't miss a new pi-mono release

NewReleases is sending notifications on new releases.