Skip to content

Fix Graphical in Challenges#614

Merged
erinharrington-12 merged 2 commits intomasterfrom
bug/challenge_scratch
Feb 20, 2026
Merged

Fix Graphical in Challenges#614
erinharrington-12 merged 2 commits intomasterfrom
bug/challenge_scratch

Conversation

@twells46
Copy link
Copy Markdown
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.

Copy link
Copy Markdown
Contributor

@erinharrington-12 erinharrington-12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulled locally and approved.

@erinharrington-12 erinharrington-12 merged commit 533b9a1 into master Feb 20, 2026
6 checks passed
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