Same fix that landed on the old opus-DRED branch as c95255d: the remote
build script hardcoded `feat/android-voip-client` and swallowed the
reset failure with `|| true`, silently leaving the tree on whatever
branch was there. This ported the fix forward to feat/desktop-audio-
rewrite (which had the same bug).
Fix:
Local side:
- Auto-detect current branch via `git branch --show-current`
- Accept `--branch NAME` override
- Pass branch as a third positional arg to the remote script
- Abort on detached HEAD
- Updated usage docs for the "build what I'm working on" default
Remote side:
- Read BRANCH from $3, abort if empty
- `git fetch origin "$BRANCH"` — errors surface
- `git reset --hard "origin/$BRANCH"` — no `|| true`, failures abort
- Echo the resolved commit hash + subject after reset
- Notifications include both branch and hash:
"WZP Android [opus-DRED-v2 @ <hash>] done! APK: ..."
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>