Candidate test cases persist across interviews for the same problem in the same tab
维护者通常 1 天内回复
评估
这个 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
- From the lobby, select any coding problem (e.g.,
chargeback-pair-matchorTwo Sum) and enter the interview. - Expand the "Add a cases" panel, enter valid inputs (e.g., Input:
[[-3,4,3,90],0], Excepted:[[0,2]]), and click "Add case". - Click "End interview" to conclude the interview.
- Navigate back to the lobby and start another interview on the same problem without closing the tab or restarting the browser.
- 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
sysprog21/codetrial 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 80/100
sysprog21/codetrial#318 · 3 条评论 · 2 个 reaction ·
维护者通常 1 天内回复
-
A correct C solution to Clone Graph does not compile可能已有人在做 @Wu-1127 于 1 天前认领。 未关闭
sysprog21/codetrial#332 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Run the live interviewer on a local speech pipeline可能已有人在做 @alanhc 今天认领。 未关闭
sysprog21/codetrial#330 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Let the candidate undo Continue without camera in the preflight可能已有人在做 @HALA1028 于 1 天前认领。 未关闭
sysprog21/codetrial#327 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Allow users to start an interview without GitHub sign-in可能已有人在做 @TMQ0717 于 2 天前认领。 未关闭
sysprog21/codetrial#316 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 sysprog21/codetrial 的全部 Issue
相似的 Issue
-
area:ecosystem documentation
难度 2/5 1-3 小时 新手友好度 78/100
Chelis-Lang/chelis#3866 ·
维护者通常 1 天内回复
-
enhancement
难度 2/5 1-3 小时 新手友好度 68/100
metasequoiaime/msime#8620 ·
维护者通常 1 天内回复
-
agent-detection macos p2 triaged
难度 1/5 1 小时以内 新手友好度 90/100
维护者通常 1 天内回复
-
bug documentation sev-0
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复