Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

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

未关闭
#336 3 条评论 0 个 reaction 已指派 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 小时
30 天内合并 PR
124

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sysprog21/codetrial 的其他 Issue

查看 sysprog21/codetrial 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。