summaryrefslogtreecommitdiff
path: root/tests/opencode
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2026-03-11 18:39:04 -0700
committerJesse Vincent <jesse@fsck.com>2026-03-11 18:39:04 -0700
commitec99b7c4a461ed246f6562f8959cbed6ffee92c9 (patch)
tree5ae2d63241110ab49d6f6ace4c3abc036b2bc9cc /tests/opencode
parent263e3268f45fdd7e6087f3fed8439e0f3031e247 (diff)
Exit server when owner process dies (harness-agnostic cleanup)
start-server.sh passes $PPID as BRAINSTORM_OWNER_PID to the server. The server checks every 60s if the owner process is still alive (kill -0). If it's gone, the server shuts down immediately — deletes .server-info, writes .server-stopped, exits cleanly. Works across all harnesses (CC, Codex, Gemini CLI) since it tracks the shell process that launched the script, which dies when the harness dies. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'tests/opencode')
0 files changed, 0 insertions, 0 deletions