#!/bin/bash # Console + log wrapper used by the OpenCode plugins. # tee mirrors the server's output into the launching console (the WSL window # the plugin opens) while the log file stays the durable record. Closing the # window kills only tee and stops the log growing; Python raises # BrokenPipeError on the dead pipe (no SIGPIPE death) and the logging module # contains it, so the server keeps running. DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) cd /home/dfj title "vllm: qwen3.8-fast" 2>/dev/null || true set -o pipefail bash "$DIR/launch_fast_unsloth.sh" 2>&1 | tee /home/dfj/fast_unsloth.log echo "EXIT=$?" >> /home/dfj/fast_unsloth.log