icoa-cli 2.15.5 → 2.15.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -521,9 +521,11 @@ export function registerExamCommand(program) {
521
521
  const answered = Object.keys(state.answers).length;
522
522
  const total = state.session.questionCount;
523
523
  printSuccess(`Q${num}: ${c} ✓ (${answered}/${total} answered)`);
524
- // Auto-show next question
524
+ // Auto-show next question and update _lastQ
525
525
  if (num < state.questions.length) {
526
526
  const nextQ = state.questions[num]; // 0-indexed: questions[num] = question num+1
527
+ state._lastQ = nextQ.number;
528
+ saveExamState(state);
527
529
  printQuestion(nextQ, state.answers[nextQ.number]);
528
530
  }
529
531
  else if (answered === total) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "icoa-cli",
3
- "version": "2.15.5",
3
+ "version": "2.15.6",
4
4
  "description": "ICOA CLI — The world's first CLI-native CTF competition terminal",
5
5
  "type": "module",
6
6
  "bin": {