adithya-interview / scripts /claude-vscode-wrapper.sh
calmodovar23's picture
Upload 11 files
a7277a1 verified
Raw
History Blame Contribute Delete
621 Bytes
#!/bin/sh
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}" "$@"