mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 08:47:44 +00:00
switch to shell tool, deprecating terminal (#203)
* switch to shell tool, deprecating terminal * Merge remote-tracking branch 'origin/main' into deprecate_terminal
This commit is contained in:
@@ -38,8 +38,8 @@ if [ -n "${GEMINI_API_KEY:-}" ]; then run_args+=(--env GEMINI_API_KEY="$GEMINI_A
|
||||
# copy GEMINI_CODE_MODEL
|
||||
if [ -n "${GEMINI_CODE_MODEL:-}" ]; then run_args+=(--env GEMINI_CODE_MODEL="$GEMINI_CODE_MODEL"); fi
|
||||
|
||||
# copy SHELL_TOOL to optionally enable shell tool
|
||||
if [ -n "${SHELL_TOOL:-}" ]; then run_args+=(--env SHELL_TOOL="$SHELL_TOOL"); fi
|
||||
# copy TERMINAL_TOOL to optionally revert to old terminal tool
|
||||
if [ -n "${TERMINAL_TOOL:-}" ]; then run_args+=(--env TERMINAL_TOOL="$TERMINAL_TOOL"); fi
|
||||
|
||||
# copy TERM and COLORTERM to try to maintain terminal setup
|
||||
if [ -n "${TERM:-}" ]; then run_args+=(--env TERM="$TERM"); fi
|
||||
@@ -51,4 +51,4 @@ run_args+=(--env "SANDBOX=$IMAGE:$TAG-$INDEX")
|
||||
|
||||
node_args=("$CLI_PATH" "$@")
|
||||
|
||||
docker run "${run_args[@]}" --init --workdir "$WORKDIR" "$REGISTRY/$IMAGE:$TAG" node "${node_args[@]}"
|
||||
docker run "${run_args[@]}" --init --workdir "$WORKDIR" "$REGISTRY/$IMAGE:$TAG" node "${node_args[@]}"
|
||||
|
||||
Reference in New Issue
Block a user