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 andall backward compatibility code that was added in v2.28.Changes:- Remove AITaskPromptParameterName constant from codersdk/aitasks.go- Remove backward compatibility code in coderd/aitasks.go that automatically 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- Update toolsdk tests to not require AI Prompt parameter- Remove AITaskPromptParameterName from frontend TypeScript types- Remove preset prompt read-only feature from TaskPrompt component that relied on the AI Prompt parameter- Update test mocks (MockAIPromptPresets) to not include AI PromptTask prompts are now exclusively stored in the tasks.prompt databasecolumn, as introduced in the migration that added the tasks table.Related:coder/internal#1150
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`.