Skip to content

deps(deps-dev): bump ruby_llm from 1.16.0 to 2.2.1 - #263

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/ruby_llm-2.1.1
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/bundler/ruby_llm-2.1.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Bumps ruby_llm from 1.16.0 to 2.2.1.

Release notes

Sourced from ruby_llm's releases.

RubyLLM 2.2.1 caps how many tool calls one answer may run, keeps a tool that already acted from running twice when another raises, fixes a deadlock Postgres apps could hit while a reply saved, and fixes Gemini batches, judgments, file stores and the generated question cards.

bundle add ruby_llm --version 2.2.1

Already on 2.2? Run bundle update ruby_llm. No schema or code changes are needed.

New

  • Cap the tool calls one answer may run. A model can ask for hundreds of tool calls in a single response. with_tool_options(calls: 50) runs the first 50; the rest get an error telling the model to continue a few calls at a time, so they never run and never ask for approval. Set it on an agent with tool_options rounds: 25, calls: 50, and watch it with the tool_calls_capped.ruby_llm event. It's off by default. By @​crmne. (#1668)

Fixed

  • A tool that already acted doesn't run again when another one raises. When a tool raised during complete on a persisted chat, the finished results of its round were deleted, so the model called a tool that had already sent the email or created the record a second time. Finished calls now keep their results and the rest are closed as unfinished, as when a chat is cancelled. By @​crmne; thanks @​LuisFelipeRisch. (#1660, #1664)
  • No more deadlocks on Postgres when a reply saves. With acts_as_message touch_chat: true, saving an answer wrote the chat row twice in one transaction, so Postgres locked every row the chat points to, such as its account or schedule. App code that locked one of those rows and waited on another could deadlock with a reply. The answer now saves with one write to the chat, and the chat is touched right after, in a transaction of its own, so its after_touch and after_commit callbacks still run. By @​crmne. (#1655)
  • Keep a message sent while another job starts a reply. A message sent with ask_later just as another process claimed the chat could be saved with no reply. It is now queued and answered when that run ends. By @​yorzi. (#1646, #1647)
  • Record what a failed judgment cost. A judgment whose answer couldn't be parsed was recorded with no tokens and no cost, although the provider billed it. The usage it reported is now saved first, on System One, OpenRouter and OpenAI judgments alike, and the parse error still reaches your code. By @​crmne; thanks @​josh-sanders. (#1614, #1658)
  • Approve a tool call without loading the whole chat. approve on a persisted chat used to build the chat and its transcript just to record the decision. It now records it straight on the tool call. By @​costajohnt; thanks @​stephanmoneybird. (#1644, #1645)
  • Read the current version of a file. A folder file store could show the text it had converted from an earlier version of a file with the same size and modification time, and mark the new version as read. Converted text is now tied to the exact bytes it came from. By @​yorzi. (#1648, #1656)
  • Convert a file by the type it was stored with. A file stored with an explicit type and no telling extension, such as captions saved as application/x-subrip, now goes to that type's converter. By @​yorzi. (#1649, #1652)
  • Keep every type of a union in Gemini batches. A schema field such as ["string", "integer", "null"] lost every type after the first, or reached Gemini in a form it rejects, when the chat went through RubyLLM.batch. Batches now send it the way Google's own SDK does. By @​crmne; thanks @​yorzi for the report and the approach. (#1665, #1667)
  • Submit list answers from the generated question cards. A question with a free-form list field, such as tags, lost its answer when submitted from the chat UI. Regenerate the chat UI to pick up the fix. By @​yorzi. (#1650, #1653)

Thanks

Thanks to @​yorzi, @​costajohnt, @​LuisFelipeRisch, @​stephanmoneybird, and @​josh-sanders for the fixes and reports in this release.

Full changelog: crmne/ruby_llm@v2.2.0...v2.2.1

RubyLLM 2.2.0 lets a model run the code it writes in a sandbox on your own servers, teaches it your workflows with skills, keeps files and long tool results out of the conversation, and makes persisted chats safe to run from several processes at once. Four more providers join, bringing the built-in total to twenty-three.

bundle add ruby_llm --version 2.2.0

Upgrading from 2.1? Require 2.2 in your Gemfile, run bin/rails generate ruby_llm:upgrade, and run the migration before deploying. 2.2 removes and renames some names, listed under Changed in 2.2, and the upgrade guide gives the exact replacement for each. Applications on 2.0 upgrade to 2.1 first. See What's New in 2.2 for examples.

New

  • Let a model run code on your own servers. with_code_execution gives the model one tool that runs Ruby, Python, JavaScript, or shell in a sandbox built on the mxc gem, using Bubblewrap on Linux and Seatbelt on macOS. It needs mxc 0.4.1 or later, so run bundle update mxc if you already use it. Files the code writes come back as attachments, and runs emit an event, write a usage row, and report their progress. By @​crmne, @​stephankaag, and @​yorzi. (93f582e0, 5209fa51, #1227, #1233, #1285, #1487, #1552, #1596)
  • Widen a sandbox one call at a time. escalate_to: lets the model ask for a named sandbox for a single call, with a reason. The call waits for approval like any other, and nothing is remembered for the next one. By @​crmne. (797814b4)
  • Teach the model your workflows with skills. with_skills loads folders in the open Agent Skills format only when a task needs them, and their scripts run in the sandbox. The skill gem finds and installs them, with gem exec skill add, and installs RubyLLM's own skill for your coding assistant. By @​crmne and @​yorzi. (8e0b1470, #1226, #1232, #1235, #1237)
  • Keep files and long tool results out of the conversation. with_file_store keeps them in memory, a folder, or Active Storage, and the model works with them through tools shaped like a coding agent's. Word, Excel, and PowerPoint files need no setup. By @​crmne. (#1238, #1443, #1462, #1464, #1469, #1571)
  • Run each persisted chat in one process at a time. complete and the other loop verbs claim the chat first, so a double-submitted approval no longer runs a tool twice. A process that dies gives up its claims within a minute, Chat.interrupted finds the chats it left, and the chat UI generator resumes them. A tool call that had started never runs again by itself. By @​crmne. (bf1ff089, #1517, #1572, #1583, #1586, #1589)
  • Queue messages while a chat runs. queue holds a message until the loop can take it, from any thread or process. A message joins the running turn, or the next one with steer: false, and can be withdrawn until it does. By @​crmne. (#1223, #1417, #1442, #1534)
  • Let a tool ask the person who runs the chat. ask in a tool pauses the call with no process waiting, and execute runs again with the answer. Approvals and MCP server questions share the same pending_questions list, and any tool can pause on a long-running task. By @​crmne. (#1249, #1257, #1540, #1546)
  • Control the agent loop. with_tool_options(rounds:) stops a model that loops on its tools by raising RubyLLM::ToolRoundLimitError, with every call answered. Context budgets keep tool results within the model's window, exclusive tools run alone in a round, around_tool_call wraps each tool in your block, and halt ends the turn from a tool. An agent class now goes wherever tools go, as a subagent. By @​crmne. (#1453, #1457, #1460, #1461, #1467, #1562, #1602)
  • Generate every building block. Generators now cover MCP servers, skills, sandboxes, evaluations, and judges. ruby_llm:install adds ApplicationAgent, and the chat UI gains a Stop button, costs, files, a model picker, and a card for each question a tool asks. Its Stimulus controller and view helpers ship with the gem, so bundle update keeps them current. By @​crmne. (1cb5c713, #1488, #1495, #1527, #1531, #1541, #1581)
  • Test your agents without a provider. RubyLLM::TestHelper scripts what the model replies, so your tests run real chats, agents, and pages with no API key. By @​crmne. (#1498)

... (truncated)

Changelog

Sourced from ruby_llm's changelog.

RubyLLM 2.2.2 loads the Ruby classes apps keep in app/skills again, keeps model rows your chats still use when a registry refresh runs without a foreign key, and shows each choice's title on the generated question cards.

bundle add ruby_llm --version 2.2.2

Already on 2.2? Run bundle update ruby_llm. No schema or code changes are needed.

Fixed

  • Your own classes in app/skills load again. 2.2 told the Rails autoloader to skip the whole app/skills folder, so an app that keeps its own Ruby classes there got NameError for every one of them after upgrading, whether or not it used RubyLLM skills. Now only skill folders are skipped: any folder holding a SKILL.md, at any depth, including skill folders that are symbolic links. Everything else in app/skills loads as it did in 2.1, and a skill you add while the development server runs is skipped on the next reload, with no restart. By @​crmne; thanks @​sebscholl. (#1671, #1675)
  • A model refresh keeps the models your chats use, with or without a foreign key. Refreshing the model registry deleted ruby_llm_models rows it no longer listed, and only the foreign key from chats stopped it from deleting rows a chat still pointed at. Schemas without that key, such as MySQL setups that skip foreign keys, lost those rows and left chats pointing at nothing. Referenced rows are now kept and marked unlisted, as they are with the foreign key. By @​yshmarov. (#1670)

New

  • Question cards show each choice's title. When a tool's ask or an MCP server gives its choices titles, the generated chat UI showed the raw values, such as 17 and 42, instead of "River bank" and "Money bank". The cards now label each button and option with its title and still submit the value. Your own UI can read the titles with field.choice_titles, which understands oneOf and items.anyOf with const and title, and enumNames. Regenerate the chat UI to pick it up. By @​kryzhovnik. (#1661)

Thanks

Thanks to @​yshmarov and @​kryzhovnik for the fixes in this release, and to @​sebscholl for reporting the app/skills regression.

Full changelog: crmne/ruby_llm@v2.2.1...v2.2.2

Commits

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code labels Oct 19, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ⚠️ Failed 2026-10-19T21:43:47.830388Z fbffc61 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Credits must be used to enable repository wide code reviews.

Bumps [ruby_llm](https://github.com/crmne/ruby_llm) from 1.16.0 to 2.2.1.
- [Release notes](https://github.com/crmne/ruby_llm/releases)
- [Changelog](https://github.com/crmne/ruby_llm/blob/main/release-notes.md)
- [Commits](crmne/ruby_llm@1.16.0...v2.2.1)

---
updated-dependencies:
- dependency-name: ruby_llm
  dependency-version: 2.1.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title deps(deps-dev): bump ruby_llm from 1.16.0 to 2.1.1 deps(deps-dev): bump ruby_llm from 1.16.0 to 2.2.1 Nov 17, 2026
@dependabot
dependabot Bot force-pushed the dependabot/bundler/ruby_llm-2.1.1 branch from fbffc61 to 46e83af Compare November 17, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants