#!/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: agents-a1" 2>/dev/null || true set -o pipefail bash "$DIR/launch_agents_a1.sh" 2>&1 | tee /home/dfj/agents_a1.log echo "EXIT=$?" >> /home/dfj/agents_a1.log