Repository navigation
chore: update coder/dogfood template to reference coder_task.prompt - #20416
Merged
Merged
Conversation
mafredri
reviewed
Nov 3, 2025
mafredri
left a comment
Member
There was a problem hiding this comment.
Changes look good once updated to match latest provider behavior 👍🏻
| @@ -879,7 +899,7 @@ resource "coder_script" "develop_sh" { | |||
| } | |||
|
|
|||
| resource "coder_app" "preview" { | |||
| count = local.has_ai_prompt ? data.coder_workspace.me.start_count : 0 | |||
| count = local.is_task ? data.coder_workspace.me.start_count : 0 | |||
Member
There was a problem hiding this comment.
Seeing this, it could be nice to have a coder_ai_task.start_count, but perhaps that's more confusing than useful.
Relates to coder/internal#1065 Updates the coder/dogfood template to reference new Task features in provider version 2.12.0: - Adds a `coder_ai_task` resource - Passes `coder_ai_task.task.prompt` into Claude Code module - Updates Claude Code module to 4.0.0 (ref: coder/registry#488) - Removes "AI Prompt" parameter
johnstcn
force-pushed
the
cj/coder/dogfood/tasks-refactor
branch
from
November 3, 2025 22:05
7c28bf6 to
e9efb79
Compare
johnstcn
marked this pull request as ready for review
November 4, 2025 13:43
mafredri
approved these changes
Nov 4, 2025
mafredri
left a comment
Member
There was a problem hiding this comment.
Would perhaps make sense to have a data.coder_task.me.start_count like workspaces. Avoids the ternary operator.
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Relates to coder/internal#1065
Updates the coder/dogfood template to reference new Task features in provider version
2.12.02.13.0:coder_ai_taskresource and acoder_taskdata sourcecoder_task.me.promptinto Claude Code moduleUpdate: to avoid a cycle that only appears to occur when using a
count, leveraging a data source (ref: coder/terraform-provider-coder#460)