chore(modules/claude-code): update readme (#172)

The README points to an old version of claude code that doesn't support
the `--continue` flag, making it incompatible with the latest version of
the module. It's easy to copy and paste the example and run into an
error. This PR updates the example version and adds troubleshooting
notes.
This commit is contained in:
Hugo Dutka 2025-07-02 20:26:46 +02:00 committed by GitHub
parent dbd4928706
commit 121328f671
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,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.0"
version = "2.0.1"
agent_id = coder_agent.example.id
folder = "/home/coder"
install_claude_code = true
@ -85,11 +85,11 @@ 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.0"
version = "2.0.1"
agent_id = coder_agent.example.id
folder = "/home/coder"
install_claude_code = true
claude_code_version = "0.2.57"
claude_code_version = "1.0.40"
# Enable experimental features
experiment_report_tasks = true
@ -103,7 +103,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.0"
version = "2.0.1"
agent_id = coder_agent.example.id
folder = "/home/coder"
install_claude_code = true
@ -113,3 +113,7 @@ module "claude-code" {
icon = "https://registry.npmmirror.com/@lobehub/icons-static-png/1.24.0/files/dark/claude-color.png"
}
```
## Troubleshooting
The module will create log files in the workspace's `~/.claude-module` directory. If you run into any issues, look at them for more information.