Skip to main content

Tools, permissions, commands, and UI

Scope: SessionRpc (per-session operations tied to a Session) For an overview of RPC and the list of all RPC pages, see RPC.

ui handlePendingSessionLimitsExhausted (respond to an exhausted limit)

When a session reaches its AI credit limit, send the user’s choice back to the runtime with ui()->handlePendingSessionLimitsExhausted(). Set action to a SessionLimitsExhaustedResponseAction case: Add adds the given credits to the limit, Set changes the limit to an absolute value, Unset removes the limit, and Cancel cancels the blocked request without changing the limit.
For details, see Session AI credit limits.

commands enqueue (queue a command)

Last modified on November 19, 2026