Skip to content

Commit 87b3d82

Browse files
fix: update version to 3.1.2 and add session resumption behavior documentation in Claude Code module README
1 parent e6571df commit 87b3d82

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

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

Lines changed: 10 additions & 6 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 = "3.1.1"
16+
version = "3.1.2"
1717
agent_id = coder_agent.example.id
1818
workdir = "/home/coder/project"
1919
claude_api_key = "xxxx-xxxxx-xxxx"
@@ -32,6 +32,10 @@ module "claude-code" {
3232
- You can get the API key from the [Anthropic Console](https://console.anthropic.com/dashboard).
3333
- You can get the Session Token using the `claude setup-token` command. This is a long-lived authentication token (requires Claude subscription)
3434

35+
### Session Resumption Behavior
36+
37+
By default, Claude Code automatically resumes existing conversations when your workspace restarts. Sessions are tracked per workspace directory, so conversations continue where you left off. If no session exists (first start), your `ai_prompt` will run normally. To disable this behavior and always start fresh, set `continue = false`
38+
3539
## Examples
3640

3741
### Usage with Tasks and Advanced Configuration
@@ -49,7 +53,7 @@ data "coder_parameter" "ai_prompt" {
4953
5054
module "claude-code" {
5155
source = "registry.coder.com/coder/claude-code/coder"
52-
version = "3.1.1"
56+
version = "3.1.2"
5357
agent_id = coder_agent.example.id
5458
workdir = "/home/coder/project"
5559
@@ -85,7 +89,7 @@ Run and configure Claude Code as a standalone CLI in your workspace.
8589
```tf
8690
module "claude-code" {
8791
source = "registry.coder.com/coder/claude-code/coder"
88-
version = "3.1.1"
92+
version = "3.1.2"
8993
agent_id = coder_agent.example.id
9094
workdir = "/home/coder"
9195
install_claude_code = true
@@ -108,7 +112,7 @@ variable "claude_code_oauth_token" {
108112
109113
module "claude-code" {
110114
source = "registry.coder.com/coder/claude-code/coder"
111-
version = "3.1.1"
115+
version = "3.1.2"
112116
agent_id = coder_agent.example.id
113117
workdir = "/home/coder/project"
114118
claude_code_oauth_token = var.claude_code_oauth_token
@@ -181,7 +185,7 @@ resource "coder_env" "bedrock_api_key" {
181185
182186
module "claude-code" {
183187
source = "registry.coder.com/coder/claude-code/coder"
184-
version = "3.1.1"
188+
version = "3.1.2"
185189
agent_id = coder_agent.example.id
186190
workdir = "/home/coder/project"
187191
model = "global.anthropic.claude-sonnet-4-5-20250929-v1:0"
@@ -238,7 +242,7 @@ resource "coder_env" "google_application_credentials" {
238242
239243
module "claude-code" {
240244
source = "registry.coder.com/coder/claude-code/coder"
241-
version = "3.1.1"
245+
version = "3.1.2"
242246
agent_id = coder_agent.example.id
243247
workdir = "/home/coder/project"
244248
model = "claude-sonnet-4@20250514"

0 commit comments

Comments
 (0)