Compare commits

...

1 Commits

Author SHA1 Message Date
Hugo Dutka 8ba4c323c2 fix(claude-code): workaround for a coder bug (#283)
Workaround to address https://github.com/coder/coder/issues/18776
2025-08-02 16:21:13 +02:00
2 changed files with 11 additions and 3 deletions
+3 -3
View File
@@ -13,7 +13,7 @@ Run the [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude
```tf
module "claude-code" {
source = "registry.coder.com/coder/claude-code/coder"
version = "2.0.4"
version = "2.0.5"
agent_id = coder_agent.example.id
folder = "/home/coder"
install_claude_code = true
@@ -84,7 +84,7 @@ resource "coder_agent" "main" {
module "claude-code" {
count = data.coder_workspace.me.start_count
source = "registry.coder.com/coder/claude-code/coder"
version = "2.0.4"
version = "2.0.5"
agent_id = coder_agent.example.id
folder = "/home/coder"
install_claude_code = true
@@ -102,7 +102,7 @@ Run Claude Code as a standalone app in your workspace. This will install Claude
```tf
module "claude-code" {
source = "registry.coder.com/coder/claude-code/coder"
version = "2.0.4"
version = "2.0.5"
agent_id = coder_agent.example.id
folder = "/home/coder"
install_claude_code = true
@@ -289,3 +289,11 @@ resource "coder_ai_task" "claude_code" {
id = coder_app.claude_code_web.id
}
}
# As of https://github.com/coder/coder/commit/6ba4b5bbc95e2e528d7f5b1e31fffa200ae1a6db,
# there's a bug in Coder's Terraform statefile parsing which prevents it from seeing coder_apps
# in certain scenarios. This is a workaround to bypass this bug until we have a proper fix.
# For more details see https://github.com/coder/coder/issues/18776
resource "terraform_data" "claude_code_app_id" {
input = coder_app.claude_code_web.id
}