From 5f7ec4e2c020df796191bc64963c6b44dd090147 Mon Sep 17 00:00:00 2001 From: AlexRV12 <71396855+AlexRV12@users.noreply.github.com> Date: Wed, 9 Sep 2026 14:27:23 +0200 Subject: [PATCH] feat: gate the new app-runnable preview tool on run_preview Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01L99mAR4LitqTcYY1Kn1ATH --- .../src/lib/components/copilot/chat/global/sessionToolset.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/lib/components/copilot/chat/global/sessionToolset.ts b/frontend/src/lib/components/copilot/chat/global/sessionToolset.ts index 3e6b8fc77f..1cf5279d0a 100644 --- a/frontend/src/lib/components/copilot/chat/global/sessionToolset.ts +++ b/frontend/src/lib/components/copilot/chat/global/sessionToolset.ts @@ -139,6 +139,9 @@ export const SESSION_TOOL_POLICIES: Record = { test_run_script: RUN_PREVIEW, test_run_flow: RUN_PREVIEW, test_run_step: RUN_PREVIEW, + // Reaches apps.rs `execute_component` rather than jobs.rs, but that handler + // refuses operators too once `force_viewer_static_fields` marks it a preview. + test_run_app_runnable: RUN_PREVIEW, // ── Pipeline editor ───────────────────────────────────────────────────── get_pipeline_graph: NONE,