Skip to content

Commit 71594b8

Browse files
Claudeclaude
andcommitted
Improve devcontainer environment variable forwarding
Replace manual variable forwarding with comprehensive environment dump to ensure all user-configured tools and package managers are available to the catnip service. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 29a9ffe commit 71594b8

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

.devcontainer/features/feature/catnip-env.sh

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,5 @@ echo "Updating catnip service environment..."
66
sudo tee -a /etc/default/catnip >/dev/null <<EOF
77
88
# Updated with current codespace environment ($(date))
9-
export GITHUB_TOKEN="${GITHUB_TOKEN:-}"
10-
export GITHUB_USER="${GITHUB_USER:-}"
11-
export CODESPACE_NAME="${CODESPACE_NAME:-}"
12-
export GITHUB_REPOSITORY="${GITHUB_REPOSITORY:-}"
13-
export CODESPACES="${CODESPACES:-}"
14-
export PATH="${PATH:-}"
15-
# TODO: we'll likely want to forward other env vars here
16-
export ANTHROPIC_API_KEY="${ANTHROPIC_API_KEY:-}"
17-
export OPENAI_API_KEY="${OPENAI_API_KEY:-}"
9+
$(printenv | sed 's/^/export /')
1810
EOF

.devcontainer/features/feature/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "feature",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"name": "catnip",
55
"description": "Ensures SSH, installs catnip, Claude CLI, GitHub CLI, and Catnip VS Code sidebar extension.",
66
"options": {

0 commit comments

Comments
 (0)