[Bug] Playground: output pane shows previous lesson’s grade after navigating to another lesson #20

Closed
opened 2026-04-28 22:41:44 +00:00 by spikerj · 1 comment
Owner

Summary

When submitting a lesson in the playground for grading, the output pane continues to show the graded result from the previous lesson after the user advances to another lesson.

Expected

  • Submit an answer → the output pane shows grading output for that submission.
  • When continuing to the next lesson, the output pane should be hidden (or cleared) until the user submits again for the lesson currently on screen.
  • While viewing a lesson, the pane must only reflect content for that lesson, not a prior one.

Actual

Stale grading output from the prior lesson remains visible after navigation.

Notes

Likely frontend state tied to playground lesson navigation (output-pane). Clear or collapse on lesson change; reset before showing new results after submit.

## Summary When submitting a lesson in the playground for grading, the **output pane** continues to show the graded result **from the previous lesson** after the user advances to another lesson. ## Expected - Submit an answer → the output pane shows grading output for **that submission**. - When continuing to **the next lesson**, the output pane should be **hidden** (or cleared) until the user submits again for the **lesson currently on screen**. - While viewing a lesson, the pane must only reflect content **for that lesson**, not a prior one. ## Actual Stale grading output from the prior lesson remains visible after navigation. ## Notes Likely frontend state tied to playground lesson navigation (`output-pane`). Clear or collapse on lesson change; reset before showing new results after submit.
Author
Owner

Resolved -- Added clearResult() method to ILanguageRuntimeAdapter interface and all 3 runner services (C#, Python, JS). Called this.runtime.clearResult() in selectLesson() so stale grade output from a previous lesson is cleared when navigating between lessons.

**Resolved** -- Added `clearResult()` method to `ILanguageRuntimeAdapter` interface and all 3 runner services (C#, Python, JS). Called `this.runtime.clearResult()` in `selectLesson()` so stale grade output from a previous lesson is cleared when navigating between lessons.
Sign in to join this conversation.