Skip to content

Conversation

@twells46
Copy link
Contributor

@twells46 twells46 commented Jan 7, 2026

Fixes #586 by adding a fallback to default code when current code is empty (as it is in Graphical). Also enabled Graphical compilation by adding case to ChallengeRoot onRunClick_.


Note

Improves challenge execution flow and adds graphical language support.

  • Adds graphical case in onRunClick_ to start the worker with language: 'graphical'
  • Falls back to ProgrammingLanguage.DEFAULT_CODE[language] when saved code is undefined for run, download, AI tutor requests, and editor rendering
  • Updates loading guard to check code === undefined (allowing empty strings)
  • Includes graphical in ChallengeCompletion.EMPTY.code

Written by Cursor Bugbot for commit 2dd3834. This will update automatically on new commits. Configure here.

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.

Switching to Scratch causes challenge to hang

2 participants