summaryrefslogtreecommitdiff
path: root/tests/opencode/test-plugin-loading.sh
diff options
context:
space:
mode:
authorJesse Vincent <jesse@primeradiant.com>2026-06-09 17:27:30 -0700
committerDrew Ritter <drew@primeradiant.com>2026-06-16 10:09:45 -0700
commit7c805f34d2e8bc57837d81891dd0eb3859c6f371 (patch)
treefa9cadcf9f002f37078e5f2137b93cd119871139 /tests/opencode/test-plugin-loading.sh
parentfb08947dedcb206dc783188951c17f18a0cbc399 (diff)
fix(brainstorm-server): tie stop-server PID check to the session's port
The node+server.cjs command match (from the adversarial review) still matched any unrelated node process running a file named server.cjs. When we recorded the bound port (state/server-info) and lsof is available, additionally require the PID to be the process actually LISTENING on this session's port — which rules out a different project's server.cjs / editor task runner that recycled the stale PID. Falls back to the command match when the port or lsof isn't available. Test: a 'node server.cjs' process not listening on the recorded port is spared. Refs #1703
Diffstat (limited to 'tests/opencode/test-plugin-loading.sh')
0 files changed, 0 insertions, 0 deletions