Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8ba4c32

Browse files
fix(claude-code): workaround for a coder bug (#283)
Workaround to address coder/coder#18776
1 parent 3afa720 commit 8ba4c32

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

‎registry/coder/modules/claude-code/README.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Run the [Claude Code](https://docs.anthropic.com/en/docs/agents-and-tools/claude
1313
```tf
1414
module "claude-code" {
1515
source = "registry.coder.com/coder/claude-code/coder"
16-
version = "2.0.4"
16+
version = "2.0.5"
1717
agent_id = coder_agent.example.id
1818
folder = "/home/coder"
1919
install_claude_code = true
@@ -84,7 +84,7 @@ resource "coder_agent" "main" {
8484
module "claude-code" {
8585
count = data.coder_workspace.me.start_count
8686
source = "registry.coder.com/coder/claude-code/coder"
87-
version = "2.0.4"
87+
version = "2.0.5"
8888
agent_id = coder_agent.example.id
8989
folder = "/home/coder"
9090
install_claude_code = true
@@ -102,7 +102,7 @@ Run Claude Code as a standalone app in your workspace. This will install Claude
102102
```tf
103103
module "claude-code" {
104104
source = "registry.coder.com/coder/claude-code/coder"
105-
version = "2.0.4"
105+
version = "2.0.5"
106106
agent_id = coder_agent.example.id
107107
folder = "/home/coder"
108108
install_claude_code = true

‎registry/coder/modules/claude-code/main.tf‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,3 +289,11 @@ resource "coder_ai_task" "claude_code" {
289289
id = coder_app.claude_code_web.id
290290
}
291291
}
292+
293+
# As of https://github.com/coder/coder/commit/6ba4b5bbc95e2e528d7f5b1e31fffa200ae1a6db,
294+
# there's a bug in Coder's Terraform statefile parsing which prevents it from seeing coder_apps
295+
# in certain scenarios. This is a workaround to bypass this bug until we have a proper fix.
296+
# For more details see https://github.com/coder/coder/issues/18776
297+
resource "terraform_data" "claude_code_app_id" {
298+
input = coder_app.claude_code_web.id
299+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /