From 0248afe222a0722ec336e8c09269612eb773702b Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 10 May 2026 02:43:48 -0500 Subject: Move GPTel tool loading into AI config Move the local GPTel tool wiring out of init.el and into ai-config. The tools directory and feature list are now configurable, missing optional tools are non-fatal, and focused tests cover the loading behavior. --- tests/testutil-ai-config.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/testutil-ai-config.el') diff --git a/tests/testutil-ai-config.el b/tests/testutil-ai-config.el index e8953389..c7486222 100644 --- a/tests/testutil-ai-config.el +++ b/tests/testutil-ai-config.el @@ -7,6 +7,12 @@ ;;; Code: +(setq load-prefer-newer t) + +;; Keep ai-config tests isolated from personal optional GPTel tool files. +(defvar cj/gptel-tools-directory (make-temp-file "gptel-tools-empty-" t)) +(defvar cj/gptel-local-tool-features nil) + ;; Pre-cache API keys so auth-source is never consulted (defvar cj/anthropic-api-key-cached "test-anthropic-key") (defvar cj/openai-api-key-cached "test-openai-key") -- cgit v1.2.3