Local recording ends at Finish, before the learning review

Aperta Adatta ai principianti
#663 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@richard81115 ci sta già lavorando.

Dal 11/11/2026.

  • #679 di @richard81115 — aperta

Valutazione

Difficoltà
1/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
84/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
documentation

Direzione di ricerca

Leggi la sezione “Local recordings” in docs/task-mode.md e confrontane la descrizione con il comportamento segnalato qui: la registrazione termina quando il tentativo è concluso, prima che venga mostrata la revisione dell’apprendimento. Aggiungi una frase che spieghi che la revisione non è inclusa e che, se necessario, deve essere registrata separatamente. Il lavoro è completato quando la documentazione descrive chiaramente dove termina la registrazione e cosa possono fare gli studenti per registrare la revisione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Observed behavior

The local task recorder stops as soon as the attempt is finished, so the downloaded WebM ends right after the "Finish and freeze this revision" dialog and never shows the learning review. docs/task-mode.md says that completion finalizes the recording, so the behavior matches the documentation.

Why it matters

The course assignment asks for a recording "from the rules page to the learning review after Finish". The built-in recorder cannot capture that last part, and a new capture cannot be started during the attempt.

Steps to reproduce

  1. Start the server with cargo run --release -- web --task-mode and open http://localhost:3000 in Chrome.
  2. Accept the rules, allow the microphone and camera, and calibrate.
  3. On the preparation page, start the local recording, choose this tab and share tab audio.
  4. Press Start, work on the task, press Finish and confirm.
  5. Open the downloaded WebM. Its last frame shows the workspace just after the dialog closes; the learning review that the page shows next is not in the file.

Cause

In web/task.js, attemptOver() calls stopMonitoring(), which calls localRecording.finish() and releases the camera and microphone. The result arrives later and renderReview() shows it, after the recorder has already saved the file.

Plan

The change I can send is a documentation one: a sentence in the "Local recordings" section of docs/task-mode.md stating that the recording ends when the attempt is finished and therefore does not include the learning review, so a learner who needs the review on video knows to capture it separately.

Recording through the review would be a larger change: for an attempt that ends with Finish, keep the tab capture running after monitoring stops, let the recorder drop its microphone input without reporting a lost microphone, and finalize in renderReview() once the review is in the page, with browser tests for both paths. I cannot commit to that before the assignment deadline, so I am leaving it as a direction rather than a promise.

Environment

codetrial 0.1.0 (5570fe9), built from source; server in WSL Ubuntu on Windows 11; Chrome 157.0.8103.39; default task rubik, language C.

Lingua principale
Rust
Stelle
228
Fork
150
Merge medio
1g 3h
PR unite (30g)
226

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di sysprog21/codetrial

Tutte le issue di sysprog21/codetrial

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.