0199e9a7f0
ApprovalQueue (upstream e391a14, after #157 by @Mydao57): up to 5 requests wait in line, the card shows the oldest with «1/N» and the project of the asking session; a click answers the request that was on screen and is ignored if the card moved on. Each request keeps its own hang-up monitor and 115 s timeout and is settled by its own session's events; a sibling session's events are no longer dropped while one waits. BroV keeps its DangerCheck warning per request and the iPhone relay answers the request it was shown. Upstream tests pass: bash scripts/test-approval-queue.sh. Co-Authored-By: Mydao57 <150259698+Mydao57@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
9 lines
320 B
Bash
Executable File
9 lines
320 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/coucou-approval-queue.XXXXXX")"
|
|
trap 'rm -rf "$TEST_DIR"' EXIT
|
|
swiftc NotchBuddy/Sources/App/ApprovalQueue.swift \
|
|
tests/ApprovalQueueTests.swift -o "$TEST_DIR/approval-queue-tests"
|
|
"$TEST_DIR/approval-queue-tests"
|