diff --git a/web/src/stores/player.ts b/web/src/stores/player.ts index 47ea4e0..00ddf11 100644 --- a/web/src/stores/player.ts +++ b/web/src/stores/player.ts @@ -202,6 +202,11 @@ export const usePlayerStore = defineStore('player', { this.bots = this.bots.filter((b) => b.id !== botId); delete this.queues[botId]; delete this.timings[botId]; + // If the bot we were locked to is gone, drop the scope so the UI does not + // stay 'locked' onto a phantom (activeBot would silently fall back to bots[0]). + if (this.scopedBotId === botId) { + this.clearScope(); + } }, setQueue(botId: string, queue: Song[]) {