You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
This removes the deprecated AITaskPromptParameterName constant and allbackward compatibility code that was added for v2.28.- Remove AITaskPromptParameterName constant from codersdk/aitasks.go- Remove backward compatibility code in coderd/aitasks.go that populated the "AI Prompt" parameter for templates that defined it- Remove the backward compatibility test (OK AIPromptBackCompat)- Update dbfake to no longer set the AI Prompt parameter- Remove AITaskPromptParameterName from frontend TypeScript types- Remove preset prompt read-only feature from TaskPrompt component- Update docs to reflect that pre-2.28 definition is no longer supportedTask prompts are now exclusively stored in the tasks.prompt databasecolumn, as introduced in the migration that added the tasks table.
Copy file name to clipboardExpand all lines: docs/ai-coder/tasks-migration.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,8 @@ Prior to Coder version 2.28.0, the definition of a Coder task was different to t
8
8
9
9
Note that 2 and 3 were generally handled by the`coder/agentapi` Terraform module.
10
10
11
-
The pre-2.28.0 definition will be supported until the release of 2.29.0. You will need to update your Tasks-enabled templates to continue using Tasks after this release.
11
+
>[!IMPORTANT]
12
+
>The pre-2.28.0 definition is no longer supported as of Coder 2.30.0. You must update your Tasks-enabled templates to use the new format described below.
12
13
13
14
You can view an[example migration here](https://github.com/coder/coder/pull/20420). Alternatively, follow the steps below:
In v2.28 and above, the following changes were made:
116
117
117
-
- The explicitly named "AI Prompt" parameter isdeprecated. The task prompt is now available in the`coder_ai_task` resource (provider version 2.12 and above) and`coder_task` data source (provider version 2.13 and above).
118
+
- The explicitly named "AI Prompt" parameter isno longer supported. The task prompt is now available in the`coder_ai_task` resource (provider version 2.12 and above) and`coder_task` data source (provider version 2.13 and above).
118
119
- Modules no longer define the`coder_ai_task` resource. These must be defined explicitly in the template.
119
120
- The`sidebar_app` field of the`coder_ai_task` resource is now deprecated. In its place, use`app_id`.
1. In your CoderDeployment, click**Workspaces** in theupper left hand corner
273
-
1.Click**New workspace** and choose**tasks-docker**
274
-
1.Fill intheWorkspace name. Add in an AI Prompt for Claude Code like "Makethebackground yellow". Click**Create workspace**
271
+
1.**Createa Task**
272
+
1. In your Coderdeployment, click**Tasks** in thenavigation
273
+
1.In the "Prompt your AI agent to start a task" box, enter a prompt like "Make the background yellow"
274
+
1.Selectthe**tasks-docker** template from the dropdown and clickthesubmit button
275
275
1.**See Tasks in action**
276
-
1.Once your workspace is running, click**View tasks** with your workspace. This will bring youto theTasks view where you cansee Claude Code (left panel), previewthesample application, and interact with the code in code-server. You might need to wait for Claude Code to finish changing the background color of the application.
277
-
1.Navigate tothe**Tasks** tabin theupper left hand corner
276
+
1.Your task will appear in the table below. Click on ittoopenthetask view where you canfollowtheinitialization
277
+
1.Once active, you'll see Claude Code ontheleft panel and can preview the sample application or interact with the codeincode-server ontheright. You might need to wait for Claude Code to finish changing the background color of the application.
278
278
1. Try typing in a new request to Claude Code: "make the background red"
279
-
1.Let's exit out of this specific Task view, so wecan see allthe runningtasks
280
-
1. You can start a new taskby prompting inthe"Prompt your AI agent to start a task"box. You can select which template to run this from, so tasks-docker here, and that will spin up a new Workspace
279
+
1.Click the back arrow to return to the task overview (youcanalsosee allyourtasks in the sidebar)
280
+
1. You can start a new taskfromthepromptbox at the top of the page
281
281
282
282
