mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 05:20:33 +08:00
The setup protocol (confirm with ask_user before apply_setting, never handle secrets, ...) reached the model only in the load_tools result or the turn that opened setup mode. Once history snipping or summarisation dropped that message, the setup tools stayed in tools[] without their rules. A setup turn (explicit mode or an intent message) whose capability already has tools loaded now gets the protocol repeated in its turn note, and the intent wording says the tools are already loaded. A partner turn refuses every setup write (setup/access.py can_write), so the setup tools are no longer listed under Extended Tools or pointed at by the turn note there. Non-admin users keep them: personal preferences are still theirs to change. Also correct the comment about when set_deferral_available runs: is_active is already asked by the exclusive-capability checks before it. Refs #2972