Commit Graph

4 Commits

Author SHA1 Message Date
zenord 7766f9d3eb fix: wait for server HELLO event before CONNECTED, add on-screen connection log
- CONNECTED now requires receiving server hello event (not just sending client hello)
- 15s handshake timeout: if auth/hello never arrives, show timeout reason
- On-screen log shows last 3 connection events (ws open, auth ok, hello, closed, timeout)
- Generation guard covers early/duplicate auth and stale socket callbacks

Version 0.2.2-m5-fix3
2026-10-11 11:51:19 +08:00
zenord 218d905e63 fix: wait for server auth-ok before sending hello
Client sent hello immediately on WebSocket open, but server sends
auth-ok first (LAN direct / guest cookie / admin bearer) and expects
hello only after that. Client hello was parsed as auth message,
causing silent rejection and permanent disconnected state.

Fix: track authReceived, send hello only after AUTH event arrives.
Also add manual reconnect button and failure reason display.

Version 0.2.1-m5-fix1
2026-10-11 11:38:13 +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