Skip to content

Conversation

@matthazinski
Copy link
Contributor

@matthazinski matthazinski commented Oct 14, 2025

Description

The folder variable was not being passed from the codex module to the agentapi module, causing agentapi to use its default value of /home/coder instead of the user-specified folder path.

This resulted in permission errors when the codex module tried to create directories in /home/coder when users specified a different folder like /home/matt/foo.

Fix by adding folder = var.folder to the agentapi module invocation.

Type of Change

  • New module
  • New template
  • Bug fix
  • Feature/enhancement
  • Documentation
  • Other

Module Information

Path: registry/coder-labs/modules/codex
New version: v2.1.1
Breaking change: [ ] Yes [X] No

Testing & Validation

  • Tests pass (bun test)
  • Code formatted (bun fmt)
  • Changes tested locally

Related Issues

Fixes #476

The folder variable was not being passed from the codex module to the
agentapi module, causing agentapi to use its default value of /home/coder
instead of the user-specified folder path.

This resulted in permission errors when the codex module tried to create
directories in /home/coder when users specified a different folder like
/home/matt/foo.

Fix by adding folder = var.folder to the agentapi module invocation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Copy link
Contributor

@DevelopmentCats DevelopmentCats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great Catch!

@matthazinski Can you bump the version using the version bump script?

./.github/scripts/version-bump.sh patch

@matifali
Copy link
Member

@DevelopmentCats', let's do that and approve and merge the PR.

@DevelopmentCats
Copy link
Contributor

@matifali Done

Can you approve?

@matifali
Copy link
Member

Thanks, @matthazinski, for the fix.

@DevelopmentCats
Copy link
Contributor

Thanks for the for the fix! @matthazinski

@DevelopmentCats DevelopmentCats enabled auto-merge (squash) October 14, 2025 16:44
@DevelopmentCats DevelopmentCats merged commit 50f4d53 into coder:main Oct 14, 2025
4 checks passed
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.

Bug: folder variable not passed from codex module to agentapi module

3 participants