show solution documentation says it shows but does not execute, but it does execute

Author: dankesslerCreated Sep 26, 2026Updated Sep 26, 2026

The help text for show solution is misleading (or perhaps out of date).

Current documentation (in src/js/sandbox/commands.js):

javascript
'show solution': 'Write the current level\'s solution into the command box (without running it) so you can read, edit, or run it yourself'

Actual behavior (in src/js/level/index.js):

javascript
Main.getEventBaton().trigger(
  'commandSubmitted',
  toIssue
);

This triggers the solution command and executes it automatically (after the confirmation dialog when applicable). I

Expected behavior: The documentation should accurately describe the current behavior, or the implementation should be changed to match the documented text.

This discrepancy is confusing for users who expect show solution to be read-only.

I find the current behavior a little jarring since it plays through the solution rather quickly. I'm using this (amazing!!!) tool in a class I'm teaching, and I think adjusting the show solution command to adhere to the documentation would give a better learning experience.

Source: pcottle/learnGitBranching