mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-03 07:26:22 +08:00
Moves applyBackendDecision, handlePilotTransmission, the silence auto-advance timer, startMonitoring, loadFlightPlans, the screen transitions (startDemoFlight/launchScenario/flyAgain/backToSetup), sendPilotText and restoreBugReportState out of live-atc.vue. The dependency is genuinely circular: the controller drives speech, PTT and the bridge, while all three need to call back into it. It is constructed last, and the page hands the other composables two thin forwarding closures that resolve `session` at call time. The engine, frequency and speech destructures in the page shrink accordingly — most of what they exposed is now only read inside the controller. Also drops normalizeExpectedText, which had no callers. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>