mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 04:23:15 -05:00
The grants of an agent were stored and listed, but only the proposal kinds read them. The connector gate now reads them too, so a tool exists when the sender holds the capability on the binding, the agent holds the grant and the chat did not switch the tool off. It covers triggers.propose, triggers.run, talkback.channels, talkback.new_channel and files.upload. Every question that goes through the gate asks the grants: the capabilities of a turn, the check of a feature that has a sender, and a run without a sender, so a trigger that fires from a message pauses when the grant goes. An agent with no grant list keeps the capabilities that are not sensitive, as before. A sensitive one (talkback.new_channel) needs the explicit grant. Once any grant is on the list, the list is the whole answer. The act.* grants are not enforced: the action policy of unattended runs that uses them does not exist yet. Assisted-by: Claude:claude-sonnet-5-5 go test