Commit Graph

8 Commits

Author SHA1 Message Date
zenord 9b428fb76f fix: fence voice turns and playback; add opt-in face context 2026-10-11 20:50:11 +08:00
zenord 885bb3f2db fix: ABORT marks old turn as blocked, not new turn
acceptTurn() runs before ABORT handler, updating currentTurn to new value.
ABORT then set blockedTurn = currentTurn (new turn), causing all audio frames
for the new turn to be silently dropped. UI stuck at THINKING/ANSWERING.

Fix: save oldTurn before acceptTurn; ABORT marks oldTurn as blocked.
listen_start ABORT explicitly clears blockedTurn (no blocking).

Version 0.3.3
2026-10-11 19:34:33 +08:00
zenord 71cb17036b feat: diagnostic report button, scrollable log view
- DiagnosticLog: 500-entry ringbuffer, all DebugLogUpload writes captured
- DiagnosticReportUpload: POST /debug/report with device info + logs + session state
- Button at bottom: shows sent/failed, clears sent entries on success
- Screen log scrollable, shows last 10 entries
- Gateway POST+GET /debug/report deployed on SPARK-2

Version 0.3.1
2026-10-11 19:11:06 +08:00
zenord 6494d78253 fix: audio frame size, rotation rebuild, background disconnect reason
- AudioCapture: short reads buffered and concatenated, only send when exactly 640B
- AndroidManifest: configChanges prevents rotation from recreating Activity
- onStop shows explicit disconnect reason instead of silent disconnect
- Remote debug log now works (HTTPS endpoint fixed)

Version 0.3.0
2026-10-11 19:01:28 +08:00
zenord 8652659e68 fix: abort listen_start no longer blocks new turn, debug log HTTPS fix
- ABORT with reason=listen_start no longer marks new turn as blocked
- ABORT ignored when connection lost or voice not active
- finish() logs stack trace to Logcat, truncated summary to screen/remote
- DebugLogUpload endpoint fixed to HTTPS (was cleartext HTTP to HTTPS port)
- Granular logging: onEvent entry, acceptTurn details, ABORT/LISTEN decisions,
  startCapture result, onConnection transitions, finish() caller

Version 0.2.7-m5-fix8
2026-10-11 18:40:55 +08:00
zenord 198fe51cec feat: remote debug log upload to gateway for LAN diagnosis
- DebugLogUpload: isolated OkHttp pool, 3s timeout, bounded queue, silent drop
- POST /debug/log on gateway: LAN-only, JSON ringbuffer (200 entries), GET to read
- Logs: app_launch, connect phases, ws events, errors (no token/audio/chat content)
- UI shows debug logging active indicator
- network_security_config: cleartext HTTP allowed for gateway host (LAN debug only)
- Gateway v0.7.1 + debug log endpoint deployed on SPARK-2

Version 0.2.5-m5-fix6
2026-10-11 12:51:51 +08:00
zenord f1da7abf93 M5: camera expression cues via MediaPipe Face Landmarker
- CameraX ImageAnalysis + Face Landmarker (CPU, 10Hz, KEEP_ONLY_LATEST)
- Rule-based blendshape mapping: smiling/brow_furrowed/gaze/blink/face_presence
- Camera off by default, explicit user toggle, no image storage/upload
- Expression cues displayed as passive labels, never affect dialogue flow
- CameraX pinned 1.4.2 (compileSdk 34 compat), MediaPipe tasks-vision 1.1.0
- Face model bundled: face_landmarker.task (sha256 TOFU recorded)
- docs/EXPRESSION.md with rules table and privacy notes
- Version 0.2.0-m5
2026-10-11 08:40:51 +08:00
zenord 07d5f77808 M0-M2: LAN voice Android client skeleton + WSS protocol + audio pipeline
- M0: Gradle scaffold (AGP 8.5.2 / Kotlin 2.0.20 / Compose BOM 2024.09.03), arm64-v8a, minSdk 26
- M1: OkHttp WebSocket client, LV binary frame codec, connection generation guard, cert pinning
- M2: AudioRecord capture (16k PCM16 20ms), AudioTrack playback (48k), barge-in, RECORD_AUDIO
- Server address in res/values/config.xml; persona/lore resolved server-side
- PLAN.md with milestones and decisions
2026-10-11 08:19:31 +08:00