Kong / Kong/insomnia

Undo ignores last changes when cursor changes context

Open
#7,671 4 comments 0 reactions 0 assignees View on GitHub
B-bug S-unverified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

### Expected Behavior

After making a change, Command + Z (CTRL + Z) should undo any last update.

### Actual Behavior

When a change is made, if cursor is moved to any other textbox, undo action does nothing.

### Reproduction Steps

1. Create new HTTP request
2. Enter any text in request URL textbox
3. Click (focus cursor) on new parameter name textbox. No need to type anything
4. Click CTRL + Z and notice that nothing is happening

### Is there an existing issue for this?

- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.

### Additional Information

Undo action is expected to undo any change recently made in the editor / app. Current behavior may cause data to be lost, as more often then not some quick changes are done to requests which cannot be easily undone.

### Insomnia Version

9.3.2

### What operating system are you using?

Windows

### Operating System Version

Windows 11 version 23h2, build 22631.3593

### Installation method

insomnia.rest installer

### Last Known Working Insomnia version

_No response_

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue on Windows by editing the request URL, focusing the parameter name textbox, and pressing Ctrl+Z. Trace the undo handling across the request editor's textbox focus changes; done means the last URL edit is undone even after focus moves to another textbox.

Written by the indexing model from the issue text.

Assessment

Tech stack
electron, typescript
Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.