warpdotdev / warpdotdev/warp

warp hangs after paste in vi

Open
#5,059 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:performance bug ready-to-implement triaged
Dominant language
Rust
Stars
65.1k
Forks
5.6k
PR merge metrics
PR metrics pending

Description

Dupe Check
Describe the bug

after pasting anything into vi (insert mode) on warp, the vi will hang for some time (5-10 sec). Log is attached. No problem using other terminal application.
$ uname -a
Linux 6.5.0-41-generic #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC x86_64 GNU/Linux

To reproduce

Open vi
put into insert mode by keystroke i
paste anything

Expected behavior

terminal should not hang the basic command

Screenshots

No response

Operating system

Linux

Operating system and version

Linux 6.5.0-41-generic #41~22.04.2-Ubuntu SMP PREEMPT_DYNAMIC x86_64 GNU/Linux

Shell Version

bash version 5.1.16(1)-release (x86_64-pc-linux-gnu)

Current Warp version

v0.2024.06.18.08.02.stable_04

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

warp log file with comments beginning with <==

2024-06-23T13:35:33Z [INFO] active window changed: Some(WindowId(0))
2024-06-23T13:35:33Z [INFO] dispatching global action for root_view:update_quake_mode_state
2024-06-23T13:35:33Z [INFO] dispatching global action for workspace:save_app
2024-06-23T13:35:34Z [INFO] dispatching typed action: AltSelect(Begin { point: Point { row: 10, col: 39 }, side: Left, selection_type: Simple, position: Vector2F(<314.5, 161>) })
2024-06-23T13:35:34Z [INFO] dispatching typed action: Focus
2024-06-23T13:35:34Z [INFO] dispatching typed action: AltSelect(End)
2024-06-23T13:35:34Z [INFO] dispatching typed action: MaybeLinkClick { position: AltScreen(Point { row: 10, col: 39 }), modifiers: ModifiersState { alt: false, cmd: false, shift: false, ctrl: false } }
2024-06-23T13:35:37Z [INFO] dispatching typed action: MiddleClickonGrid { position: Some(AltScreen(Point { row: 9, col: 39 })) }
2024-06-23T13:35:37Z [INFO] dispatching global action for workspace:save_app
2024-06-23T13:35:37Z [WARN] redraw_frame was called 2 times before the frame was drawn
2024-06-23T13:35:40Z [INFO] dispatching typed action: Left <==try to move cursor, hangs
2024-06-23T13:35:43Z [INFO] active window changed: None
2024-06-23T13:35:43Z [INFO] dispatching global action for root_view:update_quake_mode_state
2024-06-23T13:35:43Z [INFO] dispatching global action for workspace:save_app
2024-06-23T13:35:51Z [INFO] Start to flush telemetry events to Segment
2024-06-23T13:35:51Z [INFO] Dropping empty telemetry batch
2024-06-23T13:35:51Z [INFO] Flushed telemetry events.
2024-06-23T13:35:52Z [INFO] active window changed: Some(WindowId(0))
2024-06-23T13:35:52Z [INFO] dispatching global action for root_view:update_quake_mode_state
2024-06-23T13:35:52Z [INFO] dispatching global action for workspace:save_app
2024-06-23T13:35:52Z [INFO] dispatching typed action: AltSelect(Begin { point: Point { row: 13, col: 42 }, side: Left, selection_type: Simple, position: Vector2F(<336.5, 223>) })
2024-06-23T13:35:52Z [INFO] dispatching typed action: Focus
2024-06-23T13:35:53Z [INFO] dispatching typed action: AltSelect(End)
2024-06-23T13:35:53Z [INFO] dispatching typed action: MaybeLinkClick { position: AltScreen(Point { row: 13, col: 42 }), modifiers: ModifiersState { alt: false, cmd: false, shift: false, ctrl: false } }
2024-06-23T13:35:54Z [INFO] dispatching typed action: UserInputSequence <==come back life
2024-06-23T13:35:55Z [INFO] dispatching typed action: UserInputSequence

Does this block you from using Warp daily?

No

Is this a Warp specific issue? (i.e. does it happen in Terminal, iTerm, Kitty, etc.)

Yes, this I confirmed this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the hang in vi insert mode by pasting text on Linux with bash, using the supplied Warp log to compare the pause and recovery sequence. Investigate the terminal input and paste path; done means paste no longer blocks vi for 5–10 seconds while other terminal behavior remains unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, linux, rust
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.