Skip to content

Re-prompt on an empty line instead of continuing - #37

Merged
yuuu merged 1 commit into
mainfrom
fix/empty-line-reprompt
Oct 10, 2026
Merged

yuuu merged 1 commit into
mainfrom
fix/empty-line-reprompt

Conversation

@yuuu

@yuuu yuuu commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • An empty line (or one with only whitespace) at the (mrdbg) prompt was treated as continue, so an accidental Enter resumed the program. It now just shows the prompt again.
  • The change is confined to Command.dispatch, so every front end behaves the same: LocalConsole, the on-device UI::Console from mrdebug-console, mrdbg over a socket, and the DAP bridge.
  • Also removed the '' entry from VERBS, the matching sentence in help continue, and the "empty input" alias in the README.

Test plan

  • rake test:unit (assert updated so '' / ' ' return [[], :stay])
  • rake test:smoke
  • printf '\n\np x\nc\n' | build/host/bin/mruby script.rb shows the prompt again after each empty line
  • On R2P2-ESP32 hardware with mrdebug-console, Enter shows the prompt again

🤖 Generated with Claude Code

https://claude.ai/code/session_01WsK1fbKEYpJmCGZ6QSQW8P

An accidental Enter at the (mrdbg) prompt resumed the program. A blank
line now dispatches to [[], :stay], so every front end (LocalConsole,
the on-device Console, the socket relay) just shows the prompt again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WsK1fbKEYpJmCGZ6QSQW8P
@yuuu
yuuu merged commit 0f3e4a7 into main Oct 10, 2026
4 checks passed
@yuuu
yuuu deleted the fix/empty-line-reprompt branch October 10, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant