c0447ca327
PillSessionRegistry (upstream 5652ea8, after #245 by @TheodoreRiant) tracks the live sessions behind each pill: only the last session takes the card and its diffs down, a Stop finishes the pill only when no sibling is mid-turn, the 5.2 s idle reset is skipped when a new turn started, and the oldest live session owns the name and folder (passed on when it ends). Upstream tests pass on our copy: bash scripts/test-session-registry.sh. Co-Authored-By: TheodoreRiant <57949703+TheodoreRiant@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
338 B
Bash
Executable File
9 lines
338 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/coucou-session-registry.XXXXXX")"
|
|
trap 'rm -rf "$TEST_DIR"' EXIT
|
|
swiftc NotchBuddy/Sources/App/PillSessionRegistry.swift \
|
|
tests/PillSessionRegistryTests.swift -o "$TEST_DIR/session-registry-tests"
|
|
"$TEST_DIR/session-registry-tests"
|