This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/main by this push:
     new 0e60112719 Fixes #9017 : Say that the default AI provider applies to 
all projects (#9297)
0e60112719 is described below

commit 0e60112719fbe950ea0bba862f607e26438fa11d
Author: Bart Maertens <[email protected]>
AuthorDate: Thu Nov 5 15:22:02 2026 +0100

    Fixes #9017 : Say that the default AI provider applies to all projects 
(#9297)
---
 .../modules/ROOT/partials/config/HopAiConfigOptionPlugin.adoc        | 2 +-
 docs/hop-user-manual/modules/ROOT/partials/config/all-plugins.adoc   | 2 +-
 .../org/apache/hop/ai/config/messages/messages_en_US.properties      | 4 ++--
 .../java/org/apache/hop/ai/config/HopAiConfigOptionPluginUiTest.java | 5 ++++-
 4 files changed, 8 insertions(+), 5 deletions(-)

diff --git 
a/docs/hop-user-manual/modules/ROOT/partials/config/HopAiConfigOptionPlugin.adoc
 
b/docs/hop-user-manual/modules/ROOT/partials/config/HopAiConfigOptionPlugin.adoc
index d8e93613b3..3df9d6f8e4 100644
--- 
a/docs/hop-user-manual/modules/ROOT/partials/config/HopAiConfigOptionPlugin.adoc
+++ 
b/docs/hop-user-manual/modules/ROOT/partials/config/HopAiConfigOptionPlugin.adoc
@@ -28,7 +28,7 @@ These options are stored under `pass:c[hopAiConfig]` in 
`hop-config.json`.
 |`pass:c[false]`
 
 |pass:c[Default AI provider]
-|pass:c[Named AI Provider metadata used by the AI Assistant. Pipelines can 
still pick a different provider. Accepts variables.]
+|pass:c[Named AI Provider metadata used by the AI Assistant. This one setting 
applies to all projects, while each project has its own AI providers. Pipelines 
can still pick a different provider. Accepts variables.]
 |
 
 |pass:c[Allow sending full XML]
diff --git a/docs/hop-user-manual/modules/ROOT/partials/config/all-plugins.adoc 
b/docs/hop-user-manual/modules/ROOT/partials/config/all-plugins.adoc
index d6496a43a8..bc8ebde626 100644
--- a/docs/hop-user-manual/modules/ROOT/partials/config/all-plugins.adoc
+++ b/docs/hop-user-manual/modules/ROOT/partials/config/all-plugins.adoc
@@ -30,7 +30,7 @@ These options are stored under `pass:c[hopAiConfig]` in 
`hop-config.json`.
 |`pass:c[false]`
 
 |pass:c[Default AI provider]
-|pass:c[Named AI Provider metadata used by the AI Assistant. Pipelines can 
still pick a different provider. Accepts variables.]
+|pass:c[Named AI Provider metadata used by the AI Assistant. This one setting 
applies to all projects, while each project has its own AI providers. Pipelines 
can still pick a different provider. Accepts variables.]
 |
 
 |pass:c[Allow sending full XML]
diff --git 
a/plugins/tech/ai/src/main/resources/org/apache/hop/ai/config/messages/messages_en_US.properties
 
b/plugins/tech/ai/src/main/resources/org/apache/hop/ai/config/messages/messages_en_US.properties
index a08664fffc..83b938770b 100644
--- 
a/plugins/tech/ai/src/main/resources/org/apache/hop/ai/config/messages/messages_en_US.properties
+++ 
b/plugins/tech/ai/src/main/resources/org/apache/hop/ai/config/messages/messages_en_US.properties
@@ -20,7 +20,7 @@ HopAiConfigOptionPlugin.GitWarning.Tooltip=Graph Undo only 
reverses some canvas
 HopAiConfigOptionPlugin.AiEnabled.Label=Enable the AI Assistant
 HopAiConfigOptionPlugin.AiEnabled.Tooltip=When disabled, the AI Assistant does 
not open and sends no prompts; saved conversations stay readable in its 
perspective. Default is off. Before applying AI changes, work on a Git feature 
branch so you can revert the project if needed.
 HopAiConfigOptionPlugin.DefaultProvider.Label=Default AI provider
-HopAiConfigOptionPlugin.DefaultProvider.Tooltip=Named AI Provider metadata 
used by the AI Assistant. Pipelines can still pick a different provider.
+HopAiConfigOptionPlugin.DefaultProvider.Tooltip=Named AI Provider metadata 
used by the AI Assistant. This one setting applies to all projects, while each 
project has its own AI providers. Pipelines can still pick a different provider.
 HopAiConfigOptionPlugin.AllowFullXml.Label=Allow sending full XML
 HopAiConfigOptionPlugin.AllowFullXml.Tooltip=Second gate for the session 
"Include full XML" checkbox. Off by default. Full XML is large and can contain 
SQL, filenames and notes. Leave this off unless you need it, and only after 
secrets live in environment variables or a keystore.
 HopAiConfigOptionPlugin.ExtraContext.Label=Extra context
@@ -36,7 +36,7 @@ HopAiConfigOptionPlugin.RequestOnClose.Label=When a window 
closes during a quest
 HopAiConfigOptionPlugin.RequestOnClose.Tooltip=What happens to a question that 
is still waiting for its answer when you close the AI Assistant window or dock. 
Finish in the background records the answer in the session, so you find it when 
you open the session again. Cancel stops waiting, as Stop does, and no answer 
is recorded. Exiting Hop GUI always stops a question that is still waiting.
 AiRequestOnClose.FINISH_IN_BACKGROUND=Finish in the background
 AiRequestOnClose.CANCEL=Cancel the question
-HopAiConfigOptionPlugin.DefaultProvider.Missing=The open project has no AI 
provider named ''{0}''. Its sessions use the provider picked last.
+HopAiConfigOptionPlugin.DefaultProvider.Missing=''{0}'' is the default for all 
projects, but this project has no AI provider by that name. Sessions in this 
project use the provider picked last in it.
 HopAiConfigOptionPlugin.ExtraContextFiles.Hint=For example 
'${PROJECT_HOME}'/ai-assistant.md, one path per line
 HopAiConfigOptionPlugin.AddContextFile.Label=Add a file...
 HopAiConfigOptionPlugin.AddContextFile.Tooltip=Browse for a file and add it to 
Context files. A file in the project is added as '${PROJECT_HOME}'/...
diff --git 
a/plugins/tech/ai/src/test/java/org/apache/hop/ai/config/HopAiConfigOptionPluginUiTest.java
 
b/plugins/tech/ai/src/test/java/org/apache/hop/ai/config/HopAiConfigOptionPluginUiTest.java
index 3857765a45..a3724af6ee 100644
--- 
a/plugins/tech/ai/src/test/java/org/apache/hop/ai/config/HopAiConfigOptionPluginUiTest.java
+++ 
b/plugins/tech/ai/src/test/java/org/apache/hop/ai/config/HopAiConfigOptionPluginUiTest.java
@@ -120,7 +120,10 @@ class HopAiConfigOptionPluginUiTest extends SwtBotTestBase 
{
           assertEquals(0, onUi(line::getItemCount));
           assertEquals("ollama", onUi(line::getText), "the setting itself 
stays");
           assertTrue(onUi(() -> warning(widgets.get()).isVisible()));
-          assertTrue(onUi(() -> 
warning(widgets.get()).getText()).contains("'ollama'"));
+          String note = onUi(() -> warning(widgets.get()).getText());
+          assertTrue(note.contains("'ollama'"));
+          // The name is the Hop-wide default, not something left over from 
the other project.
+          assertTrue(note.contains("default for all projects"), note);
 
           onUi(
               () -> {

Reply via email to