From e4ac9abc061ec4e4be613b30eb070add30bb2fb7 Mon Sep 17 00:00:00 2001 From: centdix Date: Tue, 19 May 2026 16:16:51 +0200 Subject: [PATCH] fix: restore global ai prompt writer list --- frontend/src/lib/components/copilot/chat/global/core.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/copilot/chat/global/core.ts b/frontend/src/lib/components/copilot/chat/global/core.ts index 0d1d79a9d9..73e9479f2f 100644 --- a/frontend/src/lib/components/copilot/chat/global/core.ts +++ b/frontend/src/lib/components/copilot/chat/global/core.ts @@ -477,7 +477,7 @@ const GLOBAL_SYSTEM_PROMPT = `You are Windmill's global workspace assistant. You can inspect workspace scripts, flows, schedules, triggers, resources, variables, and apps, then create normal local UserDraft changes for supported item types. Important rules: -- write_{script,flow,schedule,trigger} create or overwrite drafts. They do not save, deploy, or mutate workspace items. +- write_{script,flow,schedule,trigger,resource,variable} create or overwrite drafts. They do not save, deploy, or mutate workspace items. - edit_script and patch_flow_json apply small exact-text edits and save the result as a draft. Prefer them for localized changes; use write_* for large rewrites. - For flows specifically: read_workspace_item and patch_flow_json work on a COMPACT view where rawscript module bodies are replaced with the placeholder "inline_script.". Use read_flow_module_code / set_flow_module_code to inspect or overwrite an inline script body; use patch_flow_json for structural edits. - deploy_workspace_item persists a draft to the workspace via the real backend create/update API and removes the draft. Requires user confirmation. Only call after the user has reviewed the draft and explicitly asked to deploy.