What Is New in 1.0
Build on a frozen public contract with clearer registration errors and safer browser feedback.
After reading this guide, you will know:
- Find the names 1.0 keeps stable.
- Recognize registration and identifier errors by their stable codes.
- Keep focus and styling correct in the browser.
- Find what 1.0.1 adds for RubyLLM hosts.
- Rerun the installer safely in 1.0.2.
Rely on a Frozen Contract
gem "rails_tool_views", "~> 1.0"
1.0 freezes the Public Contract: the Ruby API, error codes and statuses, helpers, HTTP fields, browser identifiers, events, delivery keys and saved data. From 1.0.0, only a major release removes or changes a listed name.
The RubyLLM adapter is experimental and may change in a minor release. MySQL is outside the supported matrix. SQLite and PostgreSQL remain supported on Ruby 3.3 and 4.0 with Rails 7.2 and 8.1.
Read Stable Registration Errors
A malformed registration now raises RailsToolViews::Error during boot instead of a raw Ruby exception. An invalid schema pattern raises INVALID_SCHEMA. An action definition that is not a Hash, or lacks schema:, raises INVALID_ACTION. A non-array expose_to raises INVALID_COMPONENT. See Components.
An identifier with invalid UTF-8 raises its own code, such as INVALID_SCOPE. A digest no longer rejects props or arguments that passed validation close to the size or depth limit.
Keep Follow-up Work Safe
A delivery call without an adapter now raises AGENT_NOT_CONFIGURED and keeps the interaction for a configured worker, instead of marking committed work skipped. See Agent Continuation.
Reconcile Uncertain Deliveries
RailsToolViews.reconcile_delivery(id, scope:, outcome: :completed) records the outcome your deduplication record shows for a delivery whose lease was taken over. Its uncertainty clears, so the view can close and be cleaned up. A default-deny reconciliation_policy authorizes it, and a running delivery is never overridden. See Surface Lifecycle.
Clean Up Past Protected Views
purge_closed returns a next_after cursor. Pass it back as after: to page past views your policy protects, so a hold on old views no longer blocks newer ones. See Surface Lifecycle.
Keep Browser Feedback Accessible
Focus moves to a Surface’s status only after a Turbo replacement. A page load or refresh keeps the reader’s place. The Engine’s complete HTML page carries your Content Security Policy nonce on its stylesheet. See Status and Temporary Feedback and Validation and Errors.
Connect a RubyLLM Chat in 1.0.1
The RubyLLM adapter now requires RubyLLM 2.0 or later. On 1.x it loaded, but every tool call was refused, so the require now raises Gem::LoadError instead. RubyLLM Integration shows how to attach PresentUI to a chat, render what it presented and continue the same chat after the user acts. The demo runs that wiring with RubyLLM’s real chat loop. Getting Started covers the Stimulus controller in an importmap host.
Rerun the Installer in 1.0.2
rails_tool_views:install now leaves an existing Engine mount alone. Before 1.0.2, a host that kept the :rails_tool_views name under its own path got a second mount with the same name, and its routes stopped loading. Configuration now explains that every gem in the process shares one configuration, registry and mount.
Upgrade
There is no migration or runtime dependency. Data saved by every release from 0.1.0 through 1.0.1 upgrades unchanged. Read Upgrading before you switch.