Spaces:
Paused
Paused
File size: 621 Bytes
a7277a1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/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}" "$@"
|