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

Switching programming languages clears editor undo history

Aperta
#365 1 commento 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Chingyong0905 ci sta già lavorando.

Dal 19/10/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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
  1. Start a coding interview, select Python (for example), and enter a few lines of code.
  2. Delete a line and press Ctrl+Z to confirm that undo works.
  3. Delete the line again.
  4. Switch to any other supported programming language, then switch back to Python.
  5. Press Ctrl+Z again. 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.
Lingua principale
Rust
Stelle
177
Fork
100
Merge medio
1g 10h
PR unite (30g)
135

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.