Skip to content

Hide answer feedback until after submission#74

Merged
sfw merged 1 commit intomainfrom
sfw/hide-answer-feedback
Mar 20, 2026
Merged

Hide answer feedback until after submission#74
sfw merged 1 commit intomainfrom
sfw/hide-answer-feedback

Conversation

@sfw
Copy link
Copy Markdown
Owner

@sfw sfw commented Mar 20, 2026

Summary

  • Frontend: Option body text (containing explanations and correctness hints like "Correct!") was displayed alongside each choice before the learner submitted, giving away the answer. Now option.body is hidden until after submission, with correct/incorrect visual styling (green checkmark / red X) applied post-submit. Options are also disabled after submission to prevent changes.
  • Backend prompt: Updated both batch and streaming schema contracts to explicitly instruct the LLM that option body must never reveal whether an option is correct or incorrect — body should describe the reasoning or misconception behind the choice, not its correctness.

Test plan

  • Backend tests: 721 passed
  • Frontend tests: 289 passed
  • Backend lint clean
  • Frontend lint clean
  • Frontend production build passes
  • Manual: verify option body text is hidden before submission
  • Manual: verify correct option shows green styling and incorrect shows red after submit
  • Manual: verify options are disabled after submission

🤖 Generated with Claude Code

Option body text (explanations, "Correct!" labels) was visible before
the learner submitted their answer, giving away the correct choice.
Now option.body is hidden until after submission, and correct/incorrect
styling is applied post-submit. The LLM prompt schema also explicitly
instructs that option body must never reveal correctness.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sfw sfw merged commit bc00e8e into main Mar 20, 2026
4 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.

1 participant