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 all
backward 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 supported
Task prompts are now exclusively stored in the tasks.prompt database
column, 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 is deprecated. 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 is no 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 Coder Deployment, click **Workspaces** in the upper left hand corner
273
-
1.Click **New workspace** and choose **tasks-docker**
274
-
1.Fill in the Workspace name. Add in an AI Prompt for Claude Code like "Make the background yellow". Click **Create workspace**
271
+
1.**Create a Task**
272
+
1. In your Coder deployment, click **Tasks** in the navigation
273
+
1.In the "Prompt your AI agent to start a task" box, enter a prompt like "Make the background yellow"
274
+
1.Select the **tasks-docker** template from the dropdown and click the submit button
275
275
1.**See Tasks in action**
276
-
1.Once your workspace is running, click **View tasks** with your workspace. This will bring you to the Tasks view where you can see Claude Code (left panel), preview the sample 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 to the **Tasks** tab in the upper left hand corner
276
+
1.Your task will appear in the table below. Click on it to open the task view where you can follow the initialization
277
+
1.Once active, you'll see Claude Code on the left panel and can preview the sample application or interact with the code in code-server on the right. 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 we can see all the running tasks
280
-
1. You can start a new task by prompting in the "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 (you can also see all your tasks in the sidebar)
280
+
1. You can start a new task from the prompt box at the top of the page
281
281
282
282

0 commit comments