Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#336 コメント 3 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@MZGamer がすでに取り組んでいます。

2026年10月17日 から。

  • #337 @MZGamer による — オープン

評価

この issue はまだ評価されていません。

説明

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.
主要言語
Rust
スター
160
フォーク
64
平均マージ
1日 12時間
マージ済み PR(30日)
124

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

sysprog21/codetrial のほかの issue

sysprog21/codetrial の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。