Spaces:
Paused
Paused
| set -eu | |
| # Claude Code's VS Code extension invokes a configured process wrapper as: | |
| # wrapper <bundled-claude-path> <claude-arguments...> | |
| # | |
| # The Open VSX linux-x64 package can occasionally contain a native binary that | |
| # is not runnable on the code-server base image. Drop the extension-injected | |
| # binary path and launch the separately installed Anthropic CLI instead. | |
| REAL_CLAUDE="${CLAUDE_SYSTEM_BIN:-/usr/local/bin/claude-system}" | |
| if [ "$#" -gt 0 ]; then | |
| case "$1" in | |
| */resources/native-binary/claude|*/resources/native-binary/claude.real) | |
| shift | |
| ;; | |
| esac | |
| fi | |
| exec "${REAL_CLAUDE}" "$@" | |