Skip to content

[Bug]: Bracketed paste control characters [200~ leaked into terminal on Ctrl+V #198

Closed

Description

@IMNewJobFirst

发生了什么?/ What happened?

When copying and pasting text into the Navop SSH terminal session using standard shortcuts (Cmd+C / Ctrl+C and Cmd+V / Ctrl+V), bracketed paste escape sequences fail to be properly handled or stripped.

As a result, unwanted literal characters such as [200~ (and trailing ~) are inserted directly into the remote command line prompt (e.g., cd [200~<command>~).

如何复现?/ How can we reproduce it?

Environment

  • Software: Navop
  • Version: 0.17.0
  • Client OS: macOS Tahoe 26.6.2
  • Remote Host OS: Ubuntu 26.04 LTS
  • Remote Shell: bash

Steps to Reproduce

  1. Open Navop 0.17.0 on macOS Tahoe 26.6.2.
  2. Establish an SSH connection to a remote server running Ubuntu 26.04 LTS.
  3. Copy any text from the terminal or an external editor.
  4. Paste the clipboard contents into the terminal via shortcut (Ctrl+V / Cmd+V).
  5. Observe the text injected into the prompt.

Expected Behavior

The pasted text should be clean and match the clipboard content without leaking terminal escape sequences ([200~ / ~).

Actual Behavior

The terminal input receives raw control sequence artifacts, causing commands or directory paths to fail:

root@host:~/flow# cd [200~verify_activity~
-bash: cd: [200~verify_activity~


### 版本与系统 / Version and system

Navop 0.17.0 /  macOS Tahoe 26.6.2 / Ubuntu 26.04 LTS

### 截图、日志或其他信息 / Screenshots, logs, or anything else

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions