kolibri icon indicating copy to clipboard operation
kolibri copied to clipboard

QTI records a blank, incorrect RESPONSE when a learner opens a Perseus explanation or definition

Open rtibblesbot opened this issue 1 week ago • 0 comments

❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.

Target branch: release-v0.20.x

Observed behavior

  • In a QTI item embedding Perseus, every Perseus interaction is graded: PerseusCustomInteraction.vue#L30-L60.
  • Perseus's explanation widget and definition widget call trackInteraction on click with no input, so opening either writes the empty answer into RESPONSE as incorrect.
  • The definition widget renders on release-v0.20.x only once #16054 lands; the explanation widget does so today.

Expected behavior

  • Opening an explanation or definition leaves RESPONSE unchanged.

User-facing consequences

  • A learner reading a definition before answering has an incorrect response recorded for that item.

Steps to reproduce

  1. Open a QTI item with a qti-custom-interaction whose Perseus item has an explanation widget.
  2. Click the explanation toggle before entering an answer.
  3. The item's RESPONSE holds correct: false with an empty simpleAnswer.

Context

  • release-v0.20.x at e3b074b70f; develop's PerseusCustomInteraction.vue grades the same way.

Acceptance Criteria

  • [ ] Clicking an explanation toggle or definition word in a QTI-embedded Perseus item leaves RESPONSE as it was.
  • [ ] Changing an answer input in the same item still grades into RESPONSE.

AI usage

Claude Code found this while fixing #16054, traced it in the source and drafted this issue.

rtibblesbot avatar Nov 26 '26 12:11 rtibblesbot