mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-06-27 19:05:48 +08:00
- Pass as top-level field in PTT requests so Whisper STT results are linked to the correct Python backend session - Add namespaced helper in pm.vue (info/warn/error/debug/group) controlled by localStorage PM_DEBUG flag; logs transmit/response cycles, TTS calls, flag/variable syncs, and fallback warnings - Log backend session creation context (flow, start state, vars, flags) in startMonitoring - Fix typo in text input hint: STT fails not PTT fails and fix: sync backend variables to frontend after each transmission The ATC say template was rendered using the frontend engine's local variable defaults (squawk '1234', hardcoded SID, etc.) instead of the authoritative values from the Python backend session. This caused the spoken clearance and the readback prompt to show different squawk codes. - After each backend transmission response, sync all response.variables into vars.value (same pattern already used for flags) - Prefer controller_say_rendered (pre-rendered by backend) over the raw template for TTS scheduling, eliminating any remaining dependency on local variable state for the ATC speech text