diff options
| author | Jesse Vincent <jesse@fsck.com> | 2026-03-11 18:39:04 -0700 |
|---|---|---|
| committer | Jesse Vincent <jesse@fsck.com> | 2026-03-11 18:39:04 -0700 |
| commit | ec99b7c4a461ed246f6562f8959cbed6ffee92c9 (patch) | |
| tree | 5ae2d63241110ab49d6f6ace4c3abc036b2bc9cc /docs/README.opencode.md | |
| parent | 263e3268f45fdd7e6087f3fed8439e0f3031e247 (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 'docs/README.opencode.md')
0 files changed, 0 insertions, 0 deletions
