Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

Connect an AI tool: no live-mode step 3 when the studio locks live mode; the test waits for the guide to close

islandmed33164dd174c1
diff --git a/src/app/PanelConnectAi.cpp b/src/app/PanelConnectAi.cpp
index f6f4a6e0..c6a1cab7 100644
--- a/src/app/PanelConnectAi.cpp
+++ b/src/app/PanelConnectAi.cpp
@@ -193,16 +193,18 @@ void App::drawConnectAi() {
else ImGui::TextDisabled("%s", tr("Off"));
}
- // 3. What the user will see, in the order it happens.
- ImGui::SeparatorText(tr("3. What happens next"));
- for (const char* line : {tr("Ask your AI tool for something (below). SculptForge shows a 6-digit code: click "
- "Approve, or tell the AI the code."),
- tr("While it works, the AI connected badge sits at the bottom right. Disconnect stops it."),
- tr("Every step lands in Undo as \"AI: ...\", so you can step back."),
- tr("It asks you first before files outside the project, scripts and the network."),
- tr("It sees the viewport; what it sees goes to that tool's AI service.")}) {
- ImGui::Bullet();
- ImGui::TextWrapped("%s", line);
+ // 3. What the user will see, in the order it happens (live mode only: a studio may have locked it off).
+ if (live) {
+ ImGui::SeparatorText(tr("3. What happens next"));
+ for (const char* line : {tr("Ask your AI tool for something (below). SculptForge shows a 6-digit code: click "
+ "Approve, or tell the AI the code."),
+ tr("While it works, the AI connected badge sits at the bottom right. Disconnect stops it."),
+ tr("Every step lands in Undo as \"AI: ...\", so you can step back."),
+ tr("It asks you first before files outside the project, scripts and the network."),
+ tr("It sees the viewport; what it sees goes to that tool's AI service.")}) {
+ ImGui::Bullet();
+ ImGui::TextWrapped("%s", line);
+ }
}
ImGui::SeparatorText(tr("Try asking"));
diff --git a/tests/ui/connect_ai.sfui b/tests/ui/connect_ai.sfui
index 63fff4d8..bac783bb 100644
--- a/tests/ui/connect_ai.sfui
+++ b/tests/ui/connect_ai.sfui
@@ -58,5 +58,5 @@ expect_text Managed by your studio
expect_text your studio doesn't let them control this window
shot connect-ai-managed
run ui_policy json="{\"format\":\"sculptforge-policy\",\"version\":1,\"mcp\":{\"enabled\":false}}"
-expect_value connect_ai_open == 0
+wait_value connect_ai_open == 0 5
run ui_policy json=""