Skip to content

fix: improve devcontainer configuration#98

Merged
sonesuke merged 1 commit intomainfrom
fix/devcontainer-remote-user-and-tmux
Feb 8, 2026
Merged

fix: improve devcontainer configuration#98
sonesuke merged 1 commit intomainfrom
fix/devcontainer-remote-user-and-tmux

Conversation

@sonesuke
Copy link
Owner

@sonesuke sonesuke commented Feb 8, 2026

Summary

  • Upgrade @devcontainers/cli requirement to 0.80.2+ to fix hanging issue
  • Install Claude CLI as vscode user instead of root to avoid permission issues
  • Add C.UTF-8 locale configuration for proper UTF-8 support in terminal
  • Add tmux mouse support configuration
  • Pass through Z_AI_API_KEY environment variable from host to container
  • Add devcontainer documentation

Root Cause

The @devcontainers/cli version 0.80.0 had a bug that caused devcontainer up to hang after displaying "Container started". This was fixed in version 0.80.2.

Changes

  • Dockerfile: Add C.UTF-8 locale, remove Claude CLI installation (moved to post-create)
  • devcontainer.json: Add Z_AI_API_KEY environment variable passthrough
  • post-create.sh: Install Claude CLI as vscode user with proper PATH setup
  • README.md: Add documentation for CLI version requirements and setup process

Test plan

  • devcontainer up completes successfully with CLI 0.80.2
  • Claude CLI works correctly as vscode user
  • UTF-8 locale is properly configured
  • tmux mouse support is enabled
  • Z_AI_API_KEY is passed through from host environment

🤖 Generated with Claude Code

- Upgrade @devcontainers/cli requirement to 0.80.2+ to fix hanging issue
- Install Claude CLI as vscode user instead of root to avoid permission issues
- Add C.UTF-8 locale configuration for proper UTF-8 support
- Add tmux mouse support configuration
- Pass through Z_AI_API_KEY environment variable from host
- Add devcontainer documentation

The CLI version 0.80.0 had a bug that caused devcontainer up to hang
after "Container started". This is fixed in 0.80.2+.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@sonesuke sonesuke force-pushed the fix/devcontainer-remote-user-and-tmux branch from 692d1f9 to add7323 Compare February 8, 2026 12:15
@sonesuke sonesuke merged commit dcfc0ae into main Feb 8, 2026
4 checks passed
@sonesuke sonesuke deleted the fix/devcontainer-remote-user-and-tmux branch February 8, 2026 12:39
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