kolibri
kolibri copied to clipboard
QTI records a blank, incorrect RESPONSE when a learner opens a Perseus explanation or definition
❌ 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
interactionis graded:PerseusCustomInteraction.vue#L30-L60. - Perseus's explanation widget and definition widget call
trackInteractionon click with no input, so opening either writes the empty answer intoRESPONSEas incorrect. - The definition widget renders on
release-v0.20.xonly once #16054 lands; the explanation widget does so today.
Expected behavior
- Opening an explanation or definition leaves
RESPONSEunchanged.
User-facing consequences
- A learner reading a definition before answering has an incorrect response recorded for that item.
Steps to reproduce
- Open a QTI item with a
qti-custom-interactionwhose Perseus item has an explanation widget. - Click the explanation toggle before entering an answer.
- The item's
RESPONSEholdscorrect: falsewith an emptysimpleAnswer.
Context
release-v0.20.xat e3b074b70f; develop'sPerseusCustomInteraction.vuegrades the same way.
Acceptance Criteria
- [ ] Clicking an explanation toggle or definition word in a QTI-embedded Perseus item leaves
RESPONSEas 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.