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

Open
#16,065 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, python
Domain
frontend, testing

Research direction

Read kolibri/plugins/qti_viewer/frontend/components/interactions/PerseusCustomInteraction.vue around lines 30–60 and trace how Perseus interaction events update RESPONSE. Check the explanation and definition widget click handlers, then run the relevant QTI viewer tests. Done means opening either widget leaves RESPONSE unchanged while changing an answer still records its grade.

Written by the indexing model from the issue text.

Description

bug DEV: renderers

❌ 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.

Dominant language
Python
Stars
1.2k
Forks
1.1k
Avg merge
2d 9h
Merged PRs (30d)
87

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from learningequality/kolibri

All issues in learningequality/kolibri

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.