Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion docs/CHALLENGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8540,7 +8540,8 @@ trace and a speech listen too: a trace was lost at session end with no word.

A recording and a trace leave audio's note (280), so a later status or stop names
the cause instead of "nothing is recording": another client's quit, `daemon stop`,
a driver switch, a shutdown.
a driver switch, a shutdown. `clean-stop.sh` counted the new notes as a daemon left
running until it learned them too, as it had to for audio's.

**Measured:** with a running recording, all five clients on the Android 15
emulator; Python, exit without quit and a trace on the iOS 26.5 simulator. pytest
Expand Down
7 changes: 4 additions & 3 deletions docs/checks/clean-stop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,11 @@ if [ -d "$state/daemon" ]; then
# it waits for the next status or stop to report it (CHALLENGES 280).
# Counted as one, it made this check fail with nothing running, and
# --quit could not clear it. CHALLENGES 285.
n=$(ls -A "$state/daemon" 2>/dev/null | grep -v '^audio-.*\.json$' | wc -l | tr -d ' ')
notes='^(audio|recording|trace)-.*\.json$'
n=$(ls -A "$state/daemon" 2>/dev/null | grep -Ev "$notes" | wc -l | tr -d ' ')
[ "$n" = "0" ] && note "daemon socket/pid" "cleared" || bad "daemon socket/pid" "$n file(s) left"
lost=$(ls -A "$state/daemon" 2>/dev/null | grep -c '^audio-.*\.json$')
[ "$lost" = "0" ] || note "lost audio captures" "$lost noted, for the next status or stop to report"
lost=$(ls -A "$state/daemon" 2>/dev/null | grep -Ec "$notes")
[ "$lost" = "0" ] || note "lost captures" "$lost noted, for the next status or stop to report"
fi

echo
Expand Down
Loading