Switching programming languages clears editor undo history
Maintainers usually reply within 1 day
@Chingyong0905 is already working on this.
Since Oct 19, 2026.
Assessment
This issue has not been assessed yet.
Description
Observed behavior
Switching programming languages clears the code editor's undo history, even though the code itself is preserved.
As a result, users cannot undo previous edits or recover accidentally deleted code after switching back to the original language.
Expected behavior
Each programming language should retain its own undo/redo history when switching between languages during an interview.
Reproduction
- Start a coding interview, select Python (for example), and enter a few lines of code.
- Delete a line and press
Ctrl+Zto confirm that undo works. - Delete the line again.
- Switch to any other supported programming language, then switch back to Python.
- Press
Ctrl+Zagain. The deleted line can no longer be restored after switching back to Python.
This issue occurs regardless of which programming language is selected during the switch.
CodeTrial version
codetrial 0.1.0 (5b4d8c7)
Environment
OS: Windows 11 Home Single Language, Version 25H2 (Build 26200.9711)
Browser: Google Chrome 155.0.8059.80 (64-bit)
Language: All supported programming languages (Python, JavaScript, C, C++, Java)
Interview loop: Coding interview
Problem: Sensor Calibration Index (LeetCode 108)
REACTO or STAR step: Code
Reconnect: None
Sanitized evidence
No response
Public data confirmation
- I removed credentials, session tokens, candidate recordings, and personal interview content from this public report.
- Dominant language
- Rust
- Stars
- 177
- Forks
- 100
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 135
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from sysprog21/codetrial
-
Audio output can be confirmed without playing a test soundPossibly taken @ChenYingHan1121 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
sysprog21/codetrial#359 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
Add a Copy code button to the final reportPossibly taken @yansawu claimed this 2 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
sysprog21/codetrial#318 · 5 comments · 2 reactions · 1 assignee ·
Maintainers usually reply within 1 day
-
C tests accept a wrong next pointer on the last node in Org Chart Row NavigationPossibly taken @winter77777 claimed this 1 day ago. Open
sysprog21/codetrial#370 · 1 assignee ·
Maintainers usually reply within 1 day
-
"Let me think about it for a moment" does not start a thinking holdPossibly taken @PeteChiang1211 claimed this 1 day ago. Open
sysprog21/codetrial#369 · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
sysprog21/codetrial#368 · 1 comment ·
Maintainers usually reply within 1 day
All issues in sysprog21/codetrial
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
home-assistant/installer#308 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
swc-project/swc-next#1053 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
nautechsystems/nautilus_trader#5387 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
NomicFoundation/edr#1872 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
linebender/resvg#1179 · 1 comment ·
Maintainers usually reply within 2 days