github can1357/oh-my-pi v18.22.2

one hour ago

@oh-my-pi/pi-ai

Added

  • Added the native Kiro provider: sign in with AWS IAM Identity Center, AWS Builder ID, Google, GitHub, or a Kiro API key (KIRO_API_KEY), stream responses with reasoning, tool calls, and images, and report Kiro credits in /usage (#18955 by @Xytronix, based on #14215 by @ajdiyassin)
  • Added a definitive option to OAuthError; isDefinitiveOAuthFailure now takes the error object and disables a credential marked definitive without matching its message (#18955 by @Xytronix)
  • buildAnthropicSearchHeaders takes extraBetas, request-specific betas sent beside the web search beta (#18125 by @will-bogusz)
  • Added omitDemotedReasoning to StreamOptions: an Anthropic request leaves out other models' reasoning that it would otherwise replay as text, and a refused request reports how many such blocks it carried in demotedReasoningBlocks (#10407) (#17610 by @will-bogusz)

Fixed

  • Fixed shutting down or cancelling an omp session making every other session sharing the agent directory see its OAuth accounts as depleted for 5 minutes; still-valid tokens are also served during shutdown (#19607)
  • OAuth accounts refreshed through an auth broker keep their stored routing metadata (such as an API endpoint) in the key built for the request, instead of losing it after the first refresh (#18955 by @Xytronix, based on #14215 by @ajdiyassin)
  • Fenced (```thinking) reasoning with very long unbroken lines no longer slows down as it streams (#19493 by @H4vC)
  • Fixed Anthropic requests that replay a signed server-compaction block still asking for a message thread, which the API refuses (thread_unsupported_request), so every such request first paid a rejected round trip before resending without the thread (#19473 by @alphastorm)
  • Anthropic requests whose connection drops before any response now say how long after the request started it dropped and whether the request body was still uploading or had all been written to the socket, with its size, instead of a bare "Connection error." (#18624 by @will-bogusz)
  • Fixed Anthropic requests dropping the reasoning of earlier non-Claude turns signed in under another credential, or kept through a compaction; it is now replayed like other models' reasoning (#7241) (#17610 by @will-bogusz)

@oh-my-pi/pi-catalog

Added

  • Added Kiro to the model catalog with automatic discovery of every model available to the signed-in Kiro account (#18955 by @Xytronix, based on #14215 by @ajdiyassin)
  • Added Factory Droid's Claude Fable 5.2, Gemini 4 Carbon (with its launch credit promotion, half the input rate until 2026-12-01) and Kimi K3.1 Pro, each listed once the account's feature flag enables it, and GPT Image 2.6 and GPT Image 2.6 Flare ahead of GPT Image 2.5 in the image role's Factory defaults (#19191 by @will-bogusz)
  • Added writeModelCacheAsync() and forEachInSlices(): model refreshes now build and cache discovered models in slices that yield to the event loop; writeModelCache() returns its outcome and no longer rewrites a provider whose rows are unchanged

Changed

  • readModelCache() parses a payload once per process: cache files holding identical rows return the same shared row objects

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

Added

  • Computer el.setValue(75) now writes the number as "75" instead of refusing a non-string; NaN, Infinity, booleans and objects are still refused, as are a whole number past 2^53 and a number that prints with an exponent, which are passed as text in digits instead (#19405 by @will-bogusz)
  • Added a report of native windows to browser results on macOS for visible managed browsers, spawned Chromium browsers and a loopback relay: a <select> menu, colour or date picker, or a print, save, sign-in, passkey or permission sheet or bubble a call raised over its tab is named with its computer.window() id while the browser's tab list shows that tab in front of its window, by the next call when it shows just after the call returned, and on failed calls too; connected CDP endpoints, remote relays and page-backed popup windows are excluded (#18925 by @will-bogusz)
  • Added Kiro as a built-in provider: run /login kiro, pick Identity Center, Builder ID, or an API key, and choose a discovered kiro/<model-id> model. Each /login kiro adds an account (#18955 by @Xytronix, based on #14215 by @ajdiyassin)
  • Added Google and GitHub to /login kiro: approve a one-time code at app.kiro.dev, then sign in with that account (#18955 by @Xytronix, based on #14215 by @ajdiyassin)
  • /usage and omp usage now show Kiro credits: the monthly plan credits with their reset date, active bonus credits with their expiry, and overage credits and charges when overage is enabled (#18955 by @Xytronix, based on #14215 by @ajdiyassin)

Changed

  • Model registries in one process (SDK embedders, tests) now share discovered-model builds, so refreshing another registry skips rebuilding models an earlier one already built

Fixed

  • Fixed the UI freezing briefly when a prompt is submitted: prompt history is now written to disk in the background (within 100 ms, and on exit) instead of on the Enter keystroke
  • Fixed the UI freezing while discovered models from large provider catalogs are merged: the merge now runs in slices that yield to the event loop
  • Fixed closing omp's headless browser taking about 7 s when Chromium never finishes a graceful shutdown (seen with Chrome for Testing 150 on macOS 27): a browser on an omp-created profile is now killed at once
  • Failed computer runs retain text and screenshots already produced in JavaScript and Python Eval, so agents can inspect partial actions without losing the error; direct computer calls also show the failure's name and message alongside partial output (#19100 by @will-bogusz)
  • Fixed Exa and Firecrawl web searches silently falling back to their keyless public endpoints when a configured credential failed to resolve (for example a failing !command); they now report the credential error
  • Fixed eval cells being able to call yield (directly or through xd://yield) without finishing the delegated task; eval now rejects yield and points to the direct tool (#19470 by @alphastorm)
  • Fixed service ready.log and wait patterns not matching ^ and $ at line boundaries after earlier output (#19471 by @alphastorm)
  • Fixed the shell's stat, diff and find builtins ignoring TZ when printing file times; find -ls now prints times in the shell's time zone instead of UTC, and find -newermt reads dates like Nov 15, 2023 in the shell's time zone (#19482 by @alphastorm)
  • With TTSR rules active, large write and edit calls no longer slow down as their arguments stream (#19494 by @H4vC)
  • Fixed /commit and eval commit creating a single-parent commit during a merge; committing now refuses while a merge, cherry-pick, revert, rebase or git am is in progress or the index has unresolved conflicts (#19474 by @alphastorm)
  • Fixed the apply_patch tool description calling it a shell command and forbidding absolute paths (#19325, #19468 by @alphastorm)
  • Fixed the shell's rg builtin ignoring --glob patterns that contain a slash (#19476 by @alphastorm)
  • Fixed eval commit only(...) failing when one of its paths or globs matched no changed file; unmatched ones are now reported (#19472 by @alphastorm)
  • Fixed a Tern browser block answering every later browser call with "Tab is busy: another call on this tab is still running" after a call whose page evaluation never returned, such as one cut off by a redirect; such a call now ends at its time limit or when cancelled, and the tab takes the next call
  • Fixed the browser tool reporting a JavaScript confirm or prompt as still open, and failing page calls on it, after the user clicked it away or another CDP client answered it (#19481 by @will-bogusz)
  • Fixed computer setValue on a <select> in Chrome or an Electron app on macOS failing with an empty list of options; it now chooses the option the value names (#19224 by @will-bogusz)
  • A relay tab is no longer closed when another extension's frame, such as a password manager's autofill menu that undoes the relay clearing it, keeps Chrome refusing omp: the call fails saying what holds the tab, the tab stays open as the user left it, and the next call reattaches to it (#19178 by @will-bogusz)
  • Fixed the computer tool telling the model that only an X11 takeover can end with nothing sent because the user kept typing; a macOS takeover now waits for the user's pause too and reports UserIntervened the same way (#19296 by @will-bogusz)
  • When the browser relay hides another extension's frame in a tab omp drives (a password manager's inline menu or save card), the call that ran into it, or a later one on that tab, now names the frame's page, the extension's id and the page's own title, and says the frame is hidden for the user too (#19001 by @will-bogusz)
  • Anthropic web search now passes site:-scoped queries to Claude with the domain and path still in the text, and tells Claude to always search, so those lookups and queries it thought it could answer from memory no longer fail with "returned no sources" (#18125 by @will-bogusz)
  • Anthropic web search on models with a refusal fallback (Opus 5 and 5.5, Sonnet 5.5, Fable 5) has Anthropic retry a query the safety classifier declines on another Claude model, and reports a refusal or a failed search (too_many_requests, …) by name instead of "returned no sources" (#18125 by @will-bogusz)
  • Subagents without an output schema (including eval agent() calls without schema) no longer get a yield tool; their final message is the result.
  • A yield without data no longer uses the subagent's last message as the result; it only finalizes incremental sections that were already submitted.
  • A computer key press that opens a macOS popup button's or menu button's menu in the background now fails listing the items and naming the press or click that chooses one, instead of leaving the menu open with your keyboard (#19179 by @will-bogusz)
  • Fixed Claude not seeing the reasoning of earlier Codex, Kimi, Grok and other non-Claude turns after a model switch, including turns kept through a compaction; it now gets that reasoning as text. When Claude refuses a turn with Refusal (reasoning_extraction) because of that carried reasoning, the turn is retried once without it, and the session stops sending it to Claude (#7241) (#17610 by @will-bogusz)
  • After an Anthropic refusal, later turns no longer resend the refusal text with the tool calls it stopped: those calls now replay as "not executed" only, so one reasoning_extraction refusal stops making every following turn of the session likely to be refused too (#19419 by @flosrn)
  • Fixed selective commits skipping updated submodule pointers; existing initialized gitlinks can now be reviewed and explicitly selected without committing changes inside the submodule (#19556 by @kim-dali)
  • Fixed git reads such as /commit's status scan hanging when a background git process kept the output pipe open (#19478 by @alphastorm)
  • Fixed the browser falling back to Chromium on the first launch of a new WebKit engine build on macOS: the WebKit host now gets 60 seconds instead of 10 to answer its greeting while macOS scans the engine's binaries and libraries (#19423 by @shgew)
  • Fixed --continue opening a new empty session when the terminal's last session was started in another directory and closed before its first message; it now resumes the current directory's newest session (#19495).
  • Fixed a rejecting pre-commit hook's stdout (e.g. the pre-commit framework's per-hook report) missing from the error raised by the eval commit namespace and omp commit (#19449)
  • /commit now shows the subject a commit-msg hook wrote onto the commit, instead of the subject from before the hook ran (#19448 by @eggpeat)
  • ^model references followed by sentence punctuation now register their model agent instead of remaining literal (#19445 by @yuzu-octopus)
  • Selective commits in sparse checkouts no longer report paths outside the cone as unstaged deletions to commit hooks (#19453 by @yuzu-octopus)
  • Custom providers pointing at the Zhipu Coding Plan endpoint now retry at the Beijing-time quota reset instead of waiting eight hours too long (#19446 by @yuzu-octopus)
  • /copy now copies what a mid-turn out:// reply showed, instead of the reply tool's own "Shown to the user." result, and lists the reply's code blocks in the turn's blocks (#19551 by @bannert1337)
  • Fixed tools enabled during goal mode becoming unavailable after leaving it (#19514 by @yuzu-octopus)
  • Fixed the status-line usage segment showing another account's quota for multi-credential API-key providers such as opencode-go; it now follows the credential row the session router actually serves from (#19456) (#19492 by @thekitaev).
  • Fixed Objective-C message results and arm64 retain-register data flow in Ghidra analysis of Mach-O binaries, including previously analyzed cache-extracted frameworks (#19558 by @shgew).
  • With a modal dialog open, browser fill, type and press aimed at a field behind it now fail naming what covers it, as click does, instead of typing into the dialog's button and reporting success (on Chromium tabs and Tern tabs without native DOM reads); press also refuses a disabled element (on Chromium tabs and Tern tabs without native DOM reads), and Chromium drag refuses a covered start or end (#19524 by @will-bogusz)
  • Fixed RPC login refusing providers with an at-your-own-risk warning (antigravity-cli, google-antigravity): the warning now reaches the host as an extension_ui_request input, and login continues on "yes" and cancels on anything else (#19523)
  • On Linux, file watching for language servers no longer puts an inotify watch on every directory under node_modules and .git/objects, which could use up the system's inotify watch limit and keep other programs such as systemd from adding watches (#19459)
  • /restart now re-execs through the launcher omp was started by, so an open session moves onto an upgraded binary instead of re-running a retained old install (#19529 by @yuzu-octopus)
  • RPC hosts now always receive a terminal agent_end after an over-quota 429: usage-limit bookkeeping is bounded so a stalled usage report can no longer hold the event (#19411, #19417 by @yuzu-octopus)
  • Rex and other OSC 7501 terminals no longer play a success sound mid-run when a stale agent end arrives after another run has opened (#17307, #19418 by @yuzu-octopus)

@oh-my-pi/pi-natives

Added

  • TtyWriter now works on Windows consoles: it writes off the JS thread in 16 KiB WriteFile chunks, restores the UTF-8 console code pages that child processes change, and stop() cancels a blocked write
  • Added isolateThreadStartsFromConsole(), which keeps a Windows console whose terminal stopped reading from blocking new threads in the process

@oh-my-pi/pi-tui

Added

  • ui.loop-blocked log records now name what held the event loop (cause, causeShare, top), sampled by an always-on profiler; PI_LOOP_SAMPLER=0 turns it off

Changed

  • On Windows, terminal output is written off the JS thread, so input and rendering stay responsive while the console drains a large repaint

Fixed

  • On Windows, omp no longer freezes when the terminal stops reading its output (a hung Windows Terminal, a paused ssh client); it keeps running and catches up once the terminal reads again

@oh-my-pi/pi-utils

Added

  • Added readBoundedBody and readBoundedJson for reading HTTP response bodies with a size limit, with an optional signal so a stalled peer cannot outlive the caller's deadline (#18955 by @Xytronix)

What's Changed

  • feat: native Kiro provider (IdC, Builder ID, Google/GitHub sign-in, /usage) by @Xytronix in #18955
  • fix(computer): retain output and screenshots when a run fails by @will-bogusz in #19100

Full Changelog: v18.22.1...v18.22.2

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

NewReleases is sending notifications on new releases.