diff --git a/docs/decisions-log.md b/docs/decisions-log.md index 97f03d7..af24811 100644 --- a/docs/decisions-log.md +++ b/docs/decisions-log.md @@ -2,6 +2,26 @@ Record of architectural and technical decisions made during development. +## 2026-07-05 — Headset / media-key control of session execution (Step 25) + +**Decision:** Added `useMediaSession.js`, wiring the Media Session API (`navigator.mediaSession`) into `SessionExecuteView` so headphone buttons, OS media keys, and lock-screen controls can drive a workout: play/pause toggles the active timer, next/previous step through the queue, and stop exits immediately. Hardware media keys are only routed to a page actively playing audio through a media element — the Web Audio beeps from Step 12 don't qualify — so `useMediaSession.js` also starts a tiny silent looping `