Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Candidate test cases persist across interviews for the same problem in the same tab

Chiusa
#336 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@MZGamer ci sta già lavorando.

Dal 17/10/2026.

  • #337 di @MZGamer — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Observed behavior

When a candidate adds custom test cases during an interview and ends the interview, entering the same problem again within the same browser tab restores the custom test cases from the previous session. Because custom cases are persisted under codetrial.candidateCases.${problem.page} in sessionStorage and are never removed upon concluding an interview, previous test cases unexpectedly bleed into subsequent interview sessions.

Expected behavior

Custom test cases should be scoped to a single interview session. When an interview ends or when the candidate leaves the room, any persisted custom test cases for that problem should be cleared from sessionStorage so that a new interview starts with an empty test case list. Active in-session reloads should continue to preserve candidate test cases.

Reproduction
  1. From the lobby, select any coding problem (e.g., chargeback-pair-match or Two Sum) and enter the interview.
  2. Expand the "Add a cases" panel, enter valid inputs (e.g., Input: [[-3,4,3,90],0], Excepted:[[0,2]]), and click "Add case".
  3. Click "End interview" to conclude the interview.
  4. Navigate back to the lobby and start another interview on the same problem without closing the tab or restarting the browser.
  5. Expand "Add a cases" and observe that the case added in step 2 is still displayed.
CodeTrial version

Automated build of https://github.com/sysprog21/codetrial/commit/b491026dd2d779c4e8d82adcfb01ce49c6421a98.

Environment

OS: Windows 10
Broswer: Chrome

Sanitized evidence

Inspecting sessionStorage via the browser developer console after clicking "End interview" reveals that the key is retained:

// In browser console after clicking End interview:
window.sessionStorage.getItem("codetrial.candidateCases.chargeback-pair-match");
// Output: "[{"input":[[-3,4,3,90],0],"expected":[[0,2]]}]"
Public data confirmation
  • I removed credentials, session tokens, candidate recordings, and personal interview content from this public report.
Lingua principale
Rust
Stelle
160
Fork
64
Merge medio
1g 11h
PR unite (30g)
132

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.