github can1357/oh-my-pi v19.4.0

2 hours ago

@oh-my-pi/pi-agent-core

Changed

  • Improved context size estimates by using model-specific tokenizers instead of the OpenAI fallback for supported Gemini models, Gemini 4 Argon, Hydrogen, Carbon and Neon (with conservative hard budget checks), Xiaomi MiMo, MiniMax, Meta Muse and Llama 4.

Fixed

  • Fixed token counters for sessions and subagents staying in memory after the session ended (#21089 by @sjawhar).
  • Fixed OpenAI remote compaction failing when reused conversation history contained images or results from an earlier compaction, including on Azure (#20903, #20906 by @koeria, #20617 by @sjawhar).
  • Fixed Cursor counting tool results twice when sizing requests, which could shrink the model's output budget to its minimum (#20510).
  • Fixed compaction dropping turns the model could still see when an earlier compaction had kept turns from before /clear (#20993 by @sjawhar).

@oh-my-pi/pi-ai

Added

  • Added POST /v1/spotlight to omp auth-gateway, forwarding Stencil Spotlight ranking to Stencil Cloud under the gateway's stencil.so credential so credential-free omp can rank through it. Scoped clients need stencil/* in models to call it.

Fixed

  • Compaction and other one-shot requests now retry transient network failures such as ETIMEDOUT instead of stopping (#21111 by @Maziar123).
  • A Devin per-model rate limit now blocks only that model until its stated reset, instead of marking every Devin model as out of usage while the account still has quota (#21057 by @Xytronix).
  • Devin sessions now switch to another stored login when the current one has used up its weekly quota and has no on-demand balance (#20524 by @will-bogusz).
  • Fixed Devin Gemini models (e.g. devin/gemini-4-neon) losing their thought signatures during tool loops, which often caused empty stops (#19840).
  • OAuth credentials formatted by other tools no longer cause refresh timeouts or lost tokens. Failed saves no longer retry for 60 seconds when no other process is refreshing (#20601, #20602 by @noahgaertner).
  • Sessions now recover on their own when the auth broker URL returns an error, such as a proxy's 403 during a DNS outage, instead of failing until restart (#19236).
  • Opening the credential store at startup no longer fails with database is locked while another process is writing to the agent database (#17968 by @sjawhar).
  • <think> or </think> inside inline code or code blocks is no longer mistaken for the start or end of a thinking block.
  • Thinking-loop detection now catches real loops in languages written without spaces between words, such as Chinese, Japanese, and Thai. It no longer interrupts valid reasoning that repeats English tool or metric names (#20096).
  • Anthropic requests now use HTTPS_PROXY, https_proxy, and ALL_PROXY without requiring PI_PROXY (#21006).
  • Anthropic sessions no longer rebuild the whole prompt cache when a tool-heavy turn follows a pause of more than about 4.5 minutes (#20606 by @Phantasma98).
  • Requests now switch to another account or a fallback model when a provider rejects them for insufficient credit (#20403 by @JamieJ5926).
  • Context-window overflow errors now trigger compaction and a retry whenever the provider's error code identifies the overflow, even if the error message wording is unfamiliar (#20401 by @JamieJ5926).
  • Image references that can't be resolved are now replaced with text placeholders instead of causing invalid image requests in OpenAI Responses, Chat Completions, and Cursor (#20903, #20906 by @koeria).
  • OpenAI Chat Completions now keeps declared tool calls and their results when replaying history, including tools with dotted names such as power.state (#20633 by @joshuaswarren).
  • Replaying stored OpenAI Responses output no longer fails with an unknown-parameter error for created_by on OpenAI, Azure, Codex, or WebSocket routes (#20617 by @sjawhar).
  • Claude usage reports now label premium Team seats as "Team 5x" instead of "Max 5x" (#20677 by @ndecool).
  • Z.AI account ranking now handles usage reports that have multiple quota meters or no absolute credit values (#9979 by @aleister1102).
  • Pi-native streaming now honors a configured Authorization header regardless of capitalization and falls back to the API key when the header is missing or empty (#20472 by @enieuwy).
  • Requests canceled while they are being prepared are no longer sent, even when a custom fetch ignores abort signals (#20673 by @sjawhar).

@oh-my-pi/browser-relay

Added

  • Added a session switcher to the side panel that lists your previous chats so you can pick one and continue it.

Fixed

  • Fixed starting a new chat showing "omp is working in another tab" for the chat you just left. The new chat now takes over the tab, and a tab already in use by another chat offers both "New chat here" and "Open chat".
  • Fixed the side panel repeating a running step's label in the working row below it.

@oh-my-pi/pi-catalog

Added

  • Added the Verda Inference provider with Kimi K3.1 Pro and DeepSeek V4.1 Flash 1017. Sign in with /login verda or set VERDA_INFERENCE_API_KEY (#19496 by @EzgiTastan).
  • Local token counts now use each model's own published tokenizer instead of the OpenAI fallback. This covers Gemini 2.0–3.5, Gemma 3 (270M/1B/4B/12B/27B), Gemma 4 E4B, Xiaomi MiMo V2.x, MiniMax M1–M3.x, Meta Muse Spark, Wonder, Ember, Glimmer and Llama 4. Gemini 4 Argon, Hydrogen, Carbon and Neon, including their effort variants, now use a local gemini4 tokenizer. The -fast variants still use the fallback.

Fixed

  • Fixed LiteLLM models that are missing from LiteLLM's cost map losing native tool calling. With tools.format: auto, these models now keep receiving native tools (#21061).
  • Fixed LiteLLM models offering a generic set of reasoning effort levels. Models now offer only the levels declared in model_info.reasoning_effort_levels, and declaring none turns thinking off (#11353).
  • Fixed outdated intelligence scores and missing output speeds in the bundled catalog, such as Claude Fable 5.1 on OpenRouter and Vercel AI Gateway.
  • Fixed catalog refreshes that briefly hid available models and caused "Unknown model" errors. Codex models now stay available when ChatGPT's model list is slow or fails. Cursor variants, including long-context models, stay available when Cursor returns only its basic model list (#20720 by @lij113, #16554 by @gchai).

@oh-my-pi/pi-coding-agent

Breaking Changes

  • System prompt overrides and command templates now use Jinja-style syntax. Plain {{ variable }} placeholders and $1 arguments still work. To migrate Handlebars blocks and helpers, see the system prompt customization guide.
  • Subagents no longer start their own subagents by default because task.maxRecursionDepth now defaults to 1. To allow nesting again, set it to 2 or higher, or to -1 for no limit.

Added

  • Spotlight can rank through an auth gateway: set spotlight.url to <gateway>/v1/spotlight and STENCIL_API_KEY to the gateway token. omp auth-gateway stdio serves the route on the CLI's own Stencil login.
  • Added o2ctl mcp shell commands so agents can mount, inspect, reconnect, and unmount MCP servers at runtime; a server that needs OAuth opens its login page in Tern or your browser
  • Added /schedule <when> <prompt> to send a prompt later: after a duration (2h30m), at a clock time (14:05), or when your provider's usage limit resets (reset). /schedule lists scheduled prompts, /schedule cancel <id>|all cancels them, and the status line counts down to the next one. Scheduled prompts are kept when you quit and resume.
  • Added omp mv <source> <destination> to move a folder on the same filesystem along with its sessions, saved prompts and recaps. Close sessions in the folder before moving it.
  • omp toks now counts tokens for Gemma 3, Gemma 4 E4B, Qwen 2 / Xiaomi MiMo, MiniMax and Llama 4 / Meta Muse, and adds an offline Gemini 4 count.
  • Added omp debug profile|report|memory <pid> to debug a running session from another terminal. profile captures the main thread and all subagent workers over the same window (--seconds, default 10). Results are saved to ~/.omp/reports. Setting OMP_JITDUMP=1 makes the dev launcher write a JavaScriptCore jitdump so native profilers can name JIT frames.
  • o2ctl services now shows service status and recent logs, restarts services with their saved launch commands, and can unregister adopted services without stopping their processes.
  • Python eval kernels now reclaim memory after five unused turns when usage is above 2 GB, and prompt the agent to reset the kernel at 4 GB. On macOS, freed memory is returned to the system by default.
  • Tern agent and job management: tray cards are sorted by urgency, show failure reasons and offer Retry/Re-run actions. Live details can be expanded in the conversation. Finished background agents leave a receipt showing time, cost and lines changed. The card menu adds Steer…, Stop turn and Kill. A new Tape view (/hub) shows a timeline of all agents and jobs.
  • A draft that starts with an @agent chip is sent to that agent without switching views. In Tern, the composer shows the addressed agent and its state, and Esc clears the address.
  • Added tab.act(intent)/tab.expect(condition) for browser tabs and win.act/win.expect for computer-use windows, so the judge model can run multi-step navigation in one loop. These are controlled by act.enabled (default auto). Eval judge() also supports box questions that locate a target in an image.
  • ask can show quick yes/no questions as a swipeable deck of cards (<booldeck>) with images, SVG or Mermaid diagrams, plus skip and undo. ask forms also render Mermaid diagrams, and the terminal now displays <img> pictures.
  • Added the tui.codeFrame setting (off by default), which draws terminal code blocks between dashed lines labeled with the language (#20913 by @wapenshaw).
  • In Tern, the /model hub can assign an icon to a provider that has no logo. The icon is saved under providerIcons in models.yml. The model switcher also shows a Frontier chart that plots models by price against intelligence.

Changed

  • /restart now cuts off running work the way a crash does, so the relaunch picks up the interrupted turn and every running subagent, foreground or background, exactly like omp --restore.
  • MCP servers that connect, reconnect with new instructions, or disconnect mid-conversation no longer rewrite the system prompt; the agent learns of the change from a hidden notice before its next request, even mid-turn, so the prompt cache survives.
  • When a retry fallback can't read the primary model's server compaction, compaction uses the next configured method instead, so switching back no longer re-reads the full history (#21114 by @Mannan-Goyal).
  • After a fork or branch, the status line's cost starts from zero and shows the session's earlier spend in brackets, such as $0.42 [$3.10].
  • The agent no longer refuses related work as out of scope, removes old aliases only when replacing code, and tests every edge case the request names before finishing.
  • /resume shows compact results with highlighted matches, opens large histories faster, ranks matches better, and can group sessions by folder.
  • Improved @ completion: Tab picks the highlighted row, folder completion lists every entry, and the list no longer flickers while you type.
  • timeout in the bash tool now also kills processes left running by its command, except nohup programs, self-detaching daemons and timeout --foreground.

Fixed

  • An HTTP MCP server that answers resources/templates/list (or another resource/prompt listing) with 401/403 no longer puts omp into an endless OAuth refresh and re-attach loop; after one refresh the listing is logged and skipped, and the server stays connected (#21130).
  • /copy no longer lists empty assistant turns, such as a cancelled reply, that had nothing to copy (#20869)
  • Fixed mouse input in /settings and other fullscreen screens when tui.mouse is off.
  • Fixed session persistence: large sessions no longer make unnecessary temporary transcript copies, SQL- and Redis-backed sessions stay writable during rewrites, and starting several omp processes on one database no longer fails (#21102 by @joshuaswarren, #20740 by @sjawhar, #20743 by @sjawhar, #17968 by @sjawhar).
  • Saving settings no longer strips comments and formatting from a hand-edited config.yml (#11477, #21119 by @XYZ1024-alt).
  • Fixed model and provider issues: Claude reasoning_extraction refusals are no longer repeated after a resume, switching away from OpenAI after a remote compaction no longer fails, Anthropic compaction_content_mismatch errors no longer trigger useless retries, and Cursor sessions no longer compact too early (#21113 by @Mannan-Goyal, #20099, #20342 by @lemonleks, #15377, #20510, #20356 by @morali).
  • Ctrl+R no longer closes dialogs that are shown in place of the composer (#21072 by @Dangerboi).
  • The eval commit helper now runs hooks the same way git commit -m does (#21065 by @Dangerboi).
  • Commands no longer inherit the terminal's OSC7577_TOKEN (#21056).
  • --offline now keeps reads of X URLs on the active model's provider (#21058 by @Dangerboi).
  • Fixed MCP issues: connections to legacy Streamable HTTP servers and servers with empty GET listeners now work, and tool results keep images inline and save other binary content to files (#21053 by @ThaddeusJiang, #21079, #14598).
  • Fixed ask forms and dialogs: they now fit the terminal and scroll, and rows they push off screen go to scrollback (#20920 by @loishi, #20788 by @jaredlyon, #20816).
  • /rewind now opens on the cancelled prompt instead of an empty interrupted turn (#20867).
  • LSP now reports server exits instead of timing out, handles checkouts reached through symlinks, and lsp reload restarts TypeScript analysis (#19238, #20459 by @J4ck1e2000, #20402 by @alphastorm).
  • Fixed browser tool issues: query strings are hidden from relay status, sensitive headers are redacted in request(id), pages from multiple Chrome profiles are listed, named tabs attach correctly over app.cdp_url, ariaSnapshot({ diff: true }) returns diffs, and tab.requests accepts * globs (#20447, #19582, #20427 by @JamieJ5926, #20293 by @xiaolikt, #16621, #16622, #21007 by @H4vC).
  • Fixed isolated task merge-back failing on a root runtime lock (#12328, #20414 by @JamieJ5926).
  • RPC stdin now rejects oversized or invalid UTF-8 commands as parse errors (#20410 by @JamieJ5926).
  • Fixed grep output highlighting (#21090 by @JustasMasiulis).
  • Fixed Tern on phones, where All agents didn't open the agent hub, and copying a sent prompt in Tern now includes its images.
  • Fixed prompt-cache reuse after rewinds, branches, forks, clones and resumes (#21110, #16855, #18836, #20391 by @JamieJ5926).
  • Fixed slow selection movement on the /extensions ALL tab (#21101).
  • web_search on Parallel now respects site: paths and reports engines whose results were all out of scope (#21082).
  • Fixed memory retention from finished subagents, debug capture, stale file snapshots and fd on large trees. bash also limits traces of large scripts (#21030 by @sjawhar, #21050, #20982 by @sjawhar, #20983 by @sjawhar, #20981 by @sjawhar, #20882).
  • Fixed status line segments under built-in presets (#20911, #21014 by @hyeonggyu).
  • Fixed shell tool issues: long in-process utilities no longer stall other tools, fd … | head exits early, large outputs no longer stall, and ! commands that probe the terminal no longer hang for about 5 seconds (#21050, #10214, #19946 by @JamieJ5926).
  • Tool commands run inside bash now accept multiple values for array flags, validate paths after a cd, show array item fields in --help, and report parentToolCallId (#21045, #20271, #20288 by @koeria).
  • A CLI prompt that starts with /skill:<name> now runs the skill (#16506, #16502).
  • /review and diff views now work with reftable repositories, and /annotate//review check for newer PR revisions before reusing a cached diff (#16591, #20905 by @anatoli-tsinovoy).
  • Fixed restore: omp --restore restarts only subagents that were active in the last run, and interrupted ACP turns can be resumed (#16868, #20446 by @nick-maderight, #20400 by @JamieJ5926).
  • Fixed model discovery: Ollama models without tool support now use text tool calls, llama.cpp exposes decision models to the judge role, LiteLLM shows the correct reasoning levels, and a timed-out discovery no longer overwrites the cached model list (#21041, #20997, #11353, #20720 by @lij113).
  • Fixed models hub issues: thinking-level chips follow the symbol preset, and fallback chains list only chat-eligible models (#21016, #20897, #20907 by @koeria).
  • Extensions loaded by the compiled binary can now import autolearn/settings (#16454).
  • The todo reminder no longer automatically continues a turn that ends with a recommendation (#17253).
  • Fixed eval issues: on Windows, subagent calls that previously deadlocked now fail with an explanation, and eval starts even if the working directory was deleted (#18644, #16376).
  • Hindsight auto-recall now respects the server's 500-token query limit (#17787).
  • Fixed table charts with day-first dates and non-ASCII units (#16331).
  • The bash visualization now shows script shims as the command that ran (#19627).
  • Composer predictions now work on more reasoning models and reappear after a resume (#20992 by @shryu1994).
  • Wrapped diff rows in the git app now break at word boundaries (#21020 by @aleister1102).
  • Fixed subagent cost totals, workspace reuse, MCP tool views, and state display in the Agent Hub, HUD and tray (#21029 by @sjawhar, #21033 by @sjawhar, #21031 by @sjawhar, #21032 by @sjawhar, #20989 by @sjawhar, #20922 by @Xytronix).
  • Fixed service logs: progress-bar redraws are collapsed into one line, memory use is bounded, and logs are cleared at 25 MiB. CPU profiles also cover the whole capture.
  • Fixed edit patch handling and error messages.
  • Fixed background process handling: daemons are no longer killed by mistake, and cmd & servers keep running after omp exits in non-interactive modes (#20572, #20828 by @koeria).
  • A bash call that ends through exit or set -e now reports how it ended, and commands killed by a signal report the correct exit code (#18879, #21002 by @Bensonluo).
  • Sessions with missing images now show placeholders instead of failing (#20903, #20906 by @koeria).
  • The checkpoint tool description now explains that it creates conversation checkpoints, not Git checkpoints (#20230, #20404 by @JamieJ5926).
  • Collaboration guests keep earlier history, and joining a large session no longer closes the room (#20990 by @sjawhar, #17286).
  • Fixed selective commit summaries, hook variables, take(path) safety, and files that were moved and then edited (#20397 by @alphastorm, #20364, #20367 by @Eridanus117, #20036, #20221 by @JamieJ5926, #20298, #20308 by @koeria).
  • Paged reads of large SQLite tables no longer stall (#17554 by @Bensonluo).
  • Sessions saved with a web-search model selected now restore the default chat model (#17314, #20383 by @JamieJ5926).
  • A notice is now shown when auto-learn creates a skill (#20440 by @BadAd84).
  • omp --help now works without the native addon (#20733 by @Quantum-Quasar).
  • /usage now shows percentage-only Z.AI quotas as percentages (#9979 by @aleister1102).
  • The TUI no longer freezes on unresponsive filesystems or while streaming large edits with TTSR rules.
  • Tall SVG figures now fit on short SIXEL and iTerm2 terminals (#20977).
  • Lookups by session id now find Chrome side panel sessions (#20865).
  • Running tool cards keep updating across new turns (#11136, #20313).
  • On Linux, prompts no longer hang when systemd-logind doesn't respond (#20307).
  • Extension presenters now receive TTSR notices and todo reminders, and invalid context hook output is dropped and reported (#20994, #20910).
  • Codex auto-reset no longer uses another Team member's reset (#20619).

@oh-my-pi/pi-metaharness

Fixed

  • Fixed GitHub Copilot authentication when running with --no-gateway. The active credential is now passed as COPILOT_GITHUB_TOKEN instead of GITHUB_TOKEN, and tokens set explicitly with --env are no longer overridden (#20624 by @eggpeat).

@oh-my-pi/pi-mnemopi

Fixed

  • Fixed hosted embedding rebuilds looping forever when the server rejects an input as too long. The input is now clipped again and the rest of the batch still gets embedded. Over-limit errors are no longer retried, and large batches get a longer timeout (#20450).
  • Fixed memory stores failing to open, and embedding rebuilds stopping after a model change, when a memory has non-text content or no text ID. These memories are now skipped with a warning (#20613 by @sjawhar).
  • Fixed interrupted embedding rebuilds failing to resume when a stored embedding is missing its memory ID (#20613 by @sjawhar).
  • Fixed "database is locked" errors when opening a memory bank while another process is writing to it (#17968 by @sjawhar).

@oh-my-pi/pi-natives

Added

  • Added MessageCounter, which counts an agent message's tokens directly from its JavaScript object, counting tool-call arguments as their JSON.stringify text.
  • countTokens and MessageCounter can count tokens offline for more models: Gemma 3 and Gemma 4 E4B, Qwen 2–3.0 / Xiaomi MiMo (Encoding.Qwen2), MiniMax Text-01 through M3.x (Encoding.MiniMax), and Llama 4 / Meta Muse (Encoding.Llama4). Encoding.Gemini4 gives approximate, count-only results for Gemini 4 Argon, Hydrogen, Carbon and Neon.
  • Added EditStore.close(), which clears the store and ignores any writes made after it (#20981 by @sjawhar).
  • Commit creation now accepts a hookSession option, which passes the three OMP session variables to Git hooks without allowing arbitrary environment overrides (#20364, #20367 by @Eridanus117).
  • ShellRunResult now has an exited field that reports whether exit or set -e ended the command (#18879, #21002 by @Bensonluo).

Changed

  • Mermaid flowcharts and state diagrams with repeated edges render several times faster. Other flowcharts and state diagrams get smaller gains or no measurable change (#21097 by @loishi).

Fixed

  • Fixed Mermaid flowchart and state diagram edge and label placement. Repeated edges between two nodes no longer move their stems onto a box corner. Long labels entering a box from the left no longer cover the box border or arrowhead. Labels now move to the nearest clear spot along their edge when their default position would overlap other content (#21092 by @loishi, #20924 by @loishi).
  • Fixed standalone binaries failing to load pi_natives when another build of the same version starts at the same time and deletes its extracted addon (#20438).
  • SQLite lock protection now works under PRoot instead of warning that it is unavailable (#18421).
  • Word diffs in one-line edit previews now highlight whole words in Cyrillic, Greek, Arabic, Devanagari and other space-separated scripts, instead of single letters (#21036).
  • On Linux, PowerAssertion.start() and desktop application listing and launching no longer leave one idle thread per CPU behind the first time they are used (#20385 by @iliaal).
  • On Android/Termux, cleaning up leftover processes no longer fails after every turn (#20984, #20991 by @koeria).
  • On Linux, a PTY command waiting at a prompt is now detected when the shell polls the terminal before reading, as bash's timed read and BusyBox sh do (#20219).
  • The built-in grep now matches GNU grep more closely. Context separators appear between match groups across inputs, even with zero lines of context. With -z, counts, filenames and separators end with a NUL byte. In -P mode, \d matches only ASCII digits. In UTF-8 locales, POSIX classes recognize Unicode letters. If any locale named in the environment cannot be loaded, grep stays in the C locale. Locale-aware built-ins no longer crash on very long locale values that contain ; (#20986 by @sjawhar, #20574 by @sjawhar, #20927 by @sjawhar, #20900 by @sjawhar, #21027 by @sjawhar).
  • The built-in rg --null-data now uses NUL terminators consistently and finds matches anchored at the end of a record. --replace and --vimgrep no longer report a spurious empty match after each line (#20574 by @sjawhar).
  • The built-in sed now matches GNU sed when several w commands write to the same file. It still writes to every w destination if a close fails or processing stops on an error (#20957 by @sjawhar).
  • The built-in env, xargs and find -exec now resolve commands the way Linux does. Directories are reported as non-executable rather than missing, and an empty command name as not found. They refuse scripts whose #! interpreter is missing or not executable, and refuse a shell builtin name that PATH has only as a directory or non-executable file. A PATH entry they cannot search counts as permission denied. A relative #! interpreter is looked up from the working directory (#20930 by @sjawhar, #21025 by @sjawhar).
  • Shell read -t now honors its timeout even when input never blocks, and cancelling the command stops the read (#20795 by @itskaism).
  • On macOS, completions, spelling suggestions and autocorrection now respect the language of multilingual input. Autocorrection no longer changes words the spell checker accepts (#12475 by @aleister1102).

@oh-my-pi/snapcompact

Fixed

  • Fixed Nerd Font icons in terminal output and session titles forcing snapcompact to fall back to text compaction (#20999).
  • Fixed snapcompact rejecting an entire transcript when no single installed font covers every character, such as a mostly CJK transcript that also has a few Arabic, Hebrew, icon or symbol glyphs. Characters missing from the chosen font now show as ?, starting with the rarest, if they make up no more than 5% of the visible characters (#21004 by @Shizuku-Yume).

@oh-my-pi/pi-tui

Added

  • Added an opt-in codeFrame option (MarkdownOptions.codeFrame / MarkdownLook.codeFrame) that draws code blocks with dashed hairlines instead of ``` fence rows and shows the language on the top line. The native view ignores this option (#20913 by @wapenshaw).
  • The native renderer now shows blobs referenced by picker item and scope marks (mark.blob).

Fixed

  • Resizing or scrolling a long session with many edit diffs or grep results no longer re-highlights them in bursts, because the syntax highlight cache is now limited by size rather than by entry count.
  • Figures and images no longer render at half resolution on Retina iTerm2 before the window is first resized (#20979).
  • In rxvt, Shift+Insert/Delete/Home/End now register immediately and no longer swallow the next key typed (#21121).
  • A UI computation that throws an error now keeps reporting that error on later reads instead of returning an empty value, and one failing UI update no longer stops other pending updates (#20625).
  • On Ghostty, images in a resumed session's scrollback now appear instead of showing as blank rows (#20523).
  • Theme names that contain path separators are now treated as unknown themes and fall back to the default, so they can no longer load files from outside the themes directory (#20407 by @JamieJ5926).
  • Fullscreen mode now keeps your reading position when a terminal resize rewraps transcript text (#20976 by @camjac251).
  • Docked reports and prompts now shrink to fit when the dock is taller than the terminal, so their top edges stay visible (#20788 by @jaredlyon).

@oh-my-pi/pi-utils

Breaking Changes

  • Replaced the Handlebars-style prompt template engine with a strict Jinja2-subset engine that supports {% if %}, {% for %} and {{ value | filter }}. prompt.registerHelper, partials and {{{ }}} have been removed. Rendering an undefined value now throws unless the render is lenient. Interpolated values are no longer reformatted.

Added

  • Added prompt composition tools: prompt.fragment, prompt.doc, named {% block %} anchors, empty {% slot name %} anchors and prompt.filter for custom template filters. Templates also support sep for separators between loop items and ?? for missing-value fallbacks. The ?? fallback treats 0, false and "" as real values.
  • Added an xterm-style convertEol option to the vterm terminal. With it on, each \n also returns the cursor to column 0. Also added discardScrollback() for readers that copy rows out as they scroll off the screen.
  • Added initializeSqliteSchema(db, apply) for SQLite schema initialization that is safe to run repeatedly. It takes a write lock only when the schema needs to change (#17968 by @sjawhar).

Fixed

  • Fixed recovery from a damaged store so that readable input history, session titles and recaps are kept, including records between two damaged regions (#16144 by @jchanghong023).

@oh-my-pi/pi-wire

Added

  • Added the TSP actions.swipe prop. Dragging a node past the threshold toward a side that has an action throws the node off in that direction and sends that action.
  • Added TspPickerMark.blob, a square picture that a picker mark shows in place of its icon and initials.
  • Added the TSP picker option flow: "up" for bar searches, which lists entries upward from the bar with the first item in the bottom row. Also added the completion option: the text appended to the query when the selected item is accepted, shown dimmed after the query in the bar.
  • Added open and reveal on agent rows to unfold a row inline as a thread, and status on md marks for fleet mention chips.
  • Added the Tape timeline. An omp.tape column (start, now, follow) holds omp.tape.lane columns (ref, name, kind, status, meta), and each lane holds omp.tape.span rows (t0, t1, state of run/ok/err, label, target).
  • Added hub on omp.tray. For hosts that don't show a tray, an agents.open action on the tray opens the agent hub.

What's Changed

  • fix(builtins): read grep's letter classes as glibc does in a UTF-8 locale by @sjawhar in #20900
  • fix(task): stop progress frames resurrecting settled subagents in the observer registry by @Xytronix in #20922
  • fix(natives): move Mermaid edge labels off other labels and route marks by @loishi in #20924
  • fix(builtins): match grep -P's \d against ASCII digits alone, as GNU grep by @sjawhar in #20927
  • fix(shell): refused a directory and a script whose #! interpreter is missing or not executable, as execve does by @sjawhar in #20930
  • fix(builtins): sed closes its w files in reverse open order, and writes all of them on an error, as GNU sed 4.9 does by @sjawhar in #20957
  • fix(tui): keep the fullscreen reading position on resize by @camjac251 in #20976
  • fix(session): free and close a session's edit stores when it releases them by @sjawhar in #20981
  • fix(coding-agent): free an evicted raw SSE debug record at once by @sjawhar in #20982
  • fix(mcp): close a session's tool scope when the session is disposed by @sjawhar in #20983
  • fix(builtins): separated grep's context groups of different inputs by @sjawhar in #20986
  • fix(activity): keep the first line of a read that starts at a line boundary by @sjawhar in #20989
  • fix(collab): link each entry a guest gets to an entry it holds by @sjawhar in #20990
  • fix(utils): keep readable rows between damaged SQLite regions during salvage by @jchanghong023 in #16144
  • fix(coding-agent): bound paged SQLite row counts with the listing's probe cap by @Bensonluo in #17554
  • fix(coding-agent): show real tool output of cut-short Cursor turns after a rebuild by @morali in #20356
  • fix(commit): pass typed session metadata to Git hooks by @Eridanus117 in #20367
  • fix(coding-agent): a saved web-search runner no longer restores as the session model by @JamieJ5926 in #20383
  • fix(coding-agent): inject the context notebook at its journal position by @JamieJ5926 in #20391
  • fix(commit): list deselected agent edits as left out, not unrecorded by @alphastorm in #20397
  • fix(coding-agent): report a signal-killed ACP terminal as 128 + signal by @JamieJ5926 in #20400
  • fix(ai): recognise context overflow from the provider error code by @JamieJ5926 in #20401
  • fix(lsp): open and check files in another checkout against its own root by @alphastorm in #20402
  • fix(ai): a 402 whose body says a credit balance is required is a usage limit by @JamieJ5926 in #20403
  • fix(coding-agent): checkpoint summary describes a conversation checkpoint, not git by @JamieJ5926 in #20404
  • fix(tui): a theme name with a path separator no longer loads a file outside the themes directory by @JamieJ5926 in #20407
  • fix(autolearn): surface a capture skill mutation to the session by @BadAd84 in #20440
  • fix(coding-agent): label ACP shutdown aborts as interrupted turns by @nick-maderight in #20446
  • fix(builtins): match ripgrep and GNU grep output under rg --null-data and grep -z by @sjawhar in #20574
  • fix(ai): keep long turns cache-reachable when an Anthropic thread expired by @Phantasma98 in #20606
  • fix(mnemopi): opened the store past a memory row whose content is not text by @sjawhar in #20613
  • fix(ai): drop created_by from every replayed Responses item by @sjawhar in #20617
  • fix(metaharness): forward COPILOT_GITHUB_TOKEN in direct-auth runs by @eggpeat in #20624
  • fix(ai): keep declared dotted tool names in replayed openai-completions history by @joshuaswarren in #20633
  • fix(catalog): prevent official ChatGPT /models fallback and abort timed-out discovery by @lij113 in #20720
  • fix(session): kept SQL and Redis sessions saving entries recorded during their own rewrite by @sjawhar in #20740
  • fix(coding-agent): scroll ask form question text with Up before leaving the question by @jaredlyon in #20788
  • fix(shell): stopped read of endless input at its timeout and on cancel by @itskaism in #20795
  • fix(coding-agent): left service descendants alone when an untagged process sits between by @koeria in #20828
  • fix(shell): bounded the trace of scripts read at runtime by @roboomp in #20884
  • fix(review): revalidate cached forge diffs by revision by @anatoli-tsinovoy in #20905
  • fix(ai,agent): degrade unresolved blob:sha256 image refs to text placeholders before outbound serialization by @koeria in #20906
  • fix(model-hub): fallback chains accept non-chat models by @koeria in #20907
  • fix(collab): kept guests joining a busy session from ending the room by @roboomp in #17288
  • fix(ai): handle incomplete Z.AI quota meters by @aleister1102 in #9979
  • fix(natives): resolve macOS word language via text orthography, not the checker default by @aleister1102 in #12475
  • fix(catalog): keep cached Cursor rich lanes when AvailableModels fails transiently by @gchai in #16554
  • fix(utils,ai,coding-agent,mnemopi): serialized SQLite schema setup and stopped writing a current schema on open by @sjawhar in #17968
  • perf(cli): keep --help addon-free by decoupling CLI_THINKING_LEVELS from pi-catalog/models by @Quantum-Quasar in #20733
  • refactor(coding-agent): shared tab.diffScreenshot and request filter across browser backends by @H4vC in #21007
  • feat(catalog): add Verda provider by @EzgiTastan in #19496
  • refactor(coding-agent): forward worker RPC proxy members through remoteClass by @H4vC in #21010
  • fix(catalog): read LiteLLM reasoning_effort_levels from deployment model_info by @H4vC in #21009
  • chore: remove unused modules by @H4vC in #21011
  • fix(ci): restore green main by @H4vC in #21012
  • fix(coding-agent): sized figures to the rows above the composer by @roboomp in #20980
  • fix(bash): answer terminal queries on the user-shell PTY by @JamieJ5926 in #19946
  • fix(commit): a bare take(path) refuses pre-existing and other agents' lines by @JamieJ5926 in #20221
  • fix(tui): kept throwing computeds from caching undefined by @roboomp in #20630
  • fix(session): resolved chrome side panel sessions by explicit id by @roboomp in #20868
  • fix(tui): restored iterm2 cell size in device pixels by @roboomp in #20985
  • fix(natives): detected pty prompts waiting in poll or select by @roboomp in #20223
  • fix(tools): honor shell cwd for tool commands and bind array flags greedily by @koeria in #20288
  • fix(commit): adopt a staged git mv's shared-index entry in a selective commit by @koeria in #20308
  • fix(natives): bounded login1 inhibitor call so prompts no longer hang by @roboomp in #20309
  • fix(tui): cleared completed tool intents from the working row by @roboomp in #20316
  • fix(mnemopi): recovered hosted embeddings from over-limit inputs by @roboomp in #20453
  • fix(coding-agent): matched codex reset credits to the team member, not workspace by @roboomp in #20622
  • fix(natives): derive Linux boot time when /proc/stat is unreadable by @koeria in #20991
  • fix(tui): presented ttsr and todo reminder notices as event blocks by @roboomp in #20996
  • feat(tui,coding-agent): draw code fences as dashed hairlines behind tui.codeFrame by @wapenshaw in #20913
  • fix(coding-agent): kept todo reminder off recommendation-closed rounds by @roboomp in #17256
  • fix(eval): failed fast on windows python tool requests behind a cell by @roboomp in #18645
  • fix(shell): drew executed script files by their calling command by @roboomp in #19630
  • fix(extensions): bundle autolearn settings subpath in standalone builds by @JamieJ5926 in #19942
  • fix(tui): read day-first dates in table chart cells by @JamieJ5926 in #19958
  • fix(hindsight): cap auto-recall queries at the server's token limit by @JamieJ5926 in #19968
  • fix(browser): attach only the tabs a matcher names, so an unnamed hung tab cannot block a named match by @JamieJ5926 in #19975
  • fix(eval): started kernels after the session cwd was deleted by @roboomp in #16382
  • fix(coding-agent): applied snapshot options to browser frame ariaSnapshot by @roboomp in #16627
  • fix(coding-agent): kept vibe-mode tool schemas in /tan clones by @roboomp in #16856
  • perf(natives): run Linux D-Bus calls on the shared portal runtime instead of zbus::blocking by @iliaal in #20385
  • fix(cli): expanded positional skill prompts by @roboomp in #16507
  • fix(vcs): added reftable diff cli fallback by @roboomp in #16601
  • fix(session): preview skill invocations in session picker by @roboomp in #16504
  • fix(task): scoped subagent restoration to the previous process by @roboomp in #16869
  • fix(xfs): kept rejected entries' paths out of a walk's arena by @roboomp in #21052
  • feat(coding-agent): added a provider icon picker to the Tern /model hub by @H4vC in #21060
  • fix(tui): restore composer predictions on session resume by @shryu1994 in #20992
  • fix(agent): covered a pre-/clear kept tail in the next compaction by @sjawhar in #20993
  • fix(coding-agent): mark bash calls that exit or errexit cut short by @Bensonluo in #21002
  • fix(snapcompact,coding-agent): print glyphs no shared font covers as ? instead of dropping snapcompact by @Shizuku-Yume in #21004
  • fix(coding-agent): arm the status clock on startup and refresh the checkout when a preset newly shows pr by @hyeonggyu in #21014
  • fix(shell): allow the c_char-to-u8 cast on unsigned-c_char platforms by @hyeonggyu in #21017
  • fix(tui): wrap git diff rows at word boundaries instead of splitting mid-word by @aleister1102 in #21020
  • fix(shell): looked up an empty name, a builtin's name held by a directory and a #! interpreter as execve does by @sjawhar in #21025
  • fix(builtins): looked locale values up as GNU does, and read grep's locale as C where a category cannot be loaded by @sjawhar in #21027
  • fix(task): counted the subagent tree cost by the root session id by @sjawhar in #21029
  • fix(mcp): closed a worker's tool views on main when the worker exits by @sjawhar in #21031
  • fix(mcp): gave a revived tool view back only its own grants by @sjawhar in #21032
  • fix(task): stopped a refused same-id subagent launch from changing the agent that owns the id by @sjawhar in #21033
  • fix(diff): kept non-latin words whole in word diffs by @roboomp in #21039
  • fix(coding-agent): mapped ollama tools capability to supportsTools by @roboomp in #21044
  • fix(coding-agent): linked tool commands to bash and listed item fields by @roboomp in #21046
  • docs(browser): corrected claim that idle webkit tabs draw nothing by @roboomp in #21100
  • fix(coding-agent): resolved /extensions tool paths once per session by @roboomp in #21104
  • fix(mcp): kept http sessions when the optional get listener ends by @roboomp in #21080
  • fix(web-search): kept in-scope parallel results and reported scope misses by @roboomp in #21083
  • fix(coding-agent): restore syntax highlighting for single-file grep by @JustasMasiulis in #21090
  • fix(tui): ended rxvt shift keys at the dollar suffix by @roboomp in #21123
  • fix(coding-agent): kept prompt-cache affinity when branching by @roboomp in #21118
  • fix(browser): list and adopt pages from every running relay by @xiaolikt in #20293
  • fix(session): handed off before a cross-provider switch after remote compaction by @lemonleks in #20342
  • fix(coding-agent): bound RPC input records and refuse non-UTF-8 ones by @JamieJ5926 in #20410
  • fix(coding-agent): patch-mode merge-back no longer deletes a root untracked file the parent does not hold by @JamieJ5926 in #20414
  • fix(coding-agent): redact credential header values in browser request(id) by @JamieJ5926 in #20427
  • fix(natives): kept concurrently starting builds' embedded addons by @roboomp in #20439
  • fix(browser): redacted relay open redirect queries by @roboomp in #20449
  • fix(lsp): report TypeScript server exits and recover on reload by @J4ck1e2000 in #20459
  • fix(ai): match semantically equivalent JSON in OAuth refresh CAS and stop self-lease retry loop by @noahgaertner in #20602
  • fix(coding-agent): skipped the empty interrupted turn in terminal /rewind by @roboomp in #20871
  • fix(mcp): fall back to the legacy handshake after HTTP 422 by @ThaddeusJiang in #21053
  • fix(ai): scope per-model rate-limit blocks to the model, not the whole login by @Xytronix in #21057
  • fix(coding-agent): kept offline X reads on the session provider by @Dangerboi in #21058
  • fix(coding-agent): unset osc7577 token from the os environment by @roboomp in #21062
  • fix(vcs): ran helper commit hooks as git commit -m does by @Dangerboi in #21065
  • fix(catalog): ignored litellm group-info default tool flag by @roboomp in #21069
  • fix(coding-agent): ignored Ctrl+R while a dialog holds the composer's place by @Dangerboi in #21072
  • fix(agent): kept message counter hooks from pinning their Tokenizer by @sjawhar in #21089
  • docs: correct /branch and transcript rewind session semantics by @AbyssSkb in #21096
  • perf(natives): sped up Mermaid flowchart edge routing by @loishi in #21097
  • fix(ai): classified relayed socket failures as transient by @Maziar123 in #21111
  • fix(coding-agent): keep other models' reasoning out of a resumed session after a reasoning_extraction refusal by @Mannan-Goyal in #21113
  • feat(coding-agent): keep compaction readable by the primary while a retry fallback stands in by @Mannan-Goyal in #21114
  • fix(settings): kept config.yml comments when saving settings by @XYZ1024-alt in #21119
  • fix(ai/devin): keep Gemini thought signatures and replay them signed by @roboomp in #19843
  • fix(coding-agent): kept output above an open ask form in terminal scrollback by @loishi in #20920
  • fix(natives): kept Mermaid stems off box corners and sized short label segments by @loishi in #21092
  • perf(session): check publish freshness before staging the temp file by @joshuaswarren in #21102
  • fix(coding-agent): skipped empty cancelled replies as /copy targets by @roboomp in #20872
  • fix(mcp): kept catalog listings inside the credential refresh recovery by @roboomp in #21132
  • fix(coding-agent): removed the dead empty-turn label from /copy by @H4vC in #21134

New Contributors

Full Changelog: v19.3.0...v19.4.0

Don't miss a new oh-my-pi release

NewReleases is sending notifications on new releases.