Skip to content

Conversation

matifali
Copy link
Member

Summary

Fixes #436 - The claude-code 3.0.0 module was not passing the custom workdir variable to the agentapi module, causing it to default to /home/coder instead of using the specified working directory.

Changes

  • Added missing folder = local.workdir parameter to the agentapi module call in main.tf:247
  • This ensures that custom working directories are properly propagated to the agentapi module

Test Plan

  • Terraform validation passes
  • Code formatting applied with bun run fmt
  • Basic terraform test passes (one pre-existing test failure unrelated to this change)

Verification

The fix adds the missing parameter that was identified in the issue:

module "agentapi" {
  # ... other parameters
  folder = local.workdir  # <- Added this line
  # ... rest of configuration
}

🤖 Generated with Claude Code

Fixes #436: Add missing folder parameter to agentapi module call
@matifali matifali requested a review from 35C4n0r September 29, 2025 14:13
Update version references in README after bug fix for workdir parameter
@DevelopmentCats
Copy link
Contributor

Im not too sure how this wasn't passed especially since we have the local defined for workdir.

Thanks Atif! I Noticed you requested review, but this is still in draft.

@DevelopmentCats
Copy link
Contributor

Also I noticed those jfrog_oauth tests are failing all of a sudden. I will take a look at what is causing this.

@matifali matifali marked this pull request as ready for review September 30, 2025 13:01
@matifali matifali enabled auto-merge (squash) September 30, 2025 13:01
@matifali matifali disabled auto-merge September 30, 2025 13:01
@DevelopmentCats DevelopmentCats merged commit 44354b2 into main Sep 30, 2025
4 checks passed
@DevelopmentCats DevelopmentCats deleted the fix/claude-code-workdir-issue-436 branch September 30, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

claude-code 3.0.0 doesn't work with a custom workdir
2 participants