_split_command_args toggled its in-string state with a single-char check
(current[-1] != '\\'), so a real closing quote preceded by an escaped
backslash (\\") was misread as escaped. The parser stayed in-string, swallowed
the following comma separators, and returned the whole remainder as one
argument — e.g. Text["a\\", 1, 2] was reported as an unterminated string and
its scalar-to-point repair was lost. Track escaping with a flag that flips on
each unescaped backslash so an even run closes the string.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
VisualizerRegistry.get() normalizes the id (strip + lower) before the catalog
lookup, but set_enabled/install_bundled/uninstall keyed the catalog with the
raw id and forwarded it to the store. Catalog keys are always lowercase
(VisualizerManifest._valid_id lowercases them), so a valid id in a different
case or with surrounding whitespace — e.g. the raw path param from the
visualizers router — was rejected as not installed/not found, or would have
persisted store state under a key the catalog never matches. Normalize the id
at the top of each mutator, matching get().
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>