• Sources: primary
  • Summary: Spring AI 2.1 lets a @Tool carry requiresConfirmation = true, a property or a ToolCallConfirmationPolicy bean, and the tool loop returns an ordinary response naming the calls awaiting a decision while harmless tools still run. The new community project Spring AI Session Extensions 0.11.0 adds a turn status to the Session API's append-only log, so a parked turn and its question survive a restart and any instance can resume it with allow or deny decisions. The post warns that 0.11.0 has no lease for turns whose process died and that models sending tool calls without ids can mismatch decisions.
  • Why it matters: Java teams building agents that take irreversible actions get a framework pattern for durable human approval without taking over the whole tool loop.
  • Background: Human-in-the-loop approval for agent tool calls is easy inside one process but hard when the answer arrives hours later on another instance, because the pending conversation state must be persisted and must not be editable by the client. In Spring AI 2.0 the only option was user-controlled tool execution, where the application runs every round of the tool loop itself.