Skip to content

Opencode#18

Merged
wcgomes merged 4 commits intomainfrom
opencode
Apr 7, 2026
Merged

Opencode#18
wcgomes merged 4 commits intomainfrom
opencode

Conversation

@wcgomes
Copy link
Copy Markdown
Owner

@wcgomes wcgomes commented Apr 7, 2026

This pull request introduces improvements to the dev container feature for the opencode CLI, focusing on better documentation, improved handling of volume-mounted directory permissions, and minor updates to the feature version and usage instructions.

Documentation Updates:

  • Added a new AGENTS.md file with comprehensive documentation on dev container features, including testing, publishing, feature structure, and environment variable options.
  • Simplified and consolidated documentation in README.md by removing redundant details about feature structure and options, now covered in AGENTS.md.

Feature Functionality Improvements:

  • Updated src/opencode/install.sh to ensure persistent directories (.config/opencode, .local/share/opencode, .local/state/opencode) are created and owned by the correct user, both at install time and via the opencode-fix-permissions script. This helps prevent permission issues when directories are volume-mounted.

Version and Usage Updates:

  • Bumped the opencode feature version to 0.2.1 in devcontainer-feature.json.
  • Updated sample usage in src/opencode/README.md to reference the published feature on GHCR instead of a local path.

wcgomes added 4 commits April 7, 2026 15:43
- Create opencode directories during build with correct ownership
- Update fix-permissions script to also fix parent directories
- Skip directories that cannot be changed (use sudo with fallback)
- Only change ownership if needed (avoid unnecessary operations)
@wcgomes wcgomes merged commit 742ffd9 into main Apr 7, 2026
@wcgomes wcgomes deleted the opencode branch April 7, 2026 16:28
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.

1 participant