Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

disk: fix promptSlug ReferenceError on Enter with labelBack

promptSlug was declared inside the Backspace/Escape branch but referenced
from the sibling Enter-with-history-empty branch, throwing on every
keyboard submit while a labelBack was active (e.g. inside aa.mjs).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

+1 -1
+1 -1
system/public/aesthetic.computer/lib/disk.mjs
··· 11858 11858 // 🌐 Branded domain: Escape/backtick/Enter navigates to aesthetic.computer 11859 11859 if (data.key !== "Backspace" && redirectIfBrandedDomain()) return; 11860 11860 11861 + const promptSlug = "prompt"; 11861 11862 if (!labelBack || data.key === "Backspace" || data.key === "Escape") { 11862 - let promptSlug = "prompt"; 11863 11863 if (data.key === "Backspace") { 11864 11864 triggerBackspaceAction(merryOriginalCommand); 11865 11865 } else {