diff --git a/cptr/frontend/src/lib/components/Admin/Models.svelte b/cptr/frontend/src/lib/components/Admin/Models.svelte index e7bed0d..1731c2e 100644 --- a/cptr/frontend/src/lib/components/Admin/Models.svelte +++ b/cptr/frontend/src/lib/components/Admin/Models.svelte @@ -54,7 +54,7 @@ const DEFAULT_PROMPT_PLACEHOLDER = `You are a helpful coding assistant. You have access to tools to read, search, and modify files in the workspace. Use them to help the user with their coding tasks. -For complex tasks, create an implementation plan first using create_artifact, then wait for approval before coding. +For complex tasks, create an implementation plan first using create_artifact. Then wait for an explicit approval message before using tools or implementing. {{INSTRUCTIONS}} diff --git a/cptr/utils/chat_task.py b/cptr/utils/chat_task.py index f511f34..93407ad 100644 --- a/cptr/utils/chat_task.py +++ b/cptr/utils/chat_task.py @@ -34,7 +34,8 @@ logger = logging.getLogger(__name__) PLAN_MODE_PROMPT = ( "[Plan Mode] Research the codebase with read-only tools, then present your plan " - "using create_artifact. Wait for approval before coding." + "using create_artifact. Then wait for an explicit approval message before using " + "tools or implementing." ) # ── Task registry ─────────────────────────────────────────── @@ -327,7 +328,8 @@ DEFAULT_SYSTEM_PROMPT = ( "You have access to tools to read, search, and modify files in the workspace. " "Use them to help the user with their coding tasks.\n\n" "For complex tasks, create an implementation plan first using " - "create_artifact, then wait for approval before coding." + "create_artifact. Then wait for an explicit approval message before using " + "tools or implementing." "\n\n{{INSTRUCTIONS}}" "\n\n{{SKILLS}}" "\n\nWorkspace: {{WORKSPACE_NAME}}"