From 9fecc9c4ee7c469d0cc9cee3f571ff6a2b6fa6df Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Mon, 2 Nov 2026 07:00:03 -0800 Subject: [PATCH] Say the alias hint filters only the first two aliases, and drop an id the filter now covers --- changelog.d/1462-voice-alias-hint-budget.md | 2 +- src/voice/layerManifest.js | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/changelog.d/1462-voice-alias-hint-budget.md b/changelog.d/1462-voice-alias-hint-budget.md index 82628c52c..ae0b1be38 100644 --- a/changelog.d/1462-voice-alias-hint-budget.md +++ b/changelog.d/1462-voice-alias-hint-budget.md @@ -1,5 +1,5 @@ - Leave layer aliases the layer id already spells, such as "dams" for `local-dams`, out of the voice layer hint. The Realtime prompt is 305 characters shorter, leaving room under the 52,000 gate for new - voice-toggleable layers; every alias is still accepted (quanticsoul4772, + voice-toggleable layers; every alias is still accepted (@quanticsoul4772, #1462). diff --git a/src/voice/layerManifest.js b/src/voice/layerManifest.js index faa7207d0..962bf6949 100644 --- a/src/voice/layerManifest.js +++ b/src/voice/layerManifest.js @@ -525,8 +525,6 @@ const SELF_EVIDENT_IDS = new Set([ 'radio', 'wind', 'directions', - // The brand is already the layer id; all spoken aliases remain accepted. - 's2-ghostmaps', ]); /** Lower case with spaces and hyphens removed: "Data centers" → "datacenters". */ @@ -535,9 +533,9 @@ const spelled = (text) => text.toLowerCase().replace(/[\s-]+/g, ''); /** * Compact model-facing alias hint: "alias/alias→id; …" for toggleable layers * whose id is not already the spoken word. At most two aliases per layer keep - * the tool JSON small; the runner accepts the full alias list. An alias the id - * already spells ("dams"→local-dams, "weather radar"→weather-radar) is left - * out, and so is a layer with no other alias. + * the tool JSON small; the runner accepts the full alias list. Of those two, + * an alias the id already spells ("dams"→local-dams, "weather radar"→ + * weather-radar) is left out, and a layer with neither left gets no hint. * @returns {string} One line for the layerId description. */ export function voiceLayerAliasHint() {