viettranx
56eb686934
feat(agent): tenant tool settings overlay via loop ctx injection
...
Plumb per-tenant tool settings into the agent Loop without touching any
tool's Execute signature. Adds WithTenantToolSettings ctx helper and
rewrites BuiltinToolSettingsFromCtx with fast-path merge semantics —
tenant layer wins over global defaults at tool-name level (no field-level
deep merge). Resolver preloads ListAllSettings for the agent's tenant at
Loop construction; store errors log + fall back to global. Zero allocs
on single-tier reads. Tier 1 (future per-agent override) is reserved and
documented in context_keys.go. 8 unit tests cover empty / single-tier /
both-merged / RunContext fallback / fast-path semantics.
2026-04-12 08:55:20 +07:00
..
2026-04-10 10:13:58 +07:00
2026-04-10 10:13:58 +07:00
2026-04-11 21:22:23 +07:00
2026-03-27 09:35:57 +07:00
2026-04-11 21:22:23 +07:00
2026-03-19 13:59:32 +07:00
2026-02-22 14:58:07 +07:00
2026-02-22 14:58:07 +07:00
2026-04-11 21:22:23 +07:00
2026-03-20 13:42:19 +07:00
2026-04-09 21:15:19 +07:00
2026-04-05 21:32:59 +07:00
2026-03-31 11:44:54 +07:00
2026-04-12 08:55:20 +07:00
2026-04-11 08:12:55 +07:00
2026-04-02 22:58:35 +07:00
2026-04-10 13:32:02 +07:00
2026-04-09 21:15:19 +07:00
2026-04-09 21:15:19 +07:00
2026-04-02 22:58:35 +07:00
2026-04-09 21:15:19 +07:00
2026-04-09 21:15:19 +07:00
2026-04-10 13:28:44 +07:00
2026-03-17 13:18:27 +07:00
2026-04-10 20:25:08 +07:00
2026-03-25 12:37:49 +07:00
2026-03-17 15:43:24 +07:00
2026-04-11 08:12:55 +07:00
2026-04-10 13:32:02 +07:00
2026-04-09 21:15:19 +07:00
2026-04-09 21:15:19 +07:00
2026-03-30 15:20:01 +07:00
2026-04-09 21:15:19 +07:00
2026-03-28 14:53:43 +07:00
2026-04-11 21:22:23 +07:00
2026-03-31 14:33:33 +07:00
2026-04-12 08:55:20 +07:00
2026-04-11 21:22:23 +07:00
2026-04-09 23:15:08 +07:00
2026-04-09 21:15:19 +07:00
2026-04-09 21:15:19 +07:00
2026-03-30 22:15:34 +07:00
2026-03-31 19:26:40 +07:00
2026-03-23 08:08:23 +07:00
2026-04-01 18:11:42 +07:00
2026-04-11 21:22:23 +07:00
2026-04-11 21:22:23 +07:00
2026-04-09 21:15:19 +07:00
2026-04-09 21:15:19 +07:00
2026-04-10 16:32:54 +07:00
2026-04-10 16:32:54 +07:00
2026-04-10 16:32:54 +07:00
2026-04-09 21:15:19 +07:00
2026-04-09 21:15:19 +07:00
2026-04-09 21:15:19 +07:00
2026-04-11 21:22:23 +07:00
2026-04-08 15:52:37 +07:00
2026-03-31 11:44:54 +07:00
2026-04-12 08:55:20 +07:00
2026-04-09 21:15:19 +07:00
2026-03-29 09:00:06 +07:00
2026-04-11 21:22:23 +07:00
2026-04-11 21:22:23 +07:00
2026-04-11 23:22:17 +07:00
2026-04-11 21:22:23 +07:00
2026-04-11 21:22:23 +07:00
2026-04-11 23:22:17 +07:00
2026-04-11 21:22:23 +07:00
2026-03-10 23:11:02 +07:00
2026-03-24 10:24:10 +07:00
2026-04-04 21:17:47 +07:00
2026-04-04 21:17:47 +07:00
2026-04-09 21:15:19 +07:00
2026-04-09 21:15:19 +07:00
2026-04-10 10:13:58 +07:00
2026-04-09 21:15:19 +07:00
2026-04-09 21:15:19 +07:00
2026-03-27 19:16:31 +07:00
2026-04-09 21:15:19 +07:00
2026-04-09 21:15:19 +07:00
2026-04-09 21:15:19 +07:00
2026-04-09 21:15:19 +07:00
2026-04-09 21:15:19 +07:00
2026-04-02 18:32:43 +07:00
2026-04-10 08:25:55 +07:00
2026-03-21 12:01:04 +07:00
2026-03-31 08:35:06 +07:00
2026-03-19 13:35:57 +07:00
2026-03-28 14:53:43 +07:00
2026-03-28 14:53:43 +07:00
2026-03-19 23:34:45 +07:00
2026-04-08 14:47:39 +07:00
2026-04-08 14:47:39 +07:00
2026-03-12 18:26:40 +07:00